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
5b9747ec
Commit
5b9747ec
authored
Aug 04, 2022
by
fuqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【商家端】添加商品
parent
4f213b46
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
src/page/login/userlogin.vue
+1
-0
src/views/businessGoods/goodsEdit/goods_edit.vue
+7
-4
src/views/businessGoods/index.vue
+1
-0
No files found.
src/page/login/userlogin.vue
View file @
5b9747ec
...
...
@@ -14,6 +14,7 @@
auto-complete=
"off"
placeholder=
"请输入用户名"
@
keyup
.
enter
.
native=
"handleLogin"
maxlength=
"11"
>
<i
slot=
"prefix"
class=
"icon-yonghuming"
/>
</el-input>
...
...
src/views/businessGoods/goodsEdit/goods_edit.vue
View file @
5b9747ec
...
...
@@ -159,6 +159,7 @@
shopInfo
:
getStore
({
name
:
'shopInfo'
})
||
{},
uploadExampleDiaLog
:
'查看认证视频'
,
setUploadExampleDiaLog
:
false
,
//如果是编辑则需要加载数据
loading
:
false
,
...
...
@@ -323,7 +324,7 @@
titleValue
()
{
return
(
spec
,
row
)
=>
{
for
(
let
s
of
row
.
specs
)
{
if
(
s
.
specId
==
spec
.
specId
){
if
(
s
.
specId
==
spec
.
specId
){
return
s
.
name
}
else
if
(
s
.
id
==
spec
.
specId
)
{
return
s
.
specName
...
...
@@ -390,11 +391,13 @@
//回填数据
refill
(
data
)
{
let
skus
=
data
.
skus
console
.
log
(
skus
)
if
(
skus
&&
skus
.
length
>
0
)
{
let
specs
=
skus
[
0
].
specs
.
map
(
r
=>
{
let
specs
=
skus
[
0
].
specs
.
map
(
r
=>
{
console
.
log
(
r
)
return
{
specId
:
r
.
i
d
,
specName
:
r
.
n
ame
specId
:
r
.
specI
d
,
specName
:
r
.
specN
ame
}
})
this
.
specs
=
specs
...
...
src/views/businessGoods/index.vue
View file @
5b9747ec
...
...
@@ -102,6 +102,7 @@
},
// 添加
add
()
{
this
.
id
=
null
;
this
.
goodsEditVue
=
true
},
// 查看详情
...
...
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