From bc3fbd7651fdef43a2bfc1f1d3c5d56d997a6d94 Mon Sep 17 00:00:00 2001 From: liugongyu <290219706@qq.com> Date: Tue, 17 May 2022 15:59:59 +0800 Subject: [PATCH] 商户券明细 --- pages.json | 11 ++++++----- pages/businessCard/cardDetail.vue | 6 ++++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/pages.json b/pages.json index 396af21..5997a96 100644 --- a/pages.json +++ b/pages.json @@ -14,20 +14,21 @@ "pages": [ // pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { - "path": "pages/rechargeDetail/rechargeDetail", + "path": "pages/businessCard/cardDetail", "style": { - "navigationBarTitleText": "充值明细", + "navigationBarTitleText": "商户卡券明细", "enablePullDownRefresh": true } - }, { - "path": "pages/businessCard/cardDetail", + "path": "pages/rechargeDetail/rechargeDetail", "style": { - "navigationBarTitleText": "商户卡券明细", + "navigationBarTitleText": "充值明细", "enablePullDownRefresh": true } + }, + { "path": "pages/index/index", "style": { diff --git a/pages/businessCard/cardDetail.vue b/pages/businessCard/cardDetail.vue index 1377faa..2e850cb 100644 --- a/pages/businessCard/cardDetail.vue +++ b/pages/businessCard/cardDetail.vue @@ -278,12 +278,15 @@ export default { // 上拉加载触发 onReachBottom() { console.log('上拉加载触发') + console.log(this.totalPages) + console.log(this.dataList.length) if (this.totalPages == this.dataList.length) { this.status = 'no-more' console.log('111') return } else { this.pageNum++; + this.fetchData() } @@ -298,8 +301,7 @@ export default { }, methods: { fetchData: function () { - console.log(this.totalPages) - console.log(this.dataList.length) + let that = this that.status = 'loading' -- libgit2 0.21.4