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
ceb5207d
authored
Jul 18, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
Signed-off-by: shiyu <847476962@qq.com>
parent
1c3f4f35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
dist/js/chat/index.js
dist/js/chat/index.js
View file @
ceb5207d
...
...
@@ -453,6 +453,7 @@ $(function () {
},
fail
:
function
(
e
)
{
console
.
log
(
"Send private text failed"
,
e
);
layer
.
msg
(
'消息发送失败'
);
}
});
this
.
conn
.
send
(
msg
.
body
);
...
...
@@ -478,6 +479,7 @@ $(function () {
},
fail
:
function
()
{
console
.
log
(
"Send Cmd failed"
);
layer
.
msg
(
'消息发送失败'
);
}
});
this
.
conn
.
send
(
msg
.
body
);
...
...
@@ -515,6 +517,10 @@ $(function () {
$
(
'#'
+
userId
).
find
(
'.notice_list'
).
scrollTop
(
contentHeight
);
$
(
'#img_upload'
).
val
(
''
);
},
fail
:
function
()
{
console
.
log
(
"Send Image failed"
);
layer
.
msg
(
'消息发送失败'
);
}
};
msg
.
set
(
option
);
this
.
conn
.
send
(
msg
.
body
);
...
...
@@ -572,7 +578,7 @@ $(function () {
if
(
self
.
isLoginSuccess
)
{
//登入成功 获取聊天记录
self
.
getHistoryData
(
id
,
isTemplate
)
}
else
{
layer
.
msg
(
'
获取聊天记录失败
'
);
layer
.
msg
(
'
聊天系统出错
'
);
return
;
}
});
...
...
@@ -585,9 +591,8 @@ $(function () {
var
self
=
this
;
this
.
conn
.
fetchHistoryMessages
({
queue
:
id
,
count
:
"
10
0"
,
count
:
"
5
0"
,
success
:
function
(
data
)
{
console
.
log
(
'xixixi'
)
self
.
rendHistoryMessage
(
id
,
data
)
if
(
isTemplate
){
self
.
sendCmd
(
self
.
templateObj
);
...
...
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