diff --git a/src/api/product/evaluate.js b/src/api/product/evaluate.js new file mode 100644 index 0000000..c021630 --- /dev/null +++ b/src/api/product/evaluate.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询商品评价列表 +export function listEvaluate(query) { + return request({ + url: '/product/evaluate/list', + method: 'get', + params: query + }) +} + +// 查询商品评价详细 +export function getEvaluate(id) { + return request({ + url: '/product/evaluate/' + id, + method: 'get' + }) +} + +// 新增商品评价 +export function addEvaluate(data) { + return request({ + url: '/product/evaluate', + method: 'post', + data: data + }) +} + +// 修改商品评价 +export function updateEvaluate(data) { + return request({ + url: '/product/evaluate', + method: 'put', + data: data + }) +} + +// 删除商品评价 +export function delEvaluate(id) { + return request({ + url: '/product/evaluate/' + id, + method: 'delete' + }) +} diff --git a/src/views/product/evaluate/index.vue b/src/views/product/evaluate/index.vue new file mode 100644 index 0000000..7e2f861 --- /dev/null +++ b/src/views/product/evaluate/index.vue @@ -0,0 +1,281 @@ + + + diff --git a/src/views/product/info/index.vue b/src/views/product/info/index.vue index 791864a..20d978e 100644 --- a/src/views/product/info/index.vue +++ b/src/views/product/info/index.vue @@ -168,7 +168,7 @@ -