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 a2a48787
authored
Sep 06, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改登录逻辑
1 parent
eb8f265a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
login/index/components/Box/Box.js
login/index/components/Box/Box.js
View file @
a2a4878
...
@@ -203,11 +203,11 @@ Component({
...
@@ -203,11 +203,11 @@ Component({
/**微信登录 */
/**微信登录 */
wxLogin
({
detail
})
{
wxLogin
({
detail
})
{
console
.
log
(
detail
,
'detail'
);
console
.
log
(
detail
,
'detail'
);
if
(
detail
.
errno
==
104
)
return
//用户手动拒绝
if
(
detail
.
errno
==
104
||!
detail
.
code
)
return
//用户手动拒绝
if
(
!
detail
.
code
)
{
//
if (!detail.code) {
wx
.
$api
.
showToast
(
'当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
)
// //
wx.$api.showToast('当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。')
return
//
return
}
//
}
this
.
setBtnLoading
()
this
.
setBtnLoading
()
USERAPI
.
authUserPhone
(
detail
,
this
.
loginToken
)
USERAPI
.
authUserPhone
(
detail
,
this
.
loginToken
)
.
then
(({
code
,
data
,
message
})
=>
{
.
then
(({
code
,
data
,
message
})
=>
{
...
...
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