Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1a22e947
authored
Oct 26, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改代码
1 parent
a0c2b175
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
login/index/components/Box/Box.js
router/routerBefore.js
login/index/components/Box/Box.js
View file @
1a22e94
...
...
@@ -221,7 +221,10 @@ Component({
message
})
=>
{
if
(
code
==
'0'
)
this
.
checkLoginUserInfo
(
data
)
else
wx
.
$api
.
showToast
(
message
||
'系统异常'
)
else
{
wx
.
$api
.
showToast
(
message
||
'系统异常'
)
this
.
init
()
}
this
.
setBtnLoading
(
false
)
})
.
catch
(({
...
...
@@ -229,6 +232,7 @@ Component({
})
=>
{
wx
.
$api
.
showToast
(
errMsg
||
'系统异常'
)
this
.
setBtnLoading
(
false
)
this
.
init
()
})
},
/**手机号&微信登录:是否跳转登录列表页 */
...
...
router/routerBefore.js
View file @
1a22e94
...
...
@@ -26,15 +26,15 @@ Page = function (options) {
const
oldHide
=
options
.
onHide
options
.
onShow
=
function
()
{
routerBefore
(()
=>
{
oldShow
.
apply
(
this
,
arguments
)
oldShow
&&
oldShow
.
apply
(
this
,
arguments
)
})
}
options
.
onHide
=
function
()
{
routerAfter
(()
=>
{
oldHide
.
apply
(
this
,
arguments
)
oldHide
&&
oldHide
.
apply
(
this
,
arguments
)
})
}
OldPage
(
options
)
}
export
default
routerBefore
export
default
routerBefore
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment