Commit bc3fbd7651fdef43a2bfc1f1d3c5d56d997a6d94

Authored by 刘淇
1 parent 6bbfedb1

商户券明细

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