...
|
...
|
@@ -40,7 +40,7 @@ var key, |
|
|
urls = {
|
|
|
makeEval: '/evalute/saveEvalute',
|
|
|
leaveMsg: '/leavemessage/saveLeavemessage',
|
|
|
evalReason: '/evalute/queryEvaluteReason',
|
|
|
evalReason: '/evalute/queryReasonByConversationId',
|
|
|
msgHistory: '/conversationMessage/pageList'
|
|
|
};
|
|
|
|
...
|
...
|
@@ -55,7 +55,7 @@ encryptedUid = $encryptedUid.val(); |
|
|
socketConf.conversationMessage.encryptedUid = encryptedUid;
|
|
|
cmEntity = socketConf.conversationMessage;
|
|
|
|
|
|
// // 原始配置信息用于重新连线
|
|
|
// 原始配置信息用于重新连线
|
|
|
originConf = JSON.parse(JSON.stringify(socketConf));
|
|
|
|
|
|
// url前缀添加
|
...
|
...
|
@@ -269,7 +269,6 @@ function enterSuccess(message) { |
|
|
<p class="push-tip">
|
|
|
<span class="tip">
|
|
|
${message.content}
|
|
|
<span class="countdown"></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>`;
|
...
|
...
|
@@ -277,9 +276,6 @@ function enterSuccess(message) { |
|
|
// 添加消息
|
|
|
$msgList.append(liHtml);
|
|
|
$panelMainBody.scrollTop($panelMainBody[0].scrollHeight);
|
|
|
|
|
|
// 倒计时信息
|
|
|
countdown(message.newContent, $('.tip .countdown'));
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -382,6 +378,31 @@ function _handleCusMsg(rec, msgType, message) { |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 链接终端倒计时
|
|
|
* @private
|
|
|
*/
|
|
|
function _breakCountdown(message) {
|
|
|
var liHtml;
|
|
|
|
|
|
liHtml =
|
|
|
`<div class="list-item">
|
|
|
<p class="push-tip">
|
|
|
<span class="tip">
|
|
|
${message.content}
|
|
|
<span class="countdown"></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>`;
|
|
|
|
|
|
$msgList.append(liHtml);
|
|
|
$panelMainBody.scrollTop($panelMainBody[0].scrollHeight);
|
|
|
// 倒计时信息
|
|
|
countdown(message.newContent, $('.tip .countdown'));
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 处理客服消息
|
|
|
* @private
|
|
|
*/
|
...
|
...
|
@@ -473,7 +494,7 @@ function showEvalModal() { |
|
|
type: 'GET',
|
|
|
url: urls.evalReason,
|
|
|
data: {
|
|
|
customerSettingId: 0 // TODO
|
|
|
conversationId: socketConf.conversationMessage.conversationId
|
|
|
},
|
|
|
success: function(res) {
|
|
|
var data = res.data,
|
...
|
...
|
@@ -515,6 +536,10 @@ function getMessage(rec) { |
|
|
_handleCusMsg(rec, msgType, message);
|
|
|
break;
|
|
|
|
|
|
case allTypes.BREAK_TIME:
|
|
|
_breakCountdown(message);
|
|
|
break;
|
|
|
|
|
|
case allTypes.ROBOT_SEND:
|
|
|
rec.csName = rec.csName || '客服机器人';
|
|
|
message.newContent = message.newContent || '机器人暂时无法提供服务';
|
...
|
...
|
|