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 @@