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
aeada657
authored
Sep 30, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
111
parent
19857c75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
pages/detail/chat/index.js
utils/chat.js
pages/detail/chat/index.js
View file @
aeada657
...
...
@@ -26,7 +26,7 @@ Page({
});
}
if
(
getApp
().
globalData
.
imBoolean
)
{
reloginIm
()
reloginIm
(
true
)
}
},
...
...
utils/chat.js
View file @
aeada657
...
...
@@ -198,11 +198,12 @@ const webimListen = () => {
let
pages
=
getCurrentPages
();
let
curPage
=
pages
[
pages
.
length
-
1
];
getApp
().
globalData
.
imBoolean
=
true
;
wx
.
setStorageSync
(
'is_ShowModal'
,
true
);
if
(
curPage
.
route
==
'pages/tab/message/message'
)
{
reloginIm
(
true
)
}
else
if
(
curPage
.
route
==
"pages/detail/chat/index"
){
reloginIm
()
reloginIm
(
true
)
}
else
{
wx
.
setStorageSync
(
'is_ShowModal'
,
true
);
}
}
else
if
(
error
.
type
==
1
)
{
//用户名或者账号错误
if
(
getApp
().
globalData
.
isRelogin
)
{
...
...
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