From 8f0bc44425d15776e8ae54554b1b0b305b9dc197 Mon Sep 17 00:00:00 2001 From: ch Date: Fri, 24 Jun 2022 11:16:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E7=82=B9=E8=B5=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/api/comment.js | 10 +++++- src/components/BsCommentThumbup.vue | 50 ++++++++++++++++++++++++++--- src/pages/goods/comment/list.vue | 12 ++++--- 3 files changed, 61 insertions(+), 11 deletions(-) diff --git a/src/common/api/comment.js b/src/common/api/comment.js index 5cc5c6e..db2f951 100644 --- a/src/common/api/comment.js +++ b/src/common/api/comment.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-06-20 11:38:48 * @LastEditors: ch - * @LastEditTime: 2022-06-22 20:53:16 + * @LastEditTime: 2022-06-24 11:15:09 * @Description: file content */ @@ -48,3 +48,11 @@ export const ApiPostComment = (data) => ToAsyncAwait(MsbRequestTk.post(`${BASE_URL}/app/comment`, data)); +/** + * 更新评论有用数 + * @param {*} param0 + */ +export const ApiPutCommentUseful = (data) => +ToAsyncAwait(MsbRequestTk.put(`${BASE_URL}/app/comment/updateUsefulCount`,data)); + + diff --git a/src/components/BsCommentThumbup.vue b/src/components/BsCommentThumbup.vue index 45b64c5..a028ed0 100644 --- a/src/components/BsCommentThumbup.vue +++ b/src/components/BsCommentThumbup.vue @@ -2,14 +2,15 @@ * @Author: ch * @Date: 2022-06-21 16:01:19 * @LastEditors: ch - * @LastEditTime: 2022-06-22 16:05:27 + * @LastEditTime: 2022-06-24 11:14:52 * @Description: file content --> diff --git a/src/pages/goods/comment/list.vue b/src/pages/goods/comment/list.vue index f9ea08a..3122546 100644 --- a/src/pages/goods/comment/list.vue +++ b/src/pages/goods/comment/list.vue @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-06-21 16:51:03 * @LastEditors: ch - * @LastEditTime: 2022-06-23 11:14:27 + * @LastEditTime: 2022-06-24 11:12:05 * @Description: file content -->