Component({ data: { support: '../../../../images/smallgoodhui.png', supported: '../../../../images/smallgoodliang.png', dispport: '../../../../images/smallbadhui.png', dispported: '../../../../images/smallbadliang.png' }, properties: { topList: { type: Object }, remarkType: { type: String, value: 'new' }, commentList: { type: Array }, isShowDetailRemark: { type: Boolean }, topicId:{ type:String } }, lifetimes: { }, pageLifetimes: { }, methods: { // 对评论进行回复 replyRemark(e: any) { this.triggerEvent('replyRemark', { type: 'replay', commentId: e.currentTarget.dataset.commentid ,topicId:e.currentTarget.dataset.topicid}) }, // 支持评论 supportRemark(e) { this.triggerEvent('supportRemark', { commentId: e.currentTarget.dataset.commentid }) }, // 反对 评论 dispportRemark(e) { this.triggerEvent('dispportRemark', { commentId: e.currentTarget.dataset.commentid }) }, // 最新最热 切换 changeRemarkType() { if (this.data.remarkType === 'new') { this.triggerEvent('changeRemarkType', { type: 'hot' }) } else { this.triggerEvent('changeRemarkType', { type: 'new' }) } } } })