Open jgw96 opened 7 years ago
From @liangzhicong on March 8, 2017 4:32
Type: bug
Ionic Version: 1.x
Platform: all
getLogs: function () { var self = this; LoginService.tips.loading(); if (this.items.length > 0) { this.pointParams.startIndex += this.pointParams.pageSize; } this.loadMore = false; ApiService.post(gagaApp.apiUrls.member.memberPointLogs, {}, this.pointParams).then(function (result) { LoginService.tips.hide(); if (result && result.length) { self.isEmpty = false; var count = result.length; if (count > self.pointParams.pageSize) { result.pop(); self.loadMore = true; } Array.prototype.push.apply(self.items, result); } else { self.items = []; self.isEmpty = true; } $scope.$broadcast('scroll.infiniteScrollComplete'); }) }
From @AmitMY on March 8, 2017 5:53
Ionic 1.x The source code for Ionic 1.x has been moved to driftyco/ionic-v1. Please open any issues and pull requests related to Ionic 1.x on that repository.
Ionic 1.x
The source code for Ionic 1.x has been moved to driftyco/ionic-v1. Please open any issues and pull requests related to Ionic 1.x on that repository.
From @liangzhicong on March 8, 2017 4:32
Type: bug
Ionic Version: 1.x
Platform: all
getLogs: function () { var self = this; LoginService.tips.loading(); if (this.items.length > 0) { this.pointParams.startIndex += this.pointParams.pageSize; } this.loadMore = false; ApiService.post(gagaApp.apiUrls.member.memberPointLogs, {}, this.pointParams).then(function (result) { LoginService.tips.hide(); if (result && result.length) { self.isEmpty = false; var count = result.length; if (count > self.pointParams.pageSize) { result.pop(); self.loadMore = true; } Array.prototype.push.apply(self.items, result); } else { self.items = []; self.isEmpty = true; } $scope.$broadcast('scroll.infiniteScrollComplete'); }) }