添加发送图片功能
This commit is contained in:
parent
8094f191e5
commit
b76c37bdb9
@ -316,12 +316,12 @@ layui.use(['layer', 'form', 'jquery'], function () {
|
|||||||
var index = uuids.indexOf(msg.uid);
|
var index = uuids.indexOf(msg.uid);
|
||||||
if( index == -1){
|
if( index == -1){
|
||||||
uuids.push(msg.uid);
|
uuids.push(msg.uid);
|
||||||
insert_user_html(msg);
|
insert_user_html(msg.uid,msg.name + '#'+ (uuids.length + 1));
|
||||||
//创建聊天section
|
//创建聊天section
|
||||||
insert_section(msg.uid);
|
insert_section(msg.uid);
|
||||||
}else{
|
}else{
|
||||||
if($(".chat-user").find("#"+msg.uid).length == 0){
|
if($(".chat-user").find("#"+msg.uid).length == 0){
|
||||||
insert_user_html(msg);
|
insert_user_html(msg.uid,msg.name + '#'+ (uuids.length + 1));
|
||||||
//创建聊天section
|
//创建聊天section
|
||||||
insert_section(msg.uid);
|
insert_section(msg.uid);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user