diff --git a/api/qianxian.js b/api/qianxian.js index 5eec447..14a7f86 100644 --- a/api/qianxian.js +++ b/api/qianxian.js @@ -196,6 +196,29 @@ 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}) +} + +export function getTravelGroupOrderAgreement() { + return request.get('/travel/travelGroupOrderAgreement', {}, {login: true}) +} + /** * 管家列表 * merId int 商户ID diff --git a/api/sojoumOrder.js b/api/sojoumOrder.js index 57a8639..cdeee83 100644 --- a/api/sojoumOrder.js +++ b/api/sojoumOrder.js @@ -66,3 +66,9 @@ export function sojoumOrderCheckDate(params) { login: true }) } + +export function sojoumOrderComment(params) { + return request.post("/travel/travelGroupOrder/comment", params, { + login: true + }) +} diff --git a/components/UserEvaluation.vue b/components/UserEvaluation.vue index 41d5704..f431af3 100644 --- a/components/UserEvaluation.vue +++ b/components/UserEvaluation.vue @@ -3,66 +3,74 @@ - - - + + + + - + {{ item.sku }} - {{ item.comment }} - + + + {{ item.comment || '此用户没有填写评价'}} + + + + - - + > + + - - + /> + - + + + - 店小二 + 店小二 :{{item.merchantReplyContent}} + - diff --git a/pages/home/newZone.vue b/pages/home/newZone.vue index 748315e..c185413 100644 --- a/pages/home/newZone.vue +++ b/pages/home/newZone.vue @@ -46,13 +46,21 @@ {{ item.productPrice }} - + + + + + + {{ agreementTitle }} + + + + + + + + + + +