Commit 6bbfedb1dc110ae3a768e8f9dc8499b4991766e7
1 parent
ca970168
商户券明细
Showing
1 changed file
with
5 additions
and
3 deletions
pages/rechargeDetail/rechargeDetail.vue
@@ -134,13 +134,16 @@ | @@ -134,13 +134,16 @@ | ||
134 | }, | 134 | }, |
135 | // 上拉加载触发 | 135 | // 上拉加载触发 |
136 | onReachBottom() { | 136 | onReachBottom() { |
137 | - this.fetchData(); | 137 | + console.log(this.totalPages) |
138 | + console.log(this.orderList.length) | ||
139 | + | ||
138 | if (this.totalPages == this.orderList.length) { | 140 | if (this.totalPages == this.orderList.length) { |
139 | this.status = 'no-more' | 141 | this.status = 'no-more' |
140 | console.log('111') | 142 | console.log('111') |
141 | return | 143 | return |
142 | } else { | 144 | } else { |
143 | this.page++; | 145 | this.page++; |
146 | + this.fetchData(); | ||
144 | } | 147 | } |
145 | }, | 148 | }, |
146 | 149 | ||
@@ -243,8 +246,7 @@ | @@ -243,8 +246,7 @@ | ||
243 | }, | 246 | }, |
244 | 247 | ||
245 | fetchData() { | 248 | fetchData() { |
246 | - console.log(this.totalPages) | ||
247 | - console.log(this.orderList.length) | 249 | + |
248 | 250 | ||
249 | let that = this | 251 | let that = this |
250 | that.status = 'loading' | 252 | that.status = 'loading' |