Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
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
5605d31d
authored
Aug 06, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
11
parent
265739a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
dist/js/chat/index.js
dist/js/chat/index.js
View file @
5605d31d
...
@@ -575,6 +575,18 @@ $(function () {
...
@@ -575,6 +575,18 @@ $(function () {
onError
:
function
(
message
)
{
onError
:
function
(
message
)
{
// console.log('Error', WebIM.utils.stringify(message));
// console.log('Error', WebIM.utils.stringify(message));
console
.
log
(
'onError: '
,
message
);
console
.
log
(
'onError: '
,
message
);
if
(
message
.
type
==
206
)
{
layer
.
open
({
title
:
'提示'
,
content
:
'您的聊天账号被迫下线!'
});
}
else
{
layer
.
open
({
title
:
'提示'
,
content
:
'聊天系统出现异常!'
});
}
// layer.msg('聊天系统出错');
// layer.msg('聊天系统出错');
},
//失败回调;
},
//失败回调;
});
});
...
@@ -923,7 +935,7 @@ $(function () {
...
@@ -923,7 +935,7 @@ $(function () {
},
},
rendHistoryMessage
:
function
(
id
,
data
,
isTemplate
)
{
rendHistoryMessage
:
function
(
id
,
data
,
isTemplate
)
{
var
position
=
$
(
".notice_classify[userid="
+
id
+
"]"
).
attr
(
'position'
);
var
position
=
$
(
".notice_classify[userid="
+
id
+
"]"
).
attr
(
'position'
);
if
(
position
)
{
if
(
position
)
{
$
(
".notice_classify[userid="
+
id
+
"]"
).
removeAttr
(
'position'
)
$
(
".notice_classify[userid="
+
id
+
"]"
).
removeAttr
(
'position'
)
}
}
var
chatCon
=
""
;
var
chatCon
=
""
;
...
...
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