diff --git a/pages/rechargeDetail/rechargeDetail.vue b/pages/rechargeDetail/rechargeDetail.vue index 699c2b6..1fc1245 100644 --- a/pages/rechargeDetail/rechargeDetail.vue +++ b/pages/rechargeDetail/rechargeDetail.vue @@ -134,13 +134,16 @@ }, // 上拉加载触发 onReachBottom() { - this.fetchData(); + console.log(this.totalPages) + console.log(this.orderList.length) + if (this.totalPages == this.orderList.length) { this.status = 'no-more' console.log('111') return } else { this.page++; + this.fetchData(); } }, @@ -243,8 +246,7 @@ }, fetchData() { - console.log(this.totalPages) - console.log(this.orderList.length) + let that = this that.status = 'loading'