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
3555172f
authored
Sep 09, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
11
parent
4c580521
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
app.js
utils/chat.js
app.js
View file @
3555172f
...
@@ -50,7 +50,7 @@ App({
...
@@ -50,7 +50,7 @@ App({
//验证是否授权
//验证是否授权
if
(
this
.
globalData
.
auth
)
{
if
(
this
.
globalData
.
auth
)
{
//是否登录
//是否登录
if
(
this
.
globalData
.
token
)
{
if
(
judgeToken
()
)
{
// wx.switchTab({
// wx.switchTab({
// url: '/pages/tab/home/home'
// url: '/pages/tab/home/home'
// });
// });
...
@@ -60,9 +60,11 @@ App({
...
@@ -60,9 +60,11 @@ App({
});
});
}
}
}
else
{
}
else
{
wx
.
reLaunch
({
if
(
!
judgeToken
()){
url
:
'/pages/person/auth/index'
wx
.
reLaunch
({
});
url
:
'/pages/person/auth/index'
});
}
}
}
...
...
utils/chat.js
View file @
3555172f
...
@@ -37,6 +37,7 @@ const onMessageError = (err) => {
...
@@ -37,6 +37,7 @@ const onMessageError = (err) => {
return
true
;
return
true
;
}
}
const
getImUser
=
()
=>
{
const
getImUser
=
()
=>
{
let
token
=
wx
.
getStorageSync
(
'access_token'
)
||
''
;
let
token
=
wx
.
getStorageSync
(
'access_token'
)
||
''
;
let
imName
=
wx
.
getStorageSync
(
'myUsername'
)
||
''
;
let
imName
=
wx
.
getStorageSync
(
'myUsername'
)
||
''
;
let
imPassword
=
wx
.
getStorageSync
(
'myPassword'
)
||
''
;
let
imPassword
=
wx
.
getStorageSync
(
'myPassword'
)
||
''
;
...
...
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