diff --git a/api/goods/index.js b/api/goods/index.js index ecaea5e..7c87bf1 100644 --- a/api/goods/index.js +++ b/api/goods/index.js @@ -62,3 +62,11 @@ export const apiAddCart = (data) => { ); } +// 获取商品评价列表 +export const apiGetCommentList = (data) => { + return httpRequest.post( + `${baseUrl}/comment/list`, + data + ); + } + diff --git a/api/order.js b/api/order.js index c1e0f52..c6c7bf3 100644 --- a/api/order.js +++ b/api/order.js @@ -92,4 +92,12 @@ export const apiGetCartList = (data) => { ); } +// 获取订单详情 +export const apiGetOrderDetail = (data) => { + return httpRequest.post( + `${baseUrl}/order/detail`, + data + ); + } + diff --git a/pages/goods/components/Comment.vue b/pages/goods/components/Comment.vue index cae86a0..27ce03b 100644 --- a/pages/goods/components/Comment.vue +++ b/pages/goods/components/Comment.vue @@ -16,19 +16,19 @@ - + - {{ item.user.nick_name }} + {{ item.buyerName }} - + - {{ item.content }} + {{ item.productComment }} - {{ item.create_time }} + {{ new Date(item.createTime).toLocaleString() }} @@ -38,6 +38,7 @@ diff --git a/pages/order/index.vue b/pages/order/index.vue index a606b5c..1f0aa4e 100644 --- a/pages/order/index.vue +++ b/pages/order/index.vue @@ -124,7 +124,8 @@ status: 'shipping' }, { name: `待评价`, - value: 'comment' + value: 'comment', + status: 'wait_comment' }] // wx.onAppShow监听器