Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsalesProgram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
31e46ea0
authored
Nov 15, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
授权页面无网络提示
parent
cbde107e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
pages/person/auth/index.js
pages/person/auth/index.js
View file @
31e46ea0
...
...
@@ -106,7 +106,6 @@ Page({
*/
bindGetUserInfo
(
e
)
{
let
self
=
this
;
if
(
e
.
detail
.
errMsg
==
'getUserInfo:ok'
)
{
wx
.
login
({
success
(
res
)
{
...
...
@@ -157,11 +156,32 @@ Page({
}
})
}
else
{
//用户拒绝获取资料
wx
.
navigateTo
({
url
:
'/pages/person/login/index'
});
wx
.
getNetworkType
({
success
(
res
)
{
const
networkType
=
res
.
networkType
;
if
(
networkType
!=
'none'
)
{
//有网络
wx
.
navigateTo
({
url
:
'/pages/person/login/index'
});
}
else
{
wx
.
hideNavigationBarLoading
();
wx
.
showToast
({
title
:
'网络出现异常'
,
icon
:
'none'
,
duration
:
2000
});
}
},
fail
:
function
()
{
wx
.
navigateTo
({
url
:
'/pages/person/login/index'
});
}
})
}
},
...
...
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