diff --git a/pages/chat/components/chatBox.vue b/pages/chat/components/chatBox.vue index a52ef3b..e0e3d4d 100644 --- a/pages/chat/components/chatBox.vue +++ b/pages/chat/components/chatBox.vue @@ -217,7 +217,6 @@ // 虚拟列表展示可视区域的数据 const includePage = index => { - console.log(visiblePagesList.value, index); return visiblePagesList.value.indexOf(index) > -1; }; diff --git a/pages/chat/components/constants.js b/pages/chat/components/constants.js index 0fd4e9e..1b8eba9 100644 --- a/pages/chat/components/constants.js +++ b/pages/chat/components/constants.js @@ -12,3 +12,8 @@ export const UserTypeEnum = { MEMBER: 1, // 会员 面向 c 端,普通用户 ADMIN: 2, // 管理员 面向 b 端,管理后台 }; +// Promotion 的 WebSocket 消息类型枚举类 +export const WebSocketMessageTypeConstants = { + KEFU_MESSAGE_TYPE: 'kefu_message_type', // 客服消息类型 + KEFU_MESSAGE_ADMIN_READ: 'kefu_message_read_status_change' // 客服消息管理员已读 +} diff --git a/pages/chat/index.vue b/pages/chat/index.vue index f9b0350..ba55e59 100644 --- a/pages/chat/index.vue +++ b/pages/chat/index.vue @@ -2,7 +2,7 @@
- + {{ !isReconnecting ? "连接客服成功" : '会话重连中!!!' }}
@@ -29,13 +29,12 @@