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
2c3036c6
authored
Nov 18, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://119.23.72.7/shiyu/icsalesProgram
parents
21187fc9
31e46ea0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
pages/person/auth/index.js
pages/person/auth/index.js
View file @
2c3036c6
...
...
@@ -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
.
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