Browse Source

游记攻略分页

master
jiazhipeng 1 year ago
parent
commit
ca803c5adc
  1. 11
      subPackages/travelGuide/travelGuide.vue

11
subPackages/travelGuide/travelGuide.vue

@ -58,13 +58,16 @@
} }
}, },
onShow() { onShow() {
this.showMore = true // this.showMore = true
this.list = [] // this.list = []
this.getArticleByType() // this.getArticleByType()
}, },
onReady() { onReady() {
this.type_id = 42 this.type_id = 42
this.getArticleType() this.getArticleType()
this.showMore = true
this.list = []
this.getArticleByType()
}, },
onLoad(options) { onLoad(options) {
let that = this let that = this
@ -123,7 +126,7 @@
}, },
onReachBottom() { onReachBottom() {
setTimeout(() => { setTimeout(() => {
if (!this.showMore) this.getList() if (this.showMore) this.getArticleByType()
},1000) },1000)
} }
} }

Loading…
Cancel
Save