Browse Source

我的收藏、我的活动

master
lqq 6 years ago
parent
commit
ebe5fcb75b
  1. 6
      pages/billboards/firm/index.js
  2. 2
      pages/user/myActivity/index.js
  3. 2
      pages/user/myFavorite/index.js

6
pages/billboards/firm/index.js

@ -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 => {

2
pages/user/myActivity/index.js

@ -29,7 +29,7 @@ Page({
let tempDatas = []
datas.forEach(item => {
tempDatas.push({
articleId: item.collectionId,
articleId: item.contentId,
title: item.title,
articleImg: item.image,
userName: item.author,

2
pages/user/myFavorite/index.js

@ -32,7 +32,7 @@ Page({
let tempDatas = []
datas.forEach(item => {
tempDatas.push({
topicId: item.collectionId,
topicId: item.contentId,
title: item.title,
topicImg: item.image,
userIcon: item.groupAvator,

Loading…
Cancel
Save