...
|
...
|
@@ -46,7 +46,6 @@ const msgTypeMap = { |
|
|
|
|
|
|
|
|
var userAvatar = socketConf.defaultUserHead;
|
|
|
var workAvatar = socketConf.defaultUserHead;
|
|
|
|
|
|
var chat = {
|
|
|
$chat: null,
|
...
|
...
|
@@ -85,7 +84,7 @@ var chat = { |
|
|
url: '/service/userinfo',
|
|
|
}).then(function(result) {
|
|
|
// 获取用户信息
|
|
|
userAvatar = result.head || cmEntity.defaultUserHead;
|
|
|
userAvatar = result.head || socketConf.defaultUserHead;
|
|
|
self.fetchHistoryMsg(function() {
|
|
|
self.bootSocket();
|
|
|
});
|
...
|
...
|
@@ -143,7 +142,7 @@ var chat = { |
|
|
content: $.trim(event.target.value)
|
|
|
}
|
|
|
};
|
|
|
|
|
|
console.log(content)
|
|
|
self.sendMSG(content);
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -339,6 +338,7 @@ var chat = { |
|
|
viewData = [viewData];
|
|
|
}
|
|
|
|
|
|
console.log(viewData);
|
|
|
let $html = $(this.messageT(viewData));
|
|
|
|
|
|
$html.appendTo(this.$chatWin);
|
...
|
...
|
|