...
|
...
|
@@ -44,13 +44,6 @@ let encryptedUid = cmEntity.encryptedUid = $('#js-eid').val() || 0; |
|
|
let userAvatar = cmEntity.userHead = $('#js-avatar').val() || socketConf.defaultUserHead;
|
|
|
|
|
|
|
|
|
// 客服配置
|
|
|
let customerService = {
|
|
|
head: socketConf.defaultUserHead,
|
|
|
name: ''
|
|
|
};
|
|
|
|
|
|
|
|
|
// 历史消息分页
|
|
|
let msgHistory = {
|
|
|
conversationId: '', // 会话id
|
...
|
...
|
@@ -293,8 +286,6 @@ var chat = { |
|
|
|
|
|
msg.uuid = uuid;
|
|
|
cmEntity.userHead = msg.avatar = userAvatar;
|
|
|
cmEntity.csHead = customerService.head;
|
|
|
cmEntity.csName = customerService.name;
|
|
|
cmEntity.uuid = uuid;
|
|
|
cmEntity.type = socketConf.recType.CU_SEND;
|
|
|
|
...
|
...
|
@@ -408,7 +399,7 @@ var chat = { |
|
|
break;
|
|
|
case allTypes.CS_SEND:
|
|
|
viewData.from = 'employee';
|
|
|
viewData.avatar = customerService.head || socketConf.employeHead;
|
|
|
viewData.avatar = cm.csHead || socketConf.employeHead;
|
|
|
break;
|
|
|
case allTypes.ROBOT_SEND:
|
|
|
viewData.from = 'rebot';
|
...
|
...
|
@@ -571,9 +562,6 @@ var chat = { |
|
|
const chatMessage = cmEntity.chatMessage;
|
|
|
|
|
|
|
|
|
customerService.head = cmEntity.csHead;
|
|
|
customerService.name = cmEntity.csName;
|
|
|
|
|
|
function noService() {
|
|
|
$chatHeader.find('.js-service-txt').text('YOHO客服');
|
|
|
$chat.append(time(Date.now()).show());
|
...
|
...
|
|