From d7986bcb96cba38aec38912b8e473afd2f49f02d Mon Sep 17 00:00:00 2001 From: wxy Date: Wed, 8 May 2024 10:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product/evaluate.js | 44 +++++ src/views/product/evaluate/index.vue | 281 +++++++++++++++++++++++++++ src/views/product/info/index.vue | 2 +- 3 files changed, 326 insertions(+), 1 deletion(-) create mode 100644 src/api/product/evaluate.js create mode 100644 src/views/product/evaluate/index.vue 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 @@ -