|
@ -136,6 +136,7 @@ Page({ |
|
|
commentTime: item.createTime, |
|
|
commentTime: item.createTime, |
|
|
comment: item.comment, |
|
|
comment: item.comment, |
|
|
praiseNum: item.supportNum, |
|
|
praiseNum: item.supportNum, |
|
|
|
|
|
isSupport: item.isSupport, |
|
|
// 议题数据
|
|
|
// 议题数据
|
|
|
topicTtitle: item.title, |
|
|
topicTtitle: item.title, |
|
|
topicGroupAvator: item.groupAvator, |
|
|
topicGroupAvator: item.groupAvator, |
|
@ -288,13 +289,10 @@ Page({ |
|
|
this.fetchGoodIdeaPraise(e.detail.commentId) |
|
|
this.fetchGoodIdeaPraise(e.detail.commentId) |
|
|
}, |
|
|
}, |
|
|
fetchGoodIdeaPraise(id) { |
|
|
fetchGoodIdeaPraise(id) { |
|
|
|
|
|
wx.showLoading() |
|
|
topicModel.topicCommentPraise(id, res => { |
|
|
topicModel.topicCommentPraise(id, res => { |
|
|
console.log(res) |
|
|
|
|
|
if (res.code === 200) { |
|
|
if (res.code === 200) { |
|
|
wx.showToast({ |
|
|
wx.hideLoading() |
|
|
title: res.message, |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
this.onPullDownRefresh() |
|
|
this.onPullDownRefresh() |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|