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 @@