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
d3afa35a
Commit
d3afa35a
authored
Apr 28, 2020
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ss~~
parent
8dbba93d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
193 additions
and
9 deletions
+193
-9
components/Welcome/Welcome.vue
components/Welcome/Welcome.vue
+151
-0
pages/LuckDraw/LuckList/LuckList.vue
pages/LuckDraw/LuckList/LuckList.vue
+7
-1
pages/index/index.vue
pages/index/index.vue
+13
-2
pages/user/tongji/tongji.vue
pages/user/tongji/tongji.vue
+20
-4
static/news/helloword.png
static/news/helloword.png
+0
-0
utils/debug.js
utils/debug.js
+2
-2
No files found.
components/Welcome/Welcome.vue
0 → 100644
View file @
d3afa35a
<
template
>
<!-- 欢迎回来页面 -->
<!-- -->
<view
class=
"prizemodel"
>
<!-- -->
<uni-popup
:show=
"showtip"
type=
"center"
:mask-click=
"true"
@
change=
"change"
>
<view
class=
"tipboxs"
>
<view
class=
"heads"
>
<!--
<image
class=
"headimg"
src=
"/static/news/ishellobg.png "
mode=
""
></image>
-->
<image
class=
"headimg"
src=
"/static/news/helloword.png "
mode=
""
></image>
<!-- helloword.png -->
<image
class=
"isusertx"
:src=
"staticurl+userInfo.logo"
mode=
""
></image>
<view
class=
"shopnames"
>
{{
userInfo
.
shop_name
}}
</view>
</view>
</view>
</uni-popup>
</view>
</
template
>
<
script
>
import
uniPopup
from
'
@/components/uni-popup/uni-popup.vue
'
export
default
{
//props:["title","content"],
props
:{
//开奖人数
shuliang
:{
type
:
String
,
default
:
"
0
"
,
}
},
name
:
"
Welcome
"
,
components
:{
uniPopup
,
},
data
(){
return
{
showtip
:
false
,
}
},
//计算属性
computed
:{
userInfo
(){
return
this
.
$store
.
state
.
userInfo
;
},
staticurl
(){
return
this
.
$store
.
state
.
staticUrl
;
}
},
methods
:{
cancel
(
type
)
{
//关闭
this
.
showtip
=
false
;
},
//提示弹窗
change
(
e
)
{
console
.
log
(
'
是否打开:
'
+
e
.
show
)
if
(
!
e
.
show
)
{
this
.
showtip
=
false
}
},
show
(){
this
.
showtip
=
true
;
},
//确认发布点击
confirm
(){
this
.
showtip
=
false
;
this
.
$emit
(
"
fromSubmitfun
"
,{});
//触发回调方法
}
}
}
</
script
>
<
style
lang=
"scss"
>
$wid
:
750upx
;
$hei
:
863upx
;
.prizemodel
{
width
:
$wid
;
height
:
$hei
;
}
.tipboxs
{
width
:
$wid
;
height
:
$hei
;
.heads
{
position
:
relative
;
.headimg
{
width
:
$wid
;
height
:
$hei
;
}
.isusertx
{
position
:
absolute
;
width
:
382upx
;
height
:
382upx
;
top
:
312upx
;
left
:
50%
;
margin-left
:
-191upx
;
z-index
:
99
;
border-radius
:
50%
;
}
.shopnames
{
width
:
100%
;
font-size
:
40upx
;
font-weight
:
bold
;
color
:
#000
;
position
:
absolute
;
top
:
740upx
;
text-align
:
center
;
z-index
:
99
;
border-radius
:
50%
;
}
}
.tipboxs_body
{
border-top-left-radius
:
0
;
border-top-right-radius
:
0
;
border-bottom-right-radius
:
7px
;
border-bottom-left-radius
:
7px
;
margin-top
:
-20upx
;
padding
:
20upx
;
padding-top
:
30upx
;
background
:
#ffffff
;
text-align
:
center
;
.textmsgs
{
color
:
#333C4C
;
font-size
:
32upx
;
.sum
{
color
:
#ff6900
;
}
}
.submitbtns
{
font-size
:
32upx
;
width
:
411upx
;
height
:
83upx
;
line-height
:
83upx
;
text-align
:
center
;
background
:rgba
(
255
,
105
,
0
,
1
)
;
border-radius
:
10upx
;
color
:
#FFFFFF
;
margin
:
0
auto
;
margin-top
:
50upx
;
margin-bottom
:
30upx
;
}
}
}
</
style
>
pages/LuckDraw/LuckList/LuckList.vue
View file @
d3afa35a
...
...
@@ -53,13 +53,19 @@
</view>
</view>
<empty
v-if=
"dataLotteryList.length==0"
></empty>
<!-- 空数据展示 -->
</view>
</
template
>
<
script
>
import
{
LotteryList
,
slotuserList
}
from
"
@/utils/api/LuckDraw.js
"
;
import
empty
from
"
@/components/empty/empty.vue
"
;
export
default
{
components
:{
empty
},
data
(){
return
{
numberarr
:[
"
一
"
,
"
二
"
,
"
三
"
,
"
四
"
,
"
五
"
,
"
六
"
,
"
七
"
,
"
八
"
,
"
九
"
,
"
十
"
],
...
...
pages/index/index.vue
View file @
d3afa35a
...
...
@@ -202,7 +202,9 @@
<yomol-upgrade
ref=
"yomolUpgrade"
></yomol-upgrade>
<!-- 升级组件 -->
<Welcome
ref=
"Welcome"
></Welcome>
<!-- 欢迎回来 -->
</view>
</
template
>
...
...
@@ -211,6 +213,7 @@
import
uniBadge
from
"
@/components/uni/uni-badge/uni-badge.vue
"
import
uniIcon
from
"
@/components/uni/uni-icon/uni-icon.vue
"
import
yomolUpgrade
from
'
@/components/yomol-upgrade/yomol-upgrade.vue
'
;
//升级组件
import
Welcome
from
"
@/components/Welcome/Welcome.vue
"
;
//欢迎回来
import
{
storeIndex
}
from
"
@/utils/api/api.js
"
;
export
default
{
...
...
@@ -226,14 +229,22 @@
uniIcon
,
uniBadge
,
yomolUpgrade
,
//升级组件
Welcome
,
},
computed
:{
storeinfo
(){
return
this
.
$store
.
state
.
userInfo
;
}
},
onLaunch
(){
},
onLoad
()
{
//显示欢迎回来~
setTimeout
(()
=>
{
this
.
$refs
.
Welcome
.
show
();
},
2000
)
},
//下拉刷新
onPullDownRefresh
(){
...
...
pages/user/tongji/tongji.vue
View file @
d3afa35a
...
...
@@ -11,15 +11,29 @@
<view
class=
"card_01"
>
经营收入
</view>
<view
class=
"card_02"
>
¥
{{
counts
.
money
?
counts
.
money
:
0
}}
</view>
<view
class=
"card_03"
>
<view
class=
"card_03_1"
>
<!-- 外卖订单 -->
<navigator
v-if=
"shop_type=='ele'"
url=
"/pages/order/order"
class=
"card_03_1"
>
订单数
<br
/><span>
{{
counts
.
total_order
?
counts
.
total_order
:
0
}}
</span>
</view>
</navigator>
<!-- 商城订单 -->
<navigator
v-if=
"shop_type=='goods'"
url=
"/pages/order/shopOrder"
class=
"card_03_1"
>
订单数
<br
/><span>
{{
counts
.
total_order
?
counts
.
total_order
:
0
}}
</span>
</navigator>
<!-- 酒店订单 -->
<navigator
v-if=
"shop_type=='hotel'"
url=
"/pages/hotelOrder/hotelOrder"
class=
"card_03_1"
>
订单数
<br
/><span>
{{
counts
.
total_order
?
counts
.
total_order
:
0
}}
</span>
</navigator>
<view
class=
"card_03_1"
>
总提现资金
<br
/><span>
¥
{{
counts
.
amount_cash
?
counts
.
amount_cash
:
0
}}
</span>
</view>
<
view
class=
"card_03_1"
>
<
navigator
url=
"/pages/yjWithdraw/yjWithdraw?type=2"
class=
"card_03_1"
>
可提现金额
<br
/><span>
¥
{{
counts
.
gold
?
counts
.
gold
:
0
}}
</span>
</
view
>
</
navigator
>
</view>
</view>
<!--
<view
class=
"name"
>
用户数据
</view>
...
...
@@ -133,6 +147,7 @@
defaultVal1
:[],
selectList1
:[],
resulttime
:
""
,
//日期
shop_type
:
""
,
};
},
...
...
@@ -206,6 +221,7 @@
});
if
(
res
.
code
==
0
)
{
this
.
counts
=
res
.
data
.
counts
;
this
.
shop_type
=
res
.
data
.
shop_type
;
}
else
{
this
.
$api
.
msg
(
res
.
msg
);
}
...
...
static/news/helloword.png
0 → 100644
View file @
d3afa35a
144 KB
utils/debug.js
View file @
d3afa35a
...
...
@@ -2,8 +2,8 @@
//环境变量 这个是 鹿马商家助手的 商家助手的~~~~
module
.
exports
=
{
//是否为开发调试环境 true为本地环境 false 为正式环境
isdebug
:
true
,
//测试
//
isdebug:false,//正式
//
isdebug:true,//测试
isdebug
:
false
,
//正式
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