From 9c05ff35db491a07539893fc0c7f1c46e1877bb3 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Tue, 2 Jul 2024 16:45:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=EF=BC=9Ama?= =?UTF-8?q?ll=20=E5=AE=A2=E6=9C=8D=E5=AE=9E=E7=8E=B0=20emoji=20=E8=A1=A8?= =?UTF-8?q?=E6=83=85=E9=80=89=E6=8B=A9=E5=92=8C=E6=B6=88=E6=81=AF=E5=8F=91?= =?UTF-8?q?=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mall/promotion/kefu/message/index.ts | 2 +- .../kefu/components/EmojiSelectPopover.vue | 40 +++ .../promotion/kefu/components/KeFuChatBox.vue | 281 ++++++------------ .../mall/promotion/kefu/components/emoji.ts | 17 +- 4 files changed, 151 insertions(+), 189 deletions(-) create mode 100644 src/views/mall/promotion/kefu/components/EmojiSelectPopover.vue diff --git a/src/api/mall/promotion/kefu/message/index.ts b/src/api/mall/promotion/kefu/message/index.ts index 3408f1e0..a598b541 100644 --- a/src/api/mall/promotion/kefu/message/index.ts +++ b/src/api/mall/promotion/kefu/message/index.ts @@ -51,7 +51,7 @@ export interface KeFuMessageRespVO { export const KeFuMessageApi = { // 发送客服消息 sendKeFuMessage: async (data: any) => { - return await request.put({ + return await request.post({ url: '/promotion/kefu-message/send', data }) diff --git a/src/views/mall/promotion/kefu/components/EmojiSelectPopover.vue b/src/views/mall/promotion/kefu/components/EmojiSelectPopover.vue new file mode 100644 index 00000000..03a963c6 --- /dev/null +++ b/src/views/mall/promotion/kefu/components/EmojiSelectPopover.vue @@ -0,0 +1,40 @@ + + + + diff --git a/src/views/mall/promotion/kefu/components/KeFuChatBox.vue b/src/views/mall/promotion/kefu/components/KeFuChatBox.vue index 665fe995..40c0b126 100644 --- a/src/views/mall/promotion/kefu/components/KeFuChatBox.vue +++ b/src/views/mall/promotion/kefu/components/KeFuChatBox.vue @@ -3,58 +3,61 @@
{{ keFuConversation.userNickname }}
- -
- -
- - - + + +
+
+ +
+ + + +
+ +
- -
+ -
- +
- 发送 + 发送
@@ -63,162 +66,66 @@