From e26849f36b3283bb54b11eb37700a5f2ba3d1edf Mon Sep 17 00:00:00 2001 From: hellolujian <1370256381@qq.com> Date: Thu, 23 Aug 2018 18:52:09 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E5=95=86=E6=88=B7=E5=8F=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/static/payment/merchantid/merchant_id_manager.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/ui/static/payment/merchantid/merchant_id_manager.js b/src/main/ui/static/payment/merchantid/merchant_id_manager.js index 6e9e8699e..7d79b3c64 100644 --- a/src/main/ui/static/payment/merchantid/merchant_id_manager.js +++ b/src/main/ui/static/payment/merchantid/merchant_id_manager.js @@ -30,10 +30,10 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS // 加入对应项的end索引值 for (var k in $scope.clientsMap) { - if ($scope.clientsMap[k].length <= initEndIndex) { + var length = $scope.clientsMap[k].length; + if (length <= initEndIndex) { $scope.endIndexMap[k] = length; } - else $scope.endIndexMap[k] = initEndIndex; } @@ -47,10 +47,7 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS // 判断加60后的索引是否超出数组长度 if (endIndex > $scope.clientsMap[key].length) { $scope.endIndexMap[key] = $scope.clientsMap[key].length; - //alert("$scope.clientsMap[k].length:" + $scope.clientsMap[key].length + "$scope.endIndexMap[k]:" + $scope.endIndexMap[key]) - } - else $scope.endIndexMap[key] = endIndex; };