diff --git a/src/pages/index/components/chat/ChatCardOther/index.vue b/src/pages/index/components/chat/ChatCardOther/index.vue index 40cb256..c67ac4b 100644 --- a/src/pages/index/components/chat/ChatCardOther/index.vue +++ b/src/pages/index/components/chat/ChatCardOther/index.vue @@ -17,6 +17,4 @@ defineProps({ }); - + diff --git a/src/pages/index/components/chat/ChatMainList/index.vue b/src/pages/index/components/chat/ChatMainList/index.vue index 94d02cf..3e4c974 100644 --- a/src/pages/index/components/chat/ChatMainList/index.vue +++ b/src/pages/index/components/chat/ChatMainList/index.vue @@ -275,7 +275,7 @@ const handleReply = (text) => { const handleReplyInstruct = async (item) => { await checkToken(); - if (item.type === "MyOrder") { + if (item.type === "Command.myOrder") { // 订单 uni.navigateTo({ url: "/pages-order/order/list", @@ -775,6 +775,4 @@ const resetConfig = () => { }; - + diff --git a/src/pages/index/components/chat/ChatQuickAccess/index.vue b/src/pages/index/components/chat/ChatQuickAccess/index.vue index d678eda..47fce38 100644 --- a/src/pages/index/components/chat/ChatQuickAccess/index.vue +++ b/src/pages/index/components/chat/ChatQuickAccess/index.vue @@ -35,8 +35,8 @@ const itemList = ref([ }, { icon: "", - title: "反馈意见", - type: "Command.feedbackCard", + title: "呼叫服务", + type: "Command.createWorkOrderCard", }, { icon: "https://oss.nianxx.cn/mp/static/version_101/home/more.png", @@ -48,6 +48,10 @@ const itemList = ref([ const emits = defineEmits(["replySent"]); const sendReply = (item) => { + if (item.type === "Command.more") { + uni.$emit("SHOW_MORE_POPUP"); + return; + } emits("replySent", item); // 向父组件传递数据 }; @@ -85,7 +89,7 @@ const initData = () => { showIcon: false, title: "订单/工单", content: "我的订单/工单", - type: "MyOrder", + type: "Command.myOrder", }, ] : [ @@ -108,7 +112,7 @@ const initData = () => { showIcon: false, title: "订单/工单", content: "我的订单/工单", - type: "MyOrder", + type: "Command.myOrder", }, { icon: "https://oss.nianxx.cn/mp/static/quick/quick_icon_call.png", diff --git a/src/pages/index/components/module/MoreService/index.vue b/src/pages/index/components/module/MoreService/index.vue new file mode 100644 index 0000000..5115d6d --- /dev/null +++ b/src/pages/index/components/module/MoreService/index.vue @@ -0,0 +1,99 @@ + + + + + diff --git a/src/pages/index/components/module/MoreService/styles/index.scss b/src/pages/index/components/module/MoreService/styles/index.scss new file mode 100644 index 0000000..413b694 --- /dev/null +++ b/src/pages/index/components/module/MoreService/styles/index.scss @@ -0,0 +1,29 @@ +.popup-content { + background-color: #f5f7fa; + border-radius: 15px 15px 0 0; + padding-bottom: Max(env(safe-area-inset-bottom), 12px) !important; +} + +.list { + border-radius: 15px; +} + +.item { + gap: 20px; + + &:last-child { + border-bottom: none; + } +} + +.left { + width: 24px; + height: 24px; + margin-right: 12px; +} + +.right { + background-color: #2d91ff; + border-radius: 5px; + padding: 6px; +} diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index e724bff..0ab38cf 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -11,6 +11,9 @@ @close="handleCalendarClose" @select="handleDateSelect" /> + + +