Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lumastoreapp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xieyishang
lumastoreapp
Commits
a02e1e77
Commit
a02e1e77
authored
Oct 18, 2021
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addxx
parent
72693add
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
9 deletions
+25
-9
pages/edit/product/addshop.vue
pages/edit/product/addshop.vue
+25
-9
No files found.
pages/edit/product/addshop.vue
View file @
a02e1e77
...
@@ -187,8 +187,9 @@
...
@@ -187,8 +187,9 @@
</checkbox-group>
</checkbox-group>
</view>
</view>
<view
class=
"titles"
>
是否会员产品
</view>
<view
class=
"titles"
>
是否会员产品
</view>
</label>
</label>
<label
class=
"lableitem flex ali-c"
>
<!--
<label
class=
"lableitem flex ali-c"
>
<view>
<view>
<checkbox-group
@
change=
"changedhshoptag"
>
<checkbox-group
@
change=
"changedhshoptag"
>
<checkbox
color=
"#FF6900"
value=
"2"
:checked=
"canform.is_discount==2"
/>
<checkbox
color=
"#FF6900"
value=
"2"
:checked=
"canform.is_discount==2"
/>
...
@@ -196,6 +197,7 @@
...
@@ -196,6 +197,7 @@
</view>
</view>
<view
class=
"titles"
>
是否抵扣产品
</view>
<view
class=
"titles"
>
是否抵扣产品
</view>
</label>
</label>
-->
</view>
</view>
</view>
</view>
...
@@ -292,6 +294,7 @@
...
@@ -292,6 +294,7 @@
photo
:
""
,
//产品图片
photo
:
""
,
//产品图片
num
:
""
,
//库存 num
num
:
""
,
//库存 num
price
:
""
,
// 市场价
price
:
""
,
// 市场价
market_price
:
""
,
//市场价
mall_price
:
""
,
//商城价
mall_price
:
""
,
//商城价
min_price
:
""
,
//会员价
min_price
:
""
,
//会员价
is_agent_price
:
""
,
//代理价
is_agent_price
:
""
,
//代理价
...
@@ -408,7 +411,8 @@
...
@@ -408,7 +411,8 @@
this
.
canform
.
title
=
res
.
data
.
title
;
this
.
canform
.
title
=
res
.
data
.
title
;
this
.
canform
.
intro
=
res
.
data
.
intro
;
this
.
canform
.
intro
=
res
.
data
.
intro
;
this
.
canform
.
price
=
(
res
.
data
.
price
/
100
).
toFixed
(
2
);
// 市场价
this
.
canform
.
price
=
res
.
data
.
f_market_price
;
// 市场价 f_market_price
this
.
canform
.
market_price
=
res
.
data
.
f_market_price
;
// 市场价 f_market_price
this
.
canform
.
mall_price
=
(
res
.
data
.
mall_price
/
100
).
toFixed
(
2
);
//商城价
this
.
canform
.
mall_price
=
(
res
.
data
.
mall_price
/
100
).
toFixed
(
2
);
//商城价
this
.
canform
.
min_price
=
(
res
.
data
.
f_min_price
/
100
).
toFixed
(
2
);
//会员价
this
.
canform
.
min_price
=
(
res
.
data
.
f_min_price
/
100
).
toFixed
(
2
);
//会员价
this
.
canform
.
is_agent_price
=
(
res
.
data
.
is_agent_price
/
100
).
toFixed
(
2
);
//代理价
this
.
canform
.
is_agent_price
=
(
res
.
data
.
is_agent_price
/
100
).
toFixed
(
2
);
//代理价
...
@@ -433,15 +437,24 @@
...
@@ -433,15 +437,24 @@
for
(
let
j
=
0
;
j
<
this
.
goodsCate
[
i
].
children
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
this
.
goodsCate
[
i
].
children
.
length
;
j
++
)
{
let
itemtwo
=
this
.
goodsCate
[
i
].
children
[
j
];
let
itemtwo
=
this
.
goodsCate
[
i
].
children
[
j
];
for
(
let
k
=
0
;
k
<
itemtwo
.
children
.
length
;
k
++
){
if
(
itemtwo
.
children
){
let
itemsan
=
itemtwo
.
children
[
k
]
for
(
let
k
=
0
;
k
<
itemtwo
.
children
.
length
;
k
++
){
let
itemsan
=
itemtwo
.
children
[
k
]
if
(
itemsan
.
cate_id
==
this
.
canform
.
cate_id
){
console
.
info
(
"
找到名字了
"
,
itemsan
.
cate_name
);
if
(
itemsan
.
cate_id
==
this
.
canform
.
cate_id
){
this
.
parent_name
=
itemsan
.
cate_name
;
//二级名称
console
.
info
(
"
找到名字了
"
,
itemsan
.
cate_name
);
this
.
parent_name
=
itemsan
.
cate_name
;
//二级名称
break
;
}
}
}
else
{
if
(
itemtwo
.
cate_id
==
this
.
canform
.
cate_id
){
console
.
info
(
"
找到名字了
"
,
itemtwo
.
cate_name
);
this
.
parent_name
=
itemtwo
.
cate_name
;
//二级名称
break
;
break
;
}
}
}
}
}
}
}
}
...
@@ -610,8 +623,11 @@
...
@@ -610,8 +623,11 @@
this
.
canform
.
is_tuijian
=
parseInt
(
this
.
canform
.
is_tuijian
);
this
.
canform
.
is_tuijian
=
parseInt
(
this
.
canform
.
is_tuijian
);
this
.
canform
.
is_member
=
parseInt
(
this
.
canform
.
is_member
);
this
.
canform
.
is_member
=
parseInt
(
this
.
canform
.
is_member
);
this
.
canform
.
is_discount
=
parseInt
(
this
.
canform
.
is_discount
);
this
.
canform
.
is_discount
=
parseInt
(
this
.
canform
.
is_discount
);
this
.
canform
.
market_price
=
this
.
canform
.
price
;
//...
console
.
info
(
"
i
"
,
this
.
canform
);
console
.
info
(
"
i
"
,
this
.
canform
);
console
.
info
(
"
this.canform.is_tuijian
"
,
this
.
canform
.
is_tuijian
);
console
.
info
(
"
this.canform.is_tuijian
"
,
this
.
canform
.
is_tuijian
);
let
res
=
await
addEditGoods
(
this
.
canform
)
let
res
=
await
addEditGoods
(
this
.
canform
)
...
...
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