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
d80bb73d
Commit
d80bb73d
authored
Aug 24, 2021
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addxx
parent
06f90d83
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
9 deletions
+45
-9
.hbuilderx/launch.json
.hbuilderx/launch.json
+4
-0
manifest.json
manifest.json
+2
-2
pages/edit/product/addshop.vue
pages/edit/product/addshop.vue
+39
-7
No files found.
.hbuilderx/launch.json
View file @
d80bb73d
...
...
@@ -2,6 +2,10 @@
//
launchtype项可配置值为local或remote
,
local代表前端连本地云函数,remote代表前端连云端云函数
"version"
:
"0.0"
,
"configurations"
:
[{
"app-plus"
:
{
"launchtype"
:
"remote"
},
"default"
:
{
"launchtype"
:
"remote"
...
...
manifest.json
View file @
d80bb73d
...
...
@@ -2,8 +2,8 @@
"name"
:
"鹿马商家助手"
,
"appid"
:
"__UNI__1EA80F1"
,
//这个是
web
的
"description"
:
"商家"
,
"versionName"
:
"1.15
6
"
,
"versionCode"
:
115
6
,
"versionName"
:
"1.15
8
"
,
"versionCode"
:
115
8
,
"transformPx"
:
false
,
"compatible"
:
{
"ignoreVersion"
:
true
//
true
表示忽略版本检查提示框,HBuilderX
1.9
.
0
及以上版本支持
...
...
pages/edit/product/addshop.vue
View file @
d80bb73d
...
...
@@ -99,6 +99,14 @@
placeholder-class=
"plclass"
placeholder=
"请填写产品商城价"
/>
</view>
</view>
<view
class=
"noecellbox noecellboxtwo"
>
<view
class=
"title"
>
会员价(PLUS) ¥
</view>
<view
class=
"inputbox flex"
>
<input
class=
"input flex1"
maxlength=
"15"
type=
"number"
v-model=
"canform.min_price"
value=
""
placeholder-class=
"plclass"
placeholder=
"请填写产品会员价"
/>
</view>
</view>
<view
class=
"noecellbox noecellboxtwo"
>
<view
class=
"title"
>
市场价 ¥
</view>
...
...
@@ -180,7 +188,8 @@
<view
class=
"checkboxs"
>
<view
class=
"title"
>
标识:
</view>
<!-- 表特和类目 -->
<view
class=
"chindlost ali-c flex flex-wrap"
>
<!-- ali-c flex flex-wrap -->
<view
class=
"chindlost "
>
<checkbox-group
@
change=
"checkboxChange"
>
<label
class=
"lableitem flex ali-c"
v-for=
"(item,index) in listchind"
:key=
"index"
>
...
...
@@ -221,6 +230,16 @@
</view>
<view
class=
"titles"
>
是否首页展示
</view>
</label>
<label
class=
"lableitem flex ali-c"
>
<view>
<checkbox-group
@
change=
"changeviptag"
>
<checkbox
color=
"#FF6900"
value=
"2"
:checked=
"canform.is_member==2"
/>
</checkbox-group>
</view>
<view
class=
"titles"
>
是否会员产品
</view>
</label>
</view>
...
...
@@ -347,6 +366,7 @@
num
:
""
,
//库存 num
price
:
""
,
// 市场价
mall_price
:
""
,
//商城价
min_price
:
""
,
//会员价
is_agent_price
:
""
,
//代理价
goods_freight
:
0
,
//运费
orderby
:
100
,
//排序
...
...
@@ -357,6 +377,7 @@
is_new
:
"
0
"
,
//0 1 是否新产品
is_hot
:
"
0
"
,
//0 1 是否热卖产品
is_tuijian
:
"
0
"
,
//0 1是否首页推荐
is_member
:
"
1
"
,
//是否是会员产品 1否 2是
is_seckill
:
"
0
"
,
//0 1 是否秒杀产品
activity_id
:
'
0
'
,
//秒杀activity_id
activity_list
:
''
,
//秒杀列表
...
...
@@ -426,6 +447,13 @@
this
.
canform
.
is_tuijian
=
"
0
"
;
}
},
changeviptag
(
e
){
if
(
e
.
target
.
value
.
indexOf
(
"
2
"
)
!=
-
1
)
{
//选中了
this
.
canform
.
is_member
=
"
2
"
;
}
else
{
this
.
canform
.
is_member
=
"
1
"
;
}
},
confirm
(
e
)
{
console
.
log
(
e
)
this
.
cate_name
=
e
.
item
.
value
;
...
...
@@ -469,6 +497,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
.
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
;
//排序
...
...
@@ -480,6 +509,7 @@
this
.
canform
.
money
=
res
.
data
.
money
;
//佣金
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
"
;
//处理分类初始值
for
(
let
i
=
0
;
i
<
this
.
goodsCate
.
length
;
i
++
)
{
let
itemone
=
this
.
goodsCate
[
i
].
children
;
...
...
@@ -584,12 +614,13 @@
}
})
// if(res.data.is_new==1){
// this.selchildList.push("is_new");
// }
// if(res.data.is_hot==1){
// this.selchildList.push("is_hot");
// }
//2021年8月24日11:08:58 change
if
(
res
.
data
.
is_new
==
1
){
this
.
selchildList
.
push
(
"
is_new
"
);
}
if
(
res
.
data
.
is_hot
==
1
){
this
.
selchildList
.
push
(
"
is_hot
"
);
}
}
else
{
this
.
$api
.
msg
(
res
.
msg
);
...
...
@@ -704,6 +735,7 @@
}
this
.
canform
.
is_tuijian
=
parseInt
(
this
.
canform
.
is_tuijian
);
this
.
canform
.
is_member
=
parseInt
(
this
.
canform
.
is_member
);
console
.
info
(
"
i
"
,
this
.
canform
);
console
.
info
(
"
this.canform.is_tuijian
"
,
this
.
canform
.
is_tuijian
);
// return false;
...
...
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