Authored by 陈轩

im 客服头像

@@ -44,13 +44,6 @@ let encryptedUid = cmEntity.encryptedUid = $('#js-eid').val() || 0; @@ -44,13 +44,6 @@ let encryptedUid = cmEntity.encryptedUid = $('#js-eid').val() || 0;
44 let userAvatar = cmEntity.userHead = $('#js-avatar').val() || socketConf.defaultUserHead; 44 let userAvatar = cmEntity.userHead = $('#js-avatar').val() || socketConf.defaultUserHead;
45 45
46 46
47 -// 客服配置  
48 -let customerService = {  
49 - head: socketConf.defaultUserHead,  
50 - name: ''  
51 -};  
52 -  
53 -  
54 // 历史消息分页 47 // 历史消息分页
55 let msgHistory = { 48 let msgHistory = {
56 conversationId: '', // 会话id 49 conversationId: '', // 会话id
@@ -293,8 +286,6 @@ var chat = { @@ -293,8 +286,6 @@ var chat = {
293 286
294 msg.uuid = uuid; 287 msg.uuid = uuid;
295 cmEntity.userHead = msg.avatar = userAvatar; 288 cmEntity.userHead = msg.avatar = userAvatar;
296 - cmEntity.csHead = customerService.head;  
297 - cmEntity.csName = customerService.name;  
298 cmEntity.uuid = uuid; 289 cmEntity.uuid = uuid;
299 cmEntity.type = socketConf.recType.CU_SEND; 290 cmEntity.type = socketConf.recType.CU_SEND;
300 291
@@ -408,7 +399,7 @@ var chat = { @@ -408,7 +399,7 @@ var chat = {
408 break; 399 break;
409 case allTypes.CS_SEND: 400 case allTypes.CS_SEND:
410 viewData.from = 'employee'; 401 viewData.from = 'employee';
411 - viewData.avatar = customerService.head || socketConf.employeHead; 402 + viewData.avatar = cm.csHead || socketConf.employeHead;
412 break; 403 break;
413 case allTypes.ROBOT_SEND: 404 case allTypes.ROBOT_SEND:
414 viewData.from = 'rebot'; 405 viewData.from = 'rebot';
@@ -571,9 +562,6 @@ var chat = { @@ -571,9 +562,6 @@ var chat = {
571 const chatMessage = cmEntity.chatMessage; 562 const chatMessage = cmEntity.chatMessage;
572 563
573 564
574 - customerService.head = cmEntity.csHead;  
575 - customerService.name = cmEntity.csName;  
576 -  
577 function noService() { 565 function noService() {
578 $chatHeader.find('.js-service-txt').text('YOHO客服'); 566 $chatHeader.find('.js-service-txt').text('YOHO客服');
579 $chat.append(time(Date.now()).show()); 567 $chat.append(time(Date.now()).show());