Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mini_own
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
geruidan
mini_own
Commits
8410ec71
Commit
8410ec71
authored
Mar 21, 2023
by
珠峰架构
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信支付
parent
85470940
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
99 additions
and
21 deletions
+99
-21
pages.json
pages.json
+4
-15
pages/index/defalutScreen.vue
pages/index/defalutScreen.vue
+95
-6
static/img/screen/screen-bg.png
static/img/screen/screen-bg.png
+0
-0
static/img/screen/screen-btn.png
static/img/screen/screen-btn.png
+0
-0
No files found.
pages.json
View file @
8410ec71
...
...
@@ -10,8 +10,7 @@
{
"navigationBarTitleText"
:
"首页"
,
"enablePullDownRefresh"
:
false
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarBackgroundColor"
:
"#ffffff"
"navigationBarTextStyle"
:
"black"
}
},{
"path"
:
"pages/index/index"
,
...
...
@@ -65,19 +64,9 @@
}
}
<<<<<<<
HEAD
,{
"path"
:
"pages/h5/pay"
,
"name"
:
"pay"
,
"style"
:
{
"navigationBarTitleText"
:
"支付"
,
"enablePullDownRefresh"
:
false
}
}
=======
>>>>>>>
f
9
aa
0
f
8
cb
7
d
83071
cf
50743
c
971
db
8673
eea
303
a
],
"subPackages"
:[],
...
...
pages/index/defalutScreen.vue
View file @
8410ec71
<
template
>
<view>
<img
src=
"../../static/img/screen/screen-bg.png"
alt=
""
>
<view
class=
"screen-container"
>
<image
class=
"bg"
src=
"../../static/img/screen/screen-bg.png"
mode=
"scaleToFill"
/>
<button
v-if=
"unregistered"
@
click=
"changeTabBar"
class=
"btn"
>
马上进入
</button>
<button
v-else
class=
"btn"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getInfoPhoneNumber"
>
授权绑定
</button>
</view>
</
template
>
<
script
>
import
http
from
'
@/shopro/request/index
'
;
import
store
from
'
@/shopro/store
'
;
import
{
mapActions
,
mapGetters
}
from
'
vuex
'
export
default
{
data
()
{
return
{
unregistered
:
false
,
tabBarVal
:
'
步数
'
,
registerPopup
:
true
,
form
:{
name
:
'
xxx
'
},
tips
:
'
获取
'
,
seconds
:
10
}
},
computed
:
{
...
mapGetters
([
'
userInfo
'
,
'
todayNum
'
])
},
methods
:
{
...
mapActions
([
'
getPhoneNumber
'
,
'
registerInfoFn
'
,
'
getWeRunDataFn
'
,
'
authCheck
'
,
'
getUserInfo
'
]),
// 切换底部tab;
changeTabBar
(){
if
(
this
.
unregistered
){
uni
.
navigateTo
({
url
:
'
/pages/h5/index
'
,
})
}
},
// 获取手机号
async
getInfoPhoneNumber
(
e
)
{
console
.
log
(
e
)
let
number
=
await
this
.
getPhoneNumber
(
e
);
let
register
=
await
this
.
registerInfoFn
();
if
(
register
){
//注册成功
this
.
unregistered
=
true
;
}
},
async
getAuth
(){
let
token
=
uni
.
getStorageSync
(
'
token
'
);
// 如果有缓存信息
if
(
token
)
{
let
auth
=
await
this
.
authCheck
();
if
(
auth
==
0
)
{
this
.
unregistered
=
true
;
}
else
if
(
auth
==
2001
){
this
.
unregistered
=
false
;
}
}
else
{
let
getUserInfo
=
await
this
.
getUserInfo
();
}
}
},
onHide
(){
},
onShow
()
{
// uni.hideTabBar();
},
onReady
()
{
this
.
getAuth
();
}
}
</
script
>
<
style
>
<
style
lang=
"scss"
scoped
>
.screen-container
{
// position: fixed;
position
:
absolute
;
width
:
100%
;
height
:
100%
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
.bg
{
width
:
100%
;
height
:
100%
;
}
.btn
{
position
:
absolute
;
transform
:
translateX
(
-50%
);
left
:
50%
;
bottom
:
100rpx
;
width
:
640rpx
;
height
:
100rpx
;
line-height
:
100rpx
;
background-color
:
#fff
;
color
:red
;
border-radius
:
30rpx
;
font-size
:
50rpx
;
font-weight
:
400
;
color
:
#ff6427
;
box-shadow
:
0
10px
15px
0
rgba
(
255
,
255
,
255
,
0
.2
);
}
}
</
style
>
static/img/screen/screen-bg.png
View replaced file @
85470940
View file @
8410ec71
513 KB
|
W:
|
H:
454 KB
|
W:
|
H:
2-up
Swipe
Onion skin
static/img/screen/screen-btn.png
deleted
100644 → 0
View file @
85470940
5.41 KB
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