Beispiel #1
0
		}, function() {
			if ($more.hasMore()) {
				$maskManager.showMask();
				$('#moreAction').text('正在加载更多...');
				var params = $list.params();
				params = $.extend({}, params, {
					'start' : $more.getNextIndex()
				});
				$list.params(params);
				$list.appendBind(function(jsonData) {
					var reqList = jsonData['reqList'];
					if (reqList) {
						$(reqList).each(function(i, o) {
							var listTemp = $templete.getTaskListTemp();
							$('#reqListUL').append(String.formatmodel(listTemp, {
								'id' : o['id'],
								'applyName' : o['applyName'],
								'applyDate' : o['receiveDate'],
								'reqNo' : o['reqNo']
							}));
						});
					}
					$maskManager.hideMaskWatiting();
					$more.init($('#moreAction'), jsonData['page']);
					$laIscroll.refresh();
					$maskManager.hideMask();
				});
				$list.appendLoad();
			} else {
				$more.reload();
			}
		});
Beispiel #2
0
 }, function() {
     if ($more.hasMore()) {
         $maskManager.showMask();
         $('#moreAction').text('正在加载更多...');
         var params = $list.params();
         params = $.extend({}, params, {
             'start' : $more.getNextIndex()
         });
         $list.params(params);
         $list.appendBind(function(jsonData) {
             var reqList = jsonData['reqList'];
             if (reqList) {
                 $(reqList).each(function(i, o) {
                     var listTemp;
                     if (o['tip'] == 0) {
                         listTemp = $templete.getManageListTemp(true);
                     } else if (o['tip'] == 1) {
                         listTemp = $templete.getManageListTemp(false);
                     }
                     $('#reqListUL').append(String.formatmodel(listTemp, {
                         'id' : o['id'],
                         'reqId' : o['reqId'],
                         'userName' : o['userName'],
                         'applyName' : o['applyName'],
                         'applyDate' : o['receiveDate'],
                         'reqNo' : o['reqNo'],
                         'icon':o['icon'],
                         'resultClass':'',
                         'resultText':' '
                     }));
                 });
                 bindRemoveMoveEvent();
             }
             $maskManager.hideMaskWatiting();
             $more.init($('#moreAction'), jsonData['page']);
             $laIscroll.refresh();
             $maskManager.hideMask();
         });
         $list.appendLoad();
     } else {
         $more.reload();
     }
 });