From 79e23a66cfc3d11ba142a20f8178541333639587 Mon Sep 17 00:00:00 2001 From: LinCyJang Date: Sun, 11 Jan 2026 01:03:37 +0800 Subject: [PATCH] =?UTF-8?q?Feat;=E6=97=85=E5=B1=85=E8=AF=84=E4=BB=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/qianxian.js | 19 +++ components/UserEvaluation.vue | 205 ++++++++++++++++++++------ pages/shop/EvaluateList/index.vue | 82 +++++++++-- pkg_product/views/groupBuyDetails.vue | 174 +++++++++++++++++----- 4 files changed, 379 insertions(+), 101 deletions(-) diff --git a/api/qianxian.js b/api/qianxian.js index 5eec447..e6c054e 100644 --- a/api/qianxian.js +++ b/api/qianxian.js @@ -196,6 +196,25 @@ export function getJiaLouProductDetail(id) { return request.get('/travel/product/' + id, {}, {login: true}) } +/** + * 旅居团购产品评论列表 + * travelGroupProductId int 旅居团购产品ID + * type int 0-全部 1-好评 2-中评 3-差评 + * page int 页码 + * limit int 每页数量 + */ +export function getJiaLouProductReply(params) { + return request.get('/travel/product/reply', params, {login: true}) +} + +/** + * 获取旅居团购产品评论统计 + * travelGroupProductId int 旅居团购产品ID + */ +export function getJiaLouProductReplyCount(params) { + return request.get('/travel/product/reply/count', params, {login: true}) +} + /** * 管家列表 * merId int 商户ID diff --git a/components/UserEvaluation.vue b/components/UserEvaluation.vue index 41d5704..a68bcd0 100644 --- a/components/UserEvaluation.vue +++ b/components/UserEvaluation.vue @@ -5,64 +5,85 @@ :key="evaluateWtapperIndex" class="evaluateItem" > - - - + + + + - + - - {{ item.sku }} - + + + + {{ item.sku }} - {{ item.comment }} - + + + + + + + + {{ item.comment }} + + + + - - + > + + - - + /> + - + + + - 店小二 + 店小二 :{{item.merchantReplyContent}} + - diff --git a/pages/shop/EvaluateList/index.vue b/pages/shop/EvaluateList/index.vue index 4f36d8a..202946a 100644 --- a/pages/shop/EvaluateList/index.vue +++ b/pages/shop/EvaluateList/index.vue @@ -35,6 +35,7 @@