diff --git a/src/api/rating/topicOperate.js b/src/api/rating/topicOperate.js index 4eadfd8..8e28562 100644 --- a/src/api/rating/topicOperate.js +++ b/src/api/rating/topicOperate.js @@ -52,3 +52,16 @@ export function comment(data) { data, }) } + +/** + * 评论点赞 + * @param {*} { commentId, userId } + * @returns + */ +export function commentLike(data) { + return request({ + url: 'management/api/rating/topicItemOperate/comment/like', + method: 'post', + data, + }) +} diff --git a/src/api/system/robot.js b/src/api/system/robot.js index ce1a72a..bb33111 100644 --- a/src/api/system/robot.js +++ b/src/api/system/robot.js @@ -9,7 +9,7 @@ export function getList(data) { } /** - * 获取机器人列表(基础信息) {appId, pageNo, pageSize, topicId, itemId} + * 获取机器人列表(基础信息) {appId, pageNo, pageSize, topicId, itemId, commentId?} * @param {*} data * @returns */ diff --git a/src/views/rating/topicCommentRecord/components/RecordCommentLikeEdit.vue b/src/views/rating/topicCommentRecord/components/RecordCommentLikeEdit.vue new file mode 100644 index 0000000..da72ae7 --- /dev/null +++ b/src/views/rating/topicCommentRecord/components/RecordCommentLikeEdit.vue @@ -0,0 +1,134 @@ + + + diff --git a/src/views/rating/topicCommentRecord/index.vue b/src/views/rating/topicCommentRecord/index.vue index 9f4ac81..b8385f7 100644 --- a/src/views/rating/topicCommentRecord/index.vue +++ b/src/views/rating/topicCommentRecord/index.vue @@ -83,6 +83,12 @@ + + + + @@ -176,10 +183,11 @@ import { formatTime } from '@/utils' import { getThumbUrl } from '@/utils/blessing' import RecordCommentEdit from './components/RecordCommentEdit' + import RecordCommentLikeEdit from './components/RecordCommentLikeEdit' export default { name: 'RatingTopicCommentIndex', - components: { RecordCommentEdit }, + components: { RecordCommentEdit, RecordCommentLikeEdit }, directives: { loadmore: { bind(el, binding) { @@ -340,6 +348,9 @@ }, // -- 列表数据加载 -- + handleLike(row) { + this.$refs['likeEdit'].showEdit(row) + }, handleCommentNow() { this.$refs['commentEdit'].showEdit() },