From 17b4decb19e20051d35e8e3d339e62cf6404d845 Mon Sep 17 00:00:00 2001 From: zoujing Date: Wed, 6 Aug 2025 19:10:28 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20=E5=8F=91=E9=80=81=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=90=8E=E7=9A=84=E6=B8=85=E9=99=A4=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/chat/ChatInputArea.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pages/chat/ChatInputArea.vue b/pages/chat/ChatInputArea.vue index 74932fe..fb3a386 100644 --- a/pages/chat/ChatInputArea.vue +++ b/pages/chat/ChatInputArea.vue @@ -85,16 +85,16 @@ import { ref, watch, nextTick, onMounted, onUnmounted } from 'vue' const props = defineProps({ - inputMessage: String, + modelValue: String, holdKeyboard: Boolean, isSessionActive: Boolean, stopRequest: Function }) -const emit = defineEmits(['update:inputMessage', 'send', 'noHideKeyboard', 'keyboardShow', 'keyboardHide', 'sendVoice']) +const emit = defineEmits(['update:modelValue', 'send', 'noHideKeyboard', 'keyboardShow', 'keyboardHide', 'sendVoice']) const textareaRef = ref(null) const placeholder = ref('快告诉朵朵您在想什么~') -const inputMessage = ref(props.inputMessage || '') +const inputMessage = ref(props.modelValue || '') const isFocused = ref(false) const keyboardHeight = ref(0) const isVoiceMode = ref(false) @@ -107,10 +107,18 @@ const isSlideToText = ref(false) // 保持和父组件同步 -watch(() => props.inputMessage, (val) => { +watch(() => props.modelValue, (val) => { inputMessage.value = val }) +// 当子组件的 inputMessage 变化时,通知父组件(但要避免循环更新) +watch(inputMessage, (val) => { + // 只有当值真正不同时才emit,避免循环更新 + if (val !== props.modelValue) { + emit('update:modelValue', val) + } +}) + // 切换语音/文本模式 const toggleVoiceMode = () => { isVoiceMode.value = !isVoiceMode.value From c3e47c281337713204e7c7eae5f5c3975d619c20 Mon Sep 17 00:00:00 2001 From: zoujing Date: Wed, 6 Aug 2025 20:54:37 +0800 Subject: [PATCH 2/4] =?UTF-8?q?feat:=20=E5=BF=AB=E9=80=9F=E9=A2=84?= =?UTF-8?q?=E5=AE=9A=E7=9A=84key=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/module/booking/QuickBookingContentList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/module/booking/QuickBookingContentList.vue b/pages/module/booking/QuickBookingContentList.vue index 7273b1d..3b90a49 100644 --- a/pages/module/booking/QuickBookingContentList.vue +++ b/pages/module/booking/QuickBookingContentList.vue @@ -2,7 +2,7 @@ - + From fdce4b794797ae5390b726efe7f16344e02503df Mon Sep 17 00:00:00 2001 From: zoujing Date: Wed, 6 Aug 2025 21:11:03 +0800 Subject: [PATCH 3/4] =?UTF-8?q?feat:=20=E6=94=B9=E5=8F=98=E6=97=A5?= =?UTF-8?q?=E5=8E=86=E5=9B=BE=E6=A0=87=E7=9A=84=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/module/booking/QuickBookingCalender.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/module/booking/QuickBookingCalender.vue b/pages/module/booking/QuickBookingCalender.vue index 2bd9339..68b2fe4 100644 --- a/pages/module/booking/QuickBookingCalender.vue +++ b/pages/module/booking/QuickBookingCalender.vue @@ -133,8 +133,8 @@ onMounted(() => { box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.1); /* 阴影 */ } .calendar-img { - width: 48rpx; - height: 48rpx; + width: 16px; + height: 16px; } .calendar-text { font-size: 22rpx; From 932078c3dc5f2741fb5a8fe380b57edb7beccfaf Mon Sep 17 00:00:00 2001 From: zoujing Date: Wed, 6 Aug 2025 21:58:26 +0800 Subject: [PATCH 4/4] =?UTF-8?q?feat:=20=E5=AF=B9=E6=8E=A5=E4=BA=86?= =?UTF-8?q?=E5=91=BC=E5=8F=AB=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CreateServiceOrder/index.vue | 124 +++++++++++++++++- components/CreateServiceOrder/prompt.md | 4 + .../CreateServiceOrder/styles/index.scss | 37 ++++++ request/api/OrderApi.js | 6 + 4 files changed, 166 insertions(+), 5 deletions(-) diff --git a/components/CreateServiceOrder/index.vue b/components/CreateServiceOrder/index.vue index 476967a..6c42208 100644 --- a/components/CreateServiceOrder/index.vue +++ b/components/CreateServiceOrder/index.vue @@ -21,22 +21,42 @@ 联系房客: + + {{ contactName }} 联系电话: + + {{ contactPhone }} - + + + + + + + + + @@ -49,14 +69,100 @@