This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
hly
/
knowledge-payment-uniapp-240823
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
修改样式
master
前端-胡立永
5 months ago
parent
288c0281d1
commit
d40ce3a492
1 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
store/store.js
+ 6
- 0
store/store.js
View File
@ -37,6 +37,9 @@ const store = new Vuex.Store({
}
)
}
,
login
(
state
)
{
uni
.
showLoading
(
{
title
:
'登录中...'
}
)
uni
.
login
(
{
success
(
res
)
{
if
(
res
.
errMsg
!=
"login:ok"
)
{
@ -45,6 +48,9 @@ const store = new Vuex.Store({
api
(
'loginLogin'
,
{
code
:
res
.
code
}
,
res
=>
{
uni
.
hideLoading
(
)
if
(
res
.
code
!=
200
)
{
return
}
Write
Preview
Loading…
Cancel
Save