From 1f590202a8421544f247c47cf03b228f6aa1fb8a Mon Sep 17 00:00:00 2001 From: zoujing Date: Thu, 16 Oct 2025 20:03:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=91=E9=80=81=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E7=9A=84=E7=BB=84=E4=BB=B6=E4=B8=8E=E5=8F=91=E9=80=81=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constant/constant.js | 4 +- src/model/ChatModel.js | 19 ++++ .../components/chat/ChatMainList/index.vue | 23 ++--- .../components/chat/ChatQuickAccess/index.vue | 90 ++----------------- .../module/ActivityListComponent/index.vue | 16 ++-- .../components/module/MoreService/index.vue | 19 ++-- 6 files changed, 66 insertions(+), 105 deletions(-) diff --git a/src/constant/constant.js b/src/constant/constant.js index 439c6d6..48fd96d 100644 --- a/src/constant/constant.js +++ b/src/constant/constant.js @@ -9,5 +9,5 @@ export const SCROLL_TO_BOTTOM = "SCROLL_TO_BOTTOM"; // 推荐帖子 export const RECOMMEND_POSTS_TITLE = "RECOMMEND_POSTS_TITLE"; -// 发送命令 -export const SEND_COMMAND_TEXT = "SEND_COMMAND_TEXT"; +// 发送命令类型 +export const SEND_COMMAND_TYPE = "SEND_COMMAND_TYPE"; diff --git a/src/model/ChatModel.js b/src/model/ChatModel.js index c016da2..53993bd 100644 --- a/src/model/ChatModel.js +++ b/src/model/ChatModel.js @@ -14,6 +14,7 @@ export const MessageType = { IMAGE: "IMAGE", }; +/// 组件的名称 export const CompName = { // 快速预定卡片 quickBookingCard: "quickBookingCard", @@ -28,3 +29,21 @@ export const CompName = { // 输入车牌卡片 enterLicensePlateCard: "enterLicensePlateCard", }; + +/// 发送的指令类型 +export const Command = { + // 快速预定 + quickBooking: "Command.quickBooking", + // 探索发现 + discovery: "Command.discovery", + // 呼叫服务 + createWorkOrderCard: "Command.createWorkOrderCard", + // 更多 + more: "Command.more", + // 我的订单 + myOrder: "Command.myOrder", + // 我的工单 + myWorkOrder: "Command.myWorkOrder", + // 反馈意见 + feedbackCard: "Command.feedbackCard", +}; diff --git a/src/pages/index/components/chat/ChatMainList/index.vue b/src/pages/index/components/chat/ChatMainList/index.vue index 3e4c974..d0ad468 100644 --- a/src/pages/index/components/chat/ChatMainList/index.vue +++ b/src/pages/index/components/chat/ChatMainList/index.vue @@ -104,7 +104,7 @@ - + diff --git a/src/pages/index/components/module/ActivityListComponent/index.vue b/src/pages/index/components/module/ActivityListComponent/index.vue index 6f0df32..d91738e 100644 --- a/src/pages/index/components/module/ActivityListComponent/index.vue +++ b/src/pages/index/components/module/ActivityListComponent/index.vue @@ -11,13 +11,13 @@ :duration="duration" > - + - 快速预定 + {{ commandModel.title }} @@ -26,7 +26,13 @@ diff --git a/src/pages/index/components/module/MoreService/index.vue b/src/pages/index/components/module/MoreService/index.vue index 5115d6d..ca340ce 100644 --- a/src/pages/index/components/module/MoreService/index.vue +++ b/src/pages/index/components/module/MoreService/index.vue @@ -13,7 +13,7 @@ class="item border-box border-bottom pt-20 pb-20" v-for="(item, index) in list" :key="index" - @click="close" + @click="handleClick(item)" > @@ -39,6 +39,8 @@