|
|
@ -22,21 +22,21 @@ Page({ |
|
|
|
}, |
|
|
|
tapSegemnt (e) { |
|
|
|
console.log(e.detail) |
|
|
|
const {index} = e.detail |
|
|
|
const { index } = e.detail |
|
|
|
this.setData({ |
|
|
|
curCode: this.data.tags[index].code, |
|
|
|
currPage: 1, |
|
|
|
}) |
|
|
|
this.fetchList() |
|
|
|
}, |
|
|
|
clickCardItem(e) { |
|
|
|
clickCardItem (e) { |
|
|
|
console.log(e.detail) |
|
|
|
const { id } = e.detail |
|
|
|
wx.navigateTo({ |
|
|
|
url: `/pages/article/index?id=${id}`, |
|
|
|
}) |
|
|
|
}, |
|
|
|
fetchList() { |
|
|
|
fetchList () { |
|
|
|
const { curCode } = this.data |
|
|
|
const page = this.data.currPage |
|
|
|
billboard.fetchBailList(curCode, page, res => { |
|
|
|