Authored by 李奇

fixed:评价五颗星修正,图片路径修复

... ... @@ -47,9 +47,11 @@
<input name="encryptedUid" type="text" type="hidden" value={{encryptedUid}}>
{{#if devEnv}}
<input name="assetsPrefix" type="text" type="hidden" value="">
<script src="//localhost:5002/libs.js"></script>
<script src="//localhost:5002/{{module}}.{{page}}.js"></script>
{{^}}
<input name="assetsPrefix" type="text" type="hidden" value="//cdn.yoho.cn/yohobuy-node/assets">
<script src="//cdn.yoho.cn/yohobuy-node/{{version}}/libs.js"></script>
<script src="//cdn.yoho.cn/yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script>
{{> analysis}}
... ...
... ... @@ -12,7 +12,7 @@
<span class="star positive"></span>
<span class="star positive"></span>
<span class="star positive"></span>
<p class="star-text">一般</p>
<p class="star-text">非常满意</p>
</div>
<div class="detail-reason">
<div class="discontent"></div>
... ...

3.47 KB | W: | H:

822 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -18,6 +18,7 @@ var cmEntity,
endTime,
originConf,
encryptedUid,
assetsPrefix,
cursorPosition,
hasMore = true,
titleInterval,
... ... @@ -62,6 +63,7 @@ require('blueimp-file-upload/js/jquery.fileupload-validate');
encryptedUid = $encryptedUid.val();
socketConf.conversationMessage.encryptedUid = encryptedUid;
cmEntity = socketConf.conversationMessage;
assetsPrefix = $('input[name=assetsPrefix]').val();
// 原始配置信息用于重新连线
originConf = JSON.parse(JSON.stringify(socketConf));
... ... @@ -248,7 +250,9 @@ function leaveMsg() {
* 成功进入在线客服
*/
function enterSuccess(message) {
var liHtml;
var liHtml,
$iconMs = $('.icon.manual-service');
liHtml =
`<div class="list-item">
... ... @@ -259,6 +263,9 @@ function enterSuccess(message) {
</p>
</div>`;
// 进入成功显示人工客服
$iconMs.show();
// 添加消息
$msgList.append(liHtml);
$panelMainBody.scrollTop($panelMainBody[0].scrollHeight);
... ... @@ -351,7 +358,7 @@ function linkSuccess(msgType, message) {
*/
function emojiPrefix(text) {
if (typeof text === 'string') {
return text.replace(/src="(\d{3}).gif"/g, 'src="/img/service/emoji/$1.gif"');
return text.replace(/src="(\d{3}).gif"/g, 'src="' + assetsPrefix + '/img/service/emoji/$1.gif"');
}
return text;
... ... @@ -559,7 +566,7 @@ function getMessage(rec) {
case allTypes.ROBOT_SEND:
rec.csName = rec.csName || '客服机器人';
tipTpl = `<div class="list-item guest">
<img src="/img/service/robot-avatar.png" class="avatar">
<img src="${assetsPrefix}/img/service/robot-avatar.png" class="avatar">
<div class="item-detail">
<span class="time">${rec.csName} ${rec.sendTimeShort}</span>
<div class="msg-bubble">
... ...
... ... @@ -438,7 +438,8 @@ $color-3a3a3a: #3a3a3a;
line-height: 13px;
cursor: pointer;
&.evaluate {
&.evaluate,
&.manual-service {
display: none;
}
... ...