Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
linshenxs-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈超
linshenxs-shop
Commits
d926bda4
Commit
d926bda4
authored
Aug 04, 2022
by
fuqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【商家端】商品详情
parent
9b443269
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/views/businessGoods/details.vue
+6
-5
No files found.
src/views/businessGoods/details.vue
View file @
d926bda4
...
...
@@ -36,7 +36,7 @@
<el-table
style=
"align-self: flex-start;"
:data=
"form.skus"
size=
"mini"
>
<el-table-column
v-for=
"(spec, index) in specs"
:key=
"index"
:label=
"spec.specName"
min-width=
"120"
>
<template
slot-scope=
"scope"
>
<span>
{{
titleValue
(
spec
,
scope
.
row
)
}}
</span>
<span>
{{
titleValue
(
spec
,
scope
.
row
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"价格"
min-width=
"160"
>
...
...
@@ -189,8 +189,8 @@
titleValue
()
{
return
(
spec
,
row
)
=>
{
for
(
let
s
of
row
.
specs
)
{
if
(
s
.
i
d
==
spec
.
specId
)
{
return
s
.
specN
ame
if
(
s
.
specI
d
==
spec
.
specId
)
{
return
s
.
n
ame
}
}
return
"未知"
...
...
@@ -228,8 +228,9 @@
if
(
skus
&&
skus
.
length
>
0
)
{
let
specs
=
skus
[
0
].
specs
.
map
(
r
=>
{
return
{
specId
:
r
.
id
,
specName
:
r
.
name
name
:
r
.
name
,
specId
:
r
.
specId
,
specName
:
r
.
specName
}
})
this
.
specs
=
specs
...
...
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