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

2
pages/user/myActivity/index.js

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

2
pages/user/myFavorite/index.js

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

Loading…
Cancel
Save