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
ea4296ad
Commit
ea4296ad
authored
Sep 04, 2020
by
srf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
srf
parent
f008b3a8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
187 additions
and
217 deletions
+187
-217
pages/edit/pro_manage/pro_manage.vue
pages/edit/pro_manage/pro_manage.vue
+6
-1
pages/edit/product/addshop.vue
pages/edit/product/addshop.vue
+13
-3
pages/index/index.vue
pages/index/index.vue
+168
-213
No files found.
pages/edit/pro_manage/pro_manage.vue
View file @
ea4296ad
...
...
@@ -72,9 +72,14 @@
isshowall
:
true
,
isselect
:
"
2
"
,
sendindex
:
""
,
money_type
:
""
}
},
onLoad
(
opdata
)
{
console
.
info
(
opdata
)
this
.
money_type
=
opdata
.
money_type
;
if
(
opdata
.
isselect
==
1
){
this
.
isselect
=
1
;
this
.
sendindex
=
opdata
.
sendindex
;
//插入索引
...
...
@@ -268,7 +273,7 @@
jump_edit
(
item
)
{
uni
.
navigateTo
({
//url: '/pages/edit/product/product?id=' + id
url
:
"
/pages/edit/product/addshop?id=
"
+
item
.
goods_id
,
url
:
"
/pages/edit/product/addshop?id=
"
+
item
.
goods_id
+
'
&money_type=
'
+
this
.
money_type
,
})
},
//tab切换事件
...
...
pages/edit/product/addshop.vue
View file @
ea4296ad
...
...
@@ -128,12 +128,17 @@
</view>
<!-- 富文本 -->
<view
class=
"noecellbox"
v-show=
"money_type==3"
>
<view
class=
"title"
>
佣金金额
</view>
<view
class=
"inputbox flex"
>
<input
class=
"input flex1"
type=
"text"
v-model=
"canform.money"
value=
""
placeholder-class=
"plclass"
placeholder=
"请填写产品名称"
/>
</view>
</view>
<!-- 多选列表 勾选的位置 -->
<view
class=
"checkboxs"
>
<view
class=
"title"
>
标识:
</view>
<!-- 表特和类目 -->
<checkbox-group
@
change=
"checkboxChange"
>
<view
class=
"chindlost ali-c flex flex-wrap"
>
<label
class=
"lableitem flex ali-c"
v-for=
"(item,index) in listchind"
:key=
"index"
>
...
...
@@ -179,6 +184,7 @@
},
data
()
{
return
{
money_type
:
""
,
//佣金
myProps
:
{
label
:
'
value
'
,
value
:
'
cate_id
'
,
...
...
@@ -228,6 +234,7 @@
is_new
:
"
0
"
,
//0 1 是否新产品
is_hot
:
"
0
"
,
//0 1 是否热卖产品
action
:
"
add
"
,
//方式(添加:add,修改:edit)
money
:
''
},
goodsCate
:[],
...
...
@@ -259,6 +266,9 @@
}
},
onLoad
(
opdata
)
{
console
.
info
(
opdata
)
this
.
money_type
=
opdata
.
money_type
if
(
opdata
.
id
!=
""
&&
opdata
.
id
!=
undefined
){
this
.
canform
.
goods_id
=
opdata
.
id
;
//修改的商品id
this
.
canform
.
action
=
"
edit
"
;
...
...
@@ -306,7 +316,7 @@
this
.
canform
.
details
=
res
.
data
.
details
;
///商品详情(编辑器插件)
this
.
canform
.
num
=
res
.
data
.
num
;
//库存 num
this
.
canform
.
cate_id
=
res
.
data
.
cate_id
;
//产品分类
this
.
canform
.
money
=
res
.
data
.
money
;
//佣金
//处理分类初始值
for
(
let
i
=
0
;
i
<
this
.
goodsCate
.
length
;
i
++
){
...
...
pages/index/index.vue
View file @
ea4296ad
...
...
@@ -3,41 +3,36 @@
<view
class=
"index"
>
<view
class=
"head"
>
<!-- @tap="demoaudio" -->
<view
class=
"tit"
>
店铺名称:
{{
storeinfo
.
shop_name
}}
</view>
<view
class=
"tit"
>
店铺名称:
{{
storeinfo
.
shop_name
}}
</view>
<!--
{{
shop
.
shop_name
}}
-->
<view
class=
"jiu"
>
<view
class=
"jiu_01"
>
<navigator
url=
"/pages/notice/notice"
>
<view>
<image
class=
"img"
src=
"/static/icon/newsicon.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/icon/newsicon.png"
mode=
""
></image></view>
<view>
消息通知
</view>
</navigator>
</view>
<view
class=
"jiu_01"
>
<navigator
url=
"/pages/user/tongji/tongji"
>
<view>
<image
class=
"img"
src=
"/static/icon/zijinicons.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/icon/zijinicons.png"
mode=
""
></image></view>
<view>
商户资金管理
</view>
</navigator>
</view>
<view
class=
"jiu_01 "
>
<navigator
url=
"/pages/user/mingxi/mingxi"
>
<view>
<image
class=
"img"
src=
"/static/icon/3.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/icon/3.png"
mode=
""
></image></view>
<view>
佣金明细
</view>
</navigator>
</view>
</view>
</view>
<view
class=
"more"
>
<view
class=
'mo'
>
<view
class=
'mo_01'
>
数据交易
</view>
<view
class=
"mo"
>
<view
class=
"mo_01"
>
数据交易
</view>
<navigator
url=
"/pages/user/tongji/tongji"
>
<view
class=
'mo_02'
>
更多
<uni-icon
type=
"arrowright"
size=
"15"
color=
"#D6D6D6"
></uni-icon>
<view
class=
"mo_02"
>
更多
<uni-icon
type=
"arrowright"
size=
"15"
color=
"#D6D6D6"
></uni-icon>
</view>
</navigator>
</view>
...
...
@@ -45,91 +40,76 @@
<navigator
url=
"/pages/user/tongji/tongji"
class=
"shuju"
>
<view
class=
"shuju_01"
>
<view>
今日订单/今日收益
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.order_day"
>
{{
countdata
.
order_day
}}
/¥
{{
countdata
.
money_day
}}
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.order_day"
>
{{
countdata
.
order_day
}}
/¥
{{
countdata
.
money_day
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
0 / ¥0
</view>
</view>
<view
class=
"shuju_01 no"
>
<view>
昨日订单/金额
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.order_yesterday"
>
{{
countdata
.
order_yesterday
}}
/¥
{{
countdata
.
money_yesterday
}}
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.order_yesterday"
>
{{
countdata
.
order_yesterday
}}
/¥
{{
countdata
.
money_yesterday
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
0 / ¥0
</view>
</view>
<view
class=
"shuju_01"
>
<view>
总订单数
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.total_order"
>
{{
countdata
.
total_order
}}
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.total_order"
>
{{
countdata
.
total_order
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
0
</view>
</view>
<view
class=
"shuju_01 no"
>
<view>
总收入
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.money"
>
¥
{{
countdata
.
money
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
¥0
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.money"
>
¥
{{
countdata
.
money
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
¥0
</view>
</view>
</navigator>
<view
class=
"BH"
></view>
<view
class=
"six"
>
<view
class=
"jiu_max"
v-if=
"shop_type=='goods'"
>
<navigator
url=
"/pages/edit/pro_manage/pro_manage"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/20.png"
mode=
""
></image>
</view>
<view>
商品管理
</view>
</view>
</navigator>
<view
class=
"jiu_max"
v-if=
"shop_type == 'goods'"
@
tap=
"jump"
>
<!--
<navigator
url=
"/pages/edit/pro_manage/pro_manage"
>
-->
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/icon/20.png"
mode=
""
></image></view>
<view>
商品管理
</view>
</view>
<!--
</navigator>
-->
</view>
<view
class=
"jiu_max "
v-if=
"shop_type
==
'ele'"
>
<view
class=
"jiu_max "
v-if=
"shop_type
==
'ele'"
>
<navigator
url=
"/pages/eleProduct/eleProduct"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/20.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/icon/20.png"
mode=
""
></image></view>
<view>
外卖产品
</view>
</view>
</navigator>
</view>
<!-- 酒店管理 -->
<view
class=
"jiu_max "
v-if=
"shop_type
==
'hotel'"
>
<view
class=
"jiu_max "
v-if=
"shop_type
==
'hotel'"
>
<navigator
url=
"/pages/HotelManage/HotelManage"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/20.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/icon/20.png"
mode=
""
></image></view>
<view>
酒店管理
</view>
</view>
</navigator>
</view>
<!-- 商城不要分类 这个是外卖的-->
<view
class=
"jiu_max"
v-if=
"shop_type
==
'ele'"
>
<view
class=
"jiu_max"
v-if=
"shop_type
==
'ele'"
>
<navigator
url=
"/pages/shopCategory/shopCategory?type=1"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/6.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/icon/6.png"
mode=
""
></image></view>
<view>
商品分类
</view>
</view>
</navigator>
</view>
<!-- 这个是商城的 -->
<view
class=
"jiu_max"
v-if=
"shop_type
==
'goods'"
>
<view
class=
"jiu_max"
v-if=
"shop_type
==
'goods'"
>
<navigator
url=
"/pages/storeCategory/storeCategory?type=1"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/6.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/icon/6.png"
mode=
""
></image></view>
<view>
商品分类
</view>
</view>
</navigator>
</view>
<!--
<view
class=
"jiu_01"
>
<navigator
url=
"/pages/shopCategory/shopCategory?type=2"
>
<view>
...
...
@@ -139,91 +119,72 @@
</navigator>
</view>
-->
<!-- 只有商城才有规格 外卖没有规格 -->
<!-- v-if="shop_type=='goods'" -->
<!-- 商城和外卖都有规格 -->
<view
class=
"jiu_max"
>
<navigator
url=
"/pages/specs/specs?type=2"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/22.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/icon/22.png"
mode=
""
></image></view>
<view>
商品规格
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max"
v-if=
"shop_type=='ele'"
>
<view
class=
"jiu_max"
v-if=
"shop_type == 'ele'"
>
<!-- 外卖订单 -->
<navigator
url=
"/pages/order/order"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/8.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/icon/8.png"
mode=
""
></image></view>
<view>
订单管理
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max"
v-if=
"shop_type
==
'goods'"
>
<view
class=
"jiu_max"
v-if=
"shop_type
==
'goods'"
>
<!-- 商城订单 -->
<navigator
url=
"/pages/order/shopOrder"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/8.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/icon/8.png"
mode=
""
></image></view>
<view>
订单管理
</view>
</view>
</navigator>
</view>
<!-- 酒店的订单 酒店订单管理-->
<view
class=
"jiu_max"
v-if=
"shop_type
==
'hotel'"
>
<view
class=
"jiu_max"
v-if=
"shop_type
==
'hotel'"
>
<!-- 酒店的订单 -->
<navigator
url=
"/pages/hotelOrder/hotelOrder"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/8.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/icon/8.png"
mode=
""
></image></view>
<view>
订单管理
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max "
>
<navigator
url=
"/pages/kehu/kehu"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/people.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/icon/people.png"
mode=
""
></image></view>
<view>
锁客列表
</view>
</view>
</navigator>
</view>
<!-- 活动管理 只有商城才有抽奖活动-->
<view
class=
"jiu_max "
v-if=
"shop_type
==
'goods'"
>
<view
class=
"jiu_max "
v-if=
"shop_type
==
'goods'"
>
<navigator
url=
"/pages/LuckDraw/homenav/homenav"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/news/liwuiocn.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/news/liwuiocn.png"
mode=
""
></image></view>
<view>
抽奖活动
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max "
>
<navigator
url=
"/pages/CardSend/CardSend"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/news/coupon.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/news/coupon.png"
mode=
""
></image></view>
<view>
优惠券管理
</view>
</view>
</navigator>
...
...
@@ -232,38 +193,26 @@
<view
class=
"jiu_max "
>
<navigator
url=
"/pages/Printer/AddPrinter"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/news/printer.png"
mode=
""
></image>
</view>
<view><image
class=
"img"
src=
"/static/news/printer.png"
mode=
""
></image></view>
<view>
添加打印机
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max "
@
tap=
"shops"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/turntable/turntable.png"
mode=
""
></image>
</view>
<view>
大转盘
</view>
</view>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/turntable/turntable.png"
mode=
""
></image></view>
<view>
大转盘
</view>
</view>
</view>
</view>
<view
class=
"BH"
></view>
<yomol-upgrade
ref=
"yomolUpgrade"
></yomol-upgrade>
<!-- 升级组件 -->
<Welcome
ref=
"Welcome"
></Welcome>
<!-- 欢迎回来 -->
</view>
</
template
>
...
...
@@ -285,7 +234,8 @@
shop
:
{},
countdata
:
{},
shop_type
:
""
,
//店铺类型 ele goods
is_luck_draw
:
""
is_luck_draw
:
""
,
money_type
:
""
}
},
components
:
{
...
...
@@ -332,11 +282,16 @@
},
1000
)
},
methods
:
{
jump
(){
uni
.
navigateTo
({
url
:
'
/pages/edit/pro_manage/pro_manage?money_type=
'
+
this
.
money_type
})
},
shops
(){
if
(
this
.
is_luck_draw
==
1
){
uni
.
navigateTo
({
url
:
"
/pages/details/details?shop_id=
"
+
this
.
shop_id
...
...
@@ -353,11 +308,11 @@
}
}
});
}
},
...
...
@@ -420,6 +375,7 @@
this
.
shop_id
=
res
.
data
.
shop_info
.
shop_id
;
this
.
is_luck_draw
=
res
.
data
.
shop_info
.
is_luck_draw
this
.
money_type
=
res
.
data
.
shop_info
.
money_type
}
else
{
this
.
$api
.
msg
(
res
.
msg
);
...
...
@@ -430,135 +386,134 @@
}
</
script
>
<
style
lang=
"scss"
>
.index
{
background
:
#fff
;
.index
{
background
:
#fff
;
.H50
{
height
:
100upx
;
}
.H50
{
height
:
100upx
;
}
.head
{
//background: linear-gradient(to bottom, #52c693, #27a26c);
background
:
linear-gradient
(
to
bottom
,
#f37b1d
,
#ff3600
);
text-align
:
center
;
padding
:
40upx
0
20upx
;
color
:
#fff
;
font-size
:
28upx
;
}
.head
{
//background: linear-gradient(to bottom, #52c693, #27a26c);
background
:
linear-gradient
(
to
bottom
,
#f37b1d
,
#ff3600
);
text-align
:
center
;
padding
:
40upx
0
20upx
;
color
:
#fff
;
font-size
:
28upx
;
}
.jiu
{
padding
:
20upx
;
display
:
flex
;
flex-wrap
:
wrap
;
color
:
#fff
;
}
.jiu
{
padding
:
20upx
;
display
:
flex
;
flex-wrap
:
wrap
;
color
:
#fff
;
}
.jiu_01
{
width
:
33%
;
text-align
:
center
;
padding
:
30upx
20upx
30upx
;
box-sizing
:
border-box
;
font-size
:
24upx
;
}
.jiu_01
{
width
:
33%
;
text-align
:
center
;
padding
:
30upx
20upx
30upx
;
box-sizing
:
border-box
;
font-size
:
24upx
;
}
.jiu_max
{
width
:
33%
;
}
.jiu_max
{
width
:
33%
;
}
.jiu_min
{
width
:
100%
;
text-align
:
center
;
padding
:
30upx
20upx
30upx
;
box-sizing
:
border-box
;
font-size
:
24upx
;
}
.jiu_min
{
width
:
100%
;
text-align
:
center
;
padding
:
30upx
20upx
30upx
;
box-sizing
:
border-box
;
font-size
:
24upx
;
}
.jiu_01
.img
{
width
:
64upx
;
height
:
64upx
;
margin-bottom
:
20upx
;
}
.jiu_01
.img
{
width
:
64upx
;
height
:
64upx
;
margin-bottom
:
20upx
;
}
.jiu_min
.img
{
width
:
64upx
;
height
:
64upx
;
margin-bottom
:
20upx
;
}
.jiu_min
.img
{
width
:
64upx
;
height
:
64upx
;
margin-bottom
:
20upx
;
}
.mo
{
padding
:
20upx
;
display
:
flex
;
justify-content
:
space-between
;
border-bottom
:
2upx
solid
#f0f0f0
;
line-height
:
40upx
;
}
.mo
{
padding
:
20upx
;
display
:
flex
;
justify-content
:
space-between
;
border-bottom
:
2upx
solid
#f0f0f0
;
line-height
:
40upx
;
}
.mo_01
{
padding-left
:
20upx
;
box-sizing
:
border-box
;
width
:
80%
;
height
:
40upx
;
overflow
:
hidden
;
border-left
:
6upx
solid
#EC521B
;
font-size
:
28upx
;
font-weight
:
bold
;
}
.mo_01
{
padding-left
:
20upx
;
box-sizing
:
border-box
;
width
:
80%
;
height
:
40upx
;
overflow
:
hidden
;
border-left
:
6upx
solid
#ec521b
;
font-size
:
28upx
;
font-weight
:
bold
;
}
.mo_01
span
{
color
:
#8E8E8E
;
font-weight
:
100
;
font-size
:
24upx
;
padding-left
:
20upx
;
}
.mo_01
span
{
color
:
#8e8e8e
;
font-weight
:
100
;
font-size
:
24upx
;
padding-left
:
20upx
;
}
.mo_02
{
color
:
#D6D6D
6
;
}
.mo_02
{
color
:
#d6d6d
6
;
}
.shuju
{
display
:
flex
;
flex-wrap
:
wrap
;
}
.shuju
{
display
:
flex
;
flex-wrap
:
wrap
;
}
.shuju_01
{
width
:
50%
;
text-align
:
center
;
padding
:
32upx
20upx
;
box-sizing
:
border-box
;
font-size
:
28upx
;
line-height
:
50upx
;
font-size
:
32upx
;
border-right
:
1px
solid
#f0f0f0
;
border-bottom
:
1px
solid
#f0f0f0
;
}
.shuju_01
{
width
:
50%
;
text-align
:
center
;
padding
:
32upx
20upx
;
box-sizing
:
border-box
;
font-size
:
28upx
;
line-height
:
50upx
;
font-size
:
32upx
;
border-right
:
1px
solid
#f0f0f0
;
border-bottom
:
1px
solid
#f0f0f0
;
}
.shuju_01_s
{
color
:
#EB511B
;
font-weight
:
800
;
font-size
:
32upx
;
}
.shuju_01_s
{
color
:
#eb511b
;
font-weight
:
800
;
font-size
:
32upx
;
}
.no
{
border-right
:
none
;
}
.no
{
border-right
:
none
;
}
.BH
{
background-color
:
#F1F1F
1
;
height
:
10upx
;
}
.BH
{
background-color
:
#f1f1f
1
;
height
:
10upx
;
}
.six
{
padding
:
20upx
;
display
:
flex
;
flex-wrap
:
wrap
;
}
.six
{
padding
:
20upx
;
display
:
flex
;
flex-wrap
:
wrap
;
}
.list_01
{
padding
:
30upx
20upx
16upx
;
border-bottom
:
1px
solid
#F4F4F4
;
font-size
:
24upx
;
}
.list_01
{
padding
:
30upx
20upx
16upx
;
border-bottom
:
1px
solid
#f4f4f4
;
font-size
:
24upx
;
}
}
</
style
>
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