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
dcf03f69
Commit
dcf03f69
authored
Sep 08, 2021
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addxx
parent
d52caf5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
pages/edit/product/addshop.vue
pages/edit/product/addshop.vue
+21
-1
utils/debug.js
utils/debug.js
+2
-2
No files found.
pages/edit/product/addshop.vue
View file @
dcf03f69
...
...
@@ -240,6 +240,16 @@
<view
class=
"titles"
>
是否会员产品
</view>
</label>
<label
class=
"lableitem flex ali-c"
>
<view>
<checkbox-group
@
change=
"changedhshoptag"
>
<checkbox
color=
"#FF6900"
value=
"2"
:checked=
"canform.is_discount==2"
/>
</checkbox-group>
</view>
<view
class=
"titles"
>
是否抵扣产品
</view>
</label>
</view>
...
...
@@ -378,6 +388,7 @@
is_hot
:
"
0
"
,
//0 1 是否热卖产品
is_tuijian
:
"
0
"
,
//0 1是否首页推荐
is_member
:
"
1
"
,
//是否是会员产品 1否 2是
is_discount
:
"
1
"
,
//是否抵扣专区商品:1=否,2=是
is_seckill
:
"
0
"
,
//0 1 是否秒杀产品
activity_id
:
'
0
'
,
//秒杀activity_id
activity_list
:
''
,
//秒杀列表
...
...
@@ -454,6 +465,13 @@
this
.
canform
.
is_member
=
"
1
"
;
}
},
changedhshoptag
(
e
){
if
(
e
.
target
.
value
.
indexOf
(
"
2
"
)
!=
-
1
)
{
//选中了
this
.
canform
.
is_discount
=
"
2
"
;
}
else
{
this
.
canform
.
is_discount
=
"
1
"
;
}
},
confirm
(
e
)
{
console
.
log
(
e
)
this
.
cate_name
=
e
.
item
.
value
;
...
...
@@ -497,7 +515,7 @@
this
.
canform
.
intro
=
res
.
data
.
intro
;
this
.
canform
.
price
=
(
res
.
data
.
price
/
100
).
toFixed
(
2
);
// 市场价
this
.
canform
.
mall_price
=
(
res
.
data
.
mall_price
/
100
).
toFixed
(
2
);
//商城价
this
.
canform
.
min_price
=
(
res
.
data
.
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
.
goods_freight
=
(
res
.
data
.
goods_freight
/
100
).
toFixed
(
2
);
//运费
this
.
canform
.
orderby
=
res
.
data
.
orderby
;
//排序
...
...
@@ -510,6 +528,7 @@
this
.
canform
.
activity_id
=
res
.
data
.
activity_id
;
this
.
canform
.
is_tuijian
=
res
.
data
.
is_tuijian
?
res
.
data
.
is_tuijian
:
'
0
'
;
//是否推荐 是否首页推荐
this
.
canform
.
is_member
=
res
.
data
.
is_member
?
res
.
data
.
is_member
:
"
1
"
;
this
.
canform
.
is_discount
=
res
.
data
.
is_discount
?
res
.
data
.
is_discount
:
"
1
"
;
//处理分类初始值
for
(
let
i
=
0
;
i
<
this
.
goodsCate
.
length
;
i
++
)
{
let
itemone
=
this
.
goodsCate
[
i
].
children
;
...
...
@@ -736,6 +755,7 @@
this
.
canform
.
is_tuijian
=
parseInt
(
this
.
canform
.
is_tuijian
);
this
.
canform
.
is_member
=
parseInt
(
this
.
canform
.
is_member
);
this
.
canform
.
is_discount
=
parseInt
(
this
.
canform
.
is_discount
);
console
.
info
(
"
i
"
,
this
.
canform
);
console
.
info
(
"
this.canform.is_tuijian
"
,
this
.
canform
.
is_tuijian
);
// return false;
...
...
utils/debug.js
View file @
dcf03f69
...
...
@@ -5,8 +5,8 @@ module.exports = {
isdebug
:
false
,
//正式
//
isdebug:true,//测试
//
isdebug:false,//正式
isdebug
:
true
,
//测试
// xqdebug:false,//正式权限
xqdebug
:
true
,
//发布审核权限 也是测试环境的 主要用于ios
...
...
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