Commit bc3fbd7651fdef43a2bfc1f1d3c5d56d997a6d94
1 parent
6bbfedb1
商户券明细
Showing
2 changed files
with
10 additions
and
7 deletions
pages.json
... | ... | @@ -14,20 +14,21 @@ |
14 | 14 | "pages": [ |
15 | 15 | // pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages |
16 | 16 | { |
17 | - "path": "pages/rechargeDetail/rechargeDetail", | |
17 | + "path": "pages/businessCard/cardDetail", | |
18 | 18 | "style": { |
19 | - "navigationBarTitleText": "充值明细", | |
19 | + "navigationBarTitleText": "商户卡券明细", | |
20 | 20 | "enablePullDownRefresh": true |
21 | 21 | } |
22 | - | |
23 | 22 | }, |
24 | 23 | { |
25 | - "path": "pages/businessCard/cardDetail", | |
24 | + "path": "pages/rechargeDetail/rechargeDetail", | |
26 | 25 | "style": { |
27 | - "navigationBarTitleText": "商户卡券明细", | |
26 | + "navigationBarTitleText": "充值明细", | |
28 | 27 | "enablePullDownRefresh": true |
29 | 28 | } |
29 | + | |
30 | 30 | }, |
31 | + | |
31 | 32 | { |
32 | 33 | "path": "pages/index/index", |
33 | 34 | "style": { | ... | ... |
pages/businessCard/cardDetail.vue
... | ... | @@ -278,12 +278,15 @@ export default { |
278 | 278 | // 上拉加载触发 |
279 | 279 | onReachBottom() { |
280 | 280 | console.log('上拉加载触发') |
281 | + console.log(this.totalPages) | |
282 | + console.log(this.dataList.length) | |
281 | 283 | if (this.totalPages == this.dataList.length) { |
282 | 284 | this.status = 'no-more' |
283 | 285 | console.log('111') |
284 | 286 | return |
285 | 287 | } else { |
286 | 288 | this.pageNum++; |
289 | + this.fetchData() | |
287 | 290 | } |
288 | 291 | |
289 | 292 | |
... | ... | @@ -298,8 +301,7 @@ export default { |
298 | 301 | }, |
299 | 302 | methods: { |
300 | 303 | fetchData: function () { |
301 | - console.log(this.totalPages) | |
302 | - console.log(this.dataList.length) | |
304 | + | |
303 | 305 | |
304 | 306 | let that = this |
305 | 307 | that.status = 'loading' | ... | ... |