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
119f1180
authored
Jul 24, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
3f52f0b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
app.js
app.json
pages/person/getphone/index.js
app.js
View file @
119f1180
...
...
@@ -33,6 +33,7 @@ function addMember(id) {
data
:
member
});
}
App
({
globalData
:
{
unReadMessageNum
:
0
,
...
...
@@ -59,6 +60,21 @@ App({
onLaunch
()
{
let
me
=
this
;
//验证用户是否登录状态
wx
.
getStorage
({
key
:
'access_token'
,
success
(
res
)
{
if
(
res
.
data
){
wx
.
switchTab
({
url
:
'/pages/tab/home/home'
});
}
}
})
// 查看是否授权
wx
.
getSetting
({
success
(
res
)
{
...
...
app.json
View file @
119f1180
{
"pages"
:
[
"pages/person/auth/index"
,
"pages/person/verifycode/index"
,
"pages/person/login/index"
,
"pages/person/auth/index"
,
"pages/person/getphone/index"
,
"pages/person/agreement/index"
,
"pages/person/successfully/index"
,
...
...
pages/person/getphone/index.js
View file @
119f1180
...
...
@@ -82,7 +82,7 @@ Page({
//注入token
wx
.
setStorage
({
key
:
"token"
,
key
:
"
access_
token"
,
data
:
res
.
data
.
access_token
});
...
...
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