Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
17c31978
authored
Oct 01, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
product:优化商品评论
parent
8b7543ac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
src/views/mall/product/comment/index.vue
+8
-9
src/views/mall/product/spu/components/SkuTableSelect.vue
+2
-1
No files found.
src/views/mall/product/comment/index.vue
View file @
17c31978
...
...
@@ -59,9 +59,8 @@
<!-- 列表 -->
<ContentWrap>
<el-table
v-loading=
"loading"
:data=
"list"
:stripe=
"true"
:show-overflow-tooltip=
"false"
>
<el-table-column
label=
"评论编号"
align=
"center"
prop=
"id"
min-width=
"60"
/>
<el-table-column
label=
"用户名称"
align=
"center"
prop=
"userNickname"
width=
"80"
/>
<el-table-column
label=
"商品信息"
align=
"center"
min-width=
"300"
>
<el-table-column
label=
"评论编号"
align=
"center"
prop=
"id"
min-width=
"50"
/>
<el-table-column
label=
"商品信息"
align=
"center"
min-width=
"400"
>
<template
#
default=
"scope"
>
<div
class=
"row flex items-center gap-x-4px"
>
<el-image
...
...
@@ -82,10 +81,10 @@
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"
评分星级"
align=
"center"
prop=
"scores"
width=
"8
0"
/>
<el-table-column
label=
"
描述星级"
align=
"center"
prop=
"descriptionScores"
width=
"8
0"
/>
<el-table-column
label=
"服务
星级"
align=
"center"
prop=
"benefitScores"
width=
"8
0"
/>
<el-table-column
label=
"评论内容"
align=
"center"
prop=
"content"
min-width=
"
8
0"
>
<el-table-column
label=
"
用户名称"
align=
"center"
prop=
"userNickname"
width=
"10
0"
/>
<el-table-column
label=
"
商品评分"
align=
"center"
prop=
"descriptionScores"
width=
"9
0"
/>
<el-table-column
label=
"服务
评分"
align=
"center"
prop=
"benefitScores"
width=
"9
0"
/>
<el-table-column
label=
"评论内容"
align=
"center"
prop=
"content"
min-width=
"
21
0"
>
<
template
#
default=
"scope"
>
<p>
{{
scope
.
row
.
content
}}
</p>
<div
class=
"flex justify-center gap-x-4px"
>
...
...
@@ -105,7 +104,7 @@
label=
"回复内容"
align=
"center"
prop=
"replyContent"
min-width=
"
10
0"
min-width=
"
25
0"
show-overflow-tooltip
/>
<el-table-column
...
...
@@ -113,7 +112,7 @@
align=
"center"
prop=
"createTime"
:formatter=
"dateFormatter"
width=
"1
7
0"
width=
"1
8
0"
/>
<el-table-column
label=
"是否展示"
align=
"center"
width=
"80px"
>
<
template
#
default=
"scope"
>
...
...
src/views/mall/product/spu/components/SkuTableSelect.vue
View file @
17c31978
...
...
@@ -25,7 +25,7 @@
</el-table-column>
<el-table-column
align=
"center"
label=
"销售价(元)"
min-width=
"80"
>
<
template
#
default=
"{ row }"
>
{{
row
.
price
}}
{{
fenToYuan
(
row
.
price
)
}}
</
template
>
</el-table-column>
</el-table>
...
...
@@ -36,6 +36,7 @@
import
{
ElTable
}
from
'element-plus'
import
*
as
ProductSpuApi
from
'@/api/mall/product/spu'
import
{
propTypes
}
from
'@/utils/propTypes'
import
{
fenToYuan
}
from
'@/utils'
defineOptions
({
name
:
'SkuTableSelect'
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment