Feat:千县资讯分类&评论功能

This commit is contained in:
LinCyJang
2025-12-13 14:49:59 +08:00
parent 86ae127763
commit f055036001
5 changed files with 1120 additions and 7 deletions
+6 -2
View File
@@ -186,7 +186,11 @@ export default {
})
return
}
this.$yrouter.push('/pagesInn/inn/innInfoDetail?id=' + comment.contentId)
if(comment.contentType === 'hotelNews') {
this.$yrouter.push('/pagesInn/inn/innInfoDetail?id=' + comment.contentId)
} else if(comment.contentType === 'countyFamousNews') {
this.$yrouter.push('/pkg_product/views/newsInfo?id=' + comment.contentId)
}
},
/**
* 格式化时间
@@ -272,7 +276,7 @@ export default {
// 评论的目标内容ID,必传
contentId: this.currentComment.contentId,
// 评论的目标内容类型,必传(店铺资讯传入值hotelNews)
contentType: 'hotelNews',
contentType: this.currentComment.contentType,
// 评论内容,必传
reply: this.content.replace('@' + this.currentComment.senderUserNickname, '').trim(),
// @的用户ID