Authored by 陈轩

im employee head

... ... @@ -408,7 +408,7 @@ var chat = {
break;
case allTypes.CS_SEND:
viewData.from = 'employee';
viewData.avatar = customerService.head || socketConf.defaultUserHead;
viewData.avatar = customerService.head || socketConf.employeHead;
break;
case allTypes.ROBOT_SEND:
viewData.from = 'rebot';
... ... @@ -579,13 +579,20 @@ var chat = {
$chat.append(time(Date.now()).show());
}
// state: 0 没有人工客服
function noEmploye() {
$chatHeader.find('.js-service-txt').text('YOHO客服');
$chat.append(time(Date.now()).show());
sysInfo(chatMessage.content);
sysInfo();
}
// state 1: 排队中
function inQueue() {
// let info = `${chatMessage.content}您可以<span class="blue" data-trigger="leave-msg">留言</span>`;
let info = `${chatMessage.content}您可以<span class="blue" data-trigger="leave-msg">留言</span>`;
// sysInfo(info);
sysInfo();
sysInfo(info);
}
// state 2: 人工客服进入
... ... @@ -600,6 +607,7 @@ var chat = {
}
switch (state) {
case 0: noEmploye(); break;
case 1: inQueue(); break;
case 2:
case 3:
... ...
... ... @@ -10,6 +10,7 @@ var config = {
servers: [gDomains.imSocket],
defaultUserHead: '//img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif',
rebotUserHead: `${window.STATIC_RESOURCE_PATH}/img/service/chat/im-robot.png`,
employeHead: '//img12.static.yhbimg.com/imserver/2016/11/17/11/02bc3c3de856432175c01d937342a1f2ce.jpg',
recType: {
ENTER: 1, // 用户进入
LINK_SUCCESS: 2, // 连线人工客服回应
... ...