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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
app.js
utils/chat.js
app.js
View file @
3555172f
...
...
@@ -50,7 +50,7 @@ App({
//验证是否授权
if
(
this
.
globalData
.
auth
)
{
//是否登录
if
(
this
.
globalData
.
token
)
{
if
(
judgeToken
()
)
{
// wx.switchTab({
// url: '/pages/tab/home/home'
// });
...
...
@@ -60,10 +60,12 @@ App({
});
}
}
else
{
if
(
!
judgeToken
()){
wx
.
reLaunch
({
url
:
'/pages/person/auth/index'
});
}
}
if
(
judgeToken
())
{
...
...
utils/chat.js
View file @
3555172f
...
...
@@ -37,6 +37,7 @@ const onMessageError = (err) => {
return
true
;
}
const
getImUser
=
()
=>
{
let
token
=
wx
.
getStorageSync
(
'access_token'
)
||
''
;
let
imName
=
wx
.
getStorageSync
(
'myUsername'
)
||
''
;
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