|
@ -38,7 +38,7 @@ Page({ |
|
|
userIcon: item.groupAvator, |
|
|
userIcon: item.groupAvator, |
|
|
userName: item.author, |
|
|
userName: item.author, |
|
|
time: item.createTime, |
|
|
time: item.createTime, |
|
|
commentNum: item.commentNum, |
|
|
commentNum: item.commentNum || '', |
|
|
type: item.type |
|
|
type: item.type |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
@ -67,34 +67,6 @@ Page({ |
|
|
wx.stopPullDownRefresh() |
|
|
wx.stopPullDownRefresh() |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
|
|
|
* 生命周期函数--监听页面初次渲染完成 |
|
|
|
|
|
*/ |
|
|
|
|
|
onReady: function () { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 生命周期函数--监听页面显示 |
|
|
|
|
|
*/ |
|
|
|
|
|
onShow: function () { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 生命周期函数--监听页面隐藏 |
|
|
|
|
|
*/ |
|
|
|
|
|
onHide: function () { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 生命周期函数--监听页面卸载 |
|
|
|
|
|
*/ |
|
|
|
|
|
onUnload: function () { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 页面相关事件处理函数--监听用户下拉动作 |
|
|
* 页面相关事件处理函数--监听用户下拉动作 |
|
|
*/ |
|
|
*/ |
|
@ -115,23 +87,16 @@ Page({ |
|
|
}) |
|
|
}) |
|
|
this.fetchMyFavoriteList() |
|
|
this.fetchMyFavoriteList() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 用户点击右上角分享 |
|
|
|
|
|
*/ |
|
|
|
|
|
onShareAppMessage: function () { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
clickListItem (e) { |
|
|
clickListItem (e) { |
|
|
const item = e.detail.item; |
|
|
console.log(e) |
|
|
console.log(item); |
|
|
if (e.detail.id) { |
|
|
let id = item.topicId |
|
|
let id = e.detail.id |
|
|
if(item.type === '1'){ |
|
|
|
|
|
wx.navigateTo({ |
|
|
wx.navigateTo({ |
|
|
url: `/pages/article/index?id=${id}`, |
|
|
url: `/pages/article/index?id=${id}`, |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
const item = e.detail.item; |
|
|
|
|
|
let id = item.topicId |
|
|
wx.navigateTo({ |
|
|
wx.navigateTo({ |
|
|
url: `/pages/topics/interactive/topicArticle/index?topicId=${id}`, |
|
|
url: `/pages/topics/interactive/topicArticle/index?topicId=${id}`, |
|
|
}) |
|
|
}) |
|
|