From 6bbfedb1dc110ae3a768e8f9dc8499b4991766e7 Mon Sep 17 00:00:00 2001 From: liugongyu <290219706@qq.com> Date: Tue, 17 May 2022 15:57:04 +0800 Subject: [PATCH] 商户券明细 --- pages/rechargeDetail/rechargeDetail.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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' -- libgit2 0.21.4