From 3a1539009026fc71de16db0ef72f24d392479d75 Mon Sep 17 00:00:00 2001 From: owen Date: Sat, 26 Aug 2023 13:34:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=84=E8=AE=BA=EF=BC=9A?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E8=A1=A8=E5=8D=95=E6=8F=90=E5=8F=96=E5=88=B0?= =?UTF-8?q?=E5=8D=95=E7=8B=AC=E7=9A=84=E7=BB=84=E4=BB=B6=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/product/comment/CommentForm.vue | 3 - src/views/mall/product/comment/ReplyForm.vue | 77 +++++++++++++++++++ src/views/mall/product/comment/index.vue | 58 ++------------ 3 files changed, 82 insertions(+), 56 deletions(-) create mode 100644 src/views/mall/product/comment/ReplyForm.vue diff --git a/src/views/mall/product/comment/CommentForm.vue b/src/views/mall/product/comment/CommentForm.vue index 8a60bef1..77557437 100644 --- a/src/views/mall/product/comment/CommentForm.vue +++ b/src/views/mall/product/comment/CommentForm.vue @@ -75,7 +75,6 @@ const formData = ref({ spuId: undefined, spuName: undefined, skuId: undefined, - scores: 5, descriptionScores: 5, benefitScores: 5, content: undefined, @@ -87,7 +86,6 @@ const formRules = reactive({ userAvatar: [{ required: true, message: '用户头像不能为空', trigger: 'blur' }], userNickname: [{ required: true, message: '用户名称不能为空', trigger: 'blur' }], content: [{ required: true, message: '评论内容不能为空', trigger: 'blur' }], - scores: [{ required: true, message: '评分星级不能为空', trigger: 'blur' }], descriptionScores: [{ required: true, message: '描述星级不能为空', trigger: 'blur' }], benefitScores: [{ required: true, message: '服务星级不能为空', trigger: 'blur' }] }) @@ -153,7 +151,6 @@ const resetForm = () => { userAvatar: undefined, spuId: undefined, skuId: undefined, - scores: 5, descriptionScores: 5, benefitScores: 5, content: undefined, diff --git a/src/views/mall/product/comment/ReplyForm.vue b/src/views/mall/product/comment/ReplyForm.vue new file mode 100644 index 00000000..4ce36781 --- /dev/null +++ b/src/views/mall/product/comment/ReplyForm.vue @@ -0,0 +1,77 @@ + + + diff --git a/src/views/mall/product/comment/index.vue b/src/views/mall/product/comment/index.vue index 7647aff1..4fe65a86 100644 --- a/src/views/mall/product/comment/index.vue +++ b/src/views/mall/product/comment/index.vue @@ -60,7 +60,6 @@ -