Commit 6bbfedb1dc110ae3a768e8f9dc8499b4991766e7

Authored by 刘淇
1 parent ca970168

商户券明细

pages/rechargeDetail/rechargeDetail.vue
... ... @@ -134,13 +134,16 @@
134 134 },
135 135 // 上拉加载触发
136 136 onReachBottom() {
137   - this.fetchData();
  137 + console.log(this.totalPages)
  138 + console.log(this.orderList.length)
  139 +
138 140 if (this.totalPages == this.orderList.length) {
139 141 this.status = 'no-more'
140 142 console.log('111')
141 143 return
142 144 } else {
143 145 this.page++;
  146 + this.fetchData();
144 147 }
145 148 },
146 149  
... ... @@ -243,8 +246,7 @@
243 246 },
244 247  
245 248 fetchData() {
246   - console.log(this.totalPages)
247   - console.log(this.orderList.length)
  249 +
248 250  
249 251 let that = this
250 252 that.status = 'loading'
... ...