From 5a1ee392a9f3b9a53dec22ab54bfedadb34828df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=B3?= Date: Thu, 16 Jul 2026 14:36:20 +0800 Subject: [PATCH] =?UTF-8?q?vear:=E6=B7=BB=E5=8A=A0=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E6=8C=89=E9=92=AE=EF=BC=8C=E5=94=A4=E9=86=92=E9=94=AE=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packageA/pages/chat/chat.vue | 18 +++++++++++++++-- packageA/pages/chat/components/ai-paging.vue | 21 ++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/packageA/pages/chat/chat.vue b/packageA/pages/chat/chat.vue index 7ac8820..f1157a8 100644 --- a/packageA/pages/chat/chat.vue +++ b/packageA/pages/chat/chat.vue @@ -63,8 +63,9 @@
- - + + 返回 +
@@ -375,6 +376,19 @@ footer-height = 98rpx image width: 36rpx; height: 37rpx; + .back-home-btn + display: flex + align-items: center + justify-content: center + padding: 0 20rpx + height: 60rpx + border-radius: 12rpx + &:active + background: rgba(0, 0, 0, 0.05) + .back-home-text + font-size: 30rpx + color: #333 + font-weight: 500 .chatmain-warpper height: 'calc(100% - %s)' %( header-height + footer-height) diff --git a/packageA/pages/chat/components/ai-paging.vue b/packageA/pages/chat/components/ai-paging.vue index 5a24174..cbe536e 100644 --- a/packageA/pages/chat/components/ai-paging.vue +++ b/packageA/pages/chat/components/ai-paging.vue @@ -227,8 +227,12 @@ placeholder-class="inputplaceholder" class="input" @confirm="sendMessage" + @click="handleInputClick" + @focus="handleInputFocus" :disabled="isTyping" :adjust-position="true" + :focus="inputFocused" + cursor-spacing="20" placeholder="请输入您想找的岗位信息或就政策信息【比如:设计师、10000-12000、广州】【比如:今年喀什地区高校毕业生有什么就业政策】" v-show="!isVoice" /> @@ -439,6 +443,7 @@ const feebackData = ref(null); // 删除功能相关状态 const isSelectMode = ref(false); const selectedMessages = ref([]); +const inputFocused = ref(false); // ref for DOM element const voiceBtn = ref(null); const feeback = ref(null); @@ -1357,6 +1362,22 @@ function closeFile() { showfile.value = false; } +function handleInputClick() { + inputFocused.value = false; + nextTick(() => { + inputFocused.value = true; + }); + console.log('[键盘] 点击输入框,尝试唤起键盘'); +} + +function handleInputFocus() { + console.log('[键盘] 输入框已获得焦点,键盘应已弹出'); + $api.msg('输入框已激活'); + nextTick(() => { + scrollToBottom(); + }); +} + function copyMarkdown(value) { $api.copyText(value); }