[fix]商户号管理页面优化

master
hellolujian 6 years ago
parent 51402da218
commit e26849f36b

@ -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;
};

Loading…
Cancel
Save