ionic-team / ionic-v1

The repo for Ionic 1.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
193 stars 187 forks source link

bug: v1.32 infinite scroll would load more per time? #220

Open jgw96 opened 7 years ago

jgw96 commented 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'); }) }

_Copied from original issue: driftyco/ionic#10687_
jgw96 commented 7 years ago

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.