<u-loadmore :status="status" /> onReachBottom() { console.log('触底~~~~') if (this.pageNo >= this.pages){ this.status = 'nomore'; return; } this.status = 'loading'; this.pageNo = ++this.pageNo; setTimeout(() => { this.getData() if (this.pageNo >= this.pages) { this.status = 'nomore'; } else { this.status = 'loading'; } }, 2000) }