Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
da447795
Commit
da447795
authored
Mar 31, 2018
by
Junling Bu
Browse files
fix[litemall-wx]:上次提交存在问题,这里得到修正。
parent
67b386de
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-wx/pages/auth/login/login.js
View file @
da447795
...
...
@@ -39,6 +39,7 @@ Page({
delta
:
1
})
}).
catch
((
err
)
=>
{
app
.
globalData
.
hasLogin
=
false
;
util
.
showErrorToast
(
'
微信登录失败
'
);
});
...
...
@@ -82,6 +83,10 @@ Page({
}
});
}
else
{
app
.
globalData
.
hasLogin
=
false
;
util
.
showErrorToast
(
'
账户登录失败
'
);
}
}
});
},
...
...
litemall-wx/utils/util.js
View file @
da447795
...
...
@@ -44,8 +44,6 @@ function request(url, data = {}, method = "GET") {
}
catch
(
e
)
{
// Do something when catch error
}
// 重置app的未登录状态
app
.
globalData
.
hasLogin
=
false
;
// 切换到登录页面
wx
.
navigateTo
({
url
:
'
/pages/auth/login/login
'
...
...
Write
Preview
Supports
Markdown
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