From 8d2786c8fe3c0ff49c4491abae0e199f1fe3cce2 Mon Sep 17 00:00:00 2001 From: zzh <1368735060@qq.com> Date: Mon, 16 Nov 2026 08:56:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=98=E7=BD=91=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E4=BE=A7=E6=A0=8F=E4=B8=8E=E8=AF=A2=E4=BB=B7=E5=8D=A1=E5=AF=B9?= =?UTF-8?q?=E9=BD=90=E5=B0=8F=E8=BF=AA=EF=BC=8C=E5=B9=B6=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=20H5=20=E5=8A=A9=E6=89=8B=E6=B5=AE=E5=B1=82=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- src/components/EdiAssistant/ai-advisor.css | 37 +- .../h5/customer-center/assistant/index.vue | 151 +++----- .../components/H5GuestAuthCta.vue | 8 +- src/views/site/SiteAdvisorShell.vue | 13 +- src/views/site/styles/ai-advisor.css | 329 +++++++++++------- src/views/site/styles/icons.css | 1 + 6 files changed, 288 insertions(+), 251 deletions(-) diff --git a/src/components/EdiAssistant/ai-advisor.css b/src/components/EdiAssistant/ai-advisor.css index 1519ece..876a90f 100644 --- a/src/components/EdiAssistant/ai-advisor.css +++ b/src/components/EdiAssistant/ai-advisor.css @@ -146,11 +146,30 @@ backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08); - justify-content: flex-end; + justify-content: center; + align-items: center; } .ai-advisor-shell--float .ai-app-bar__actions--float-only { + display: inline-flex; + align-items: center; + justify-content: center; margin-left: 0; + gap: 2px; +} + +/* --chat 的上下不对称 padding 会盖掉 float 顶栏,单独拉回居中 */ +.ai-advisor-shell--float.ai-advisor-shell--chat .ai-app-bar--float { + min-height: 0; + height: auto; + padding: 4px; + gap: 0; +} + +.ai-advisor-shell--float .ai-float-icon-btn .arco-icon, +.ai-advisor-shell--float .ai-float-icon-btn svg { + display: block; + margin: 0; } .ai-advisor-shell--float .ai-app-bar--float:active { @@ -2399,23 +2418,27 @@ } .ai-composer-footer--chat { - flex-direction: column; + flex-direction: row; align-items: center; - justify-content: center; - gap: 6px; + justify-content: space-between; + gap: 10px; padding: 8px 4px 2px; } .ai-composer-footer--chat .ai-composer-hint { - order: 2; - text-align: center; + flex: 1; + min-width: 0; + order: 0; + text-align: left; font-size: 0.68rem; opacity: 0.58; line-height: 1.35; } .ai-composer-footer--chat .ai-composer-human-btn { - order: 1; + order: 0; + flex-shrink: 0; + margin-left: auto; gap: 6px; height: 28px; padding: 0 10px; diff --git a/src/views/h5/customer-center/assistant/index.vue b/src/views/h5/customer-center/assistant/index.vue index e27c36a..74c4f59 100644 --- a/src/views/h5/customer-center/assistant/index.vue +++ b/src/views/h5/customer-center/assistant/index.vue @@ -28,7 +28,14 @@
- + +
@@ -85,11 +92,15 @@ function promptGuestLogin() { function promptGuestRegister() { startH5WeChatRegister({ redirect: route.fullPath || '/h5/assistant' }); } + +/** 浮窗关闭钮 → 回订单 Tab(H5 有底栏,不销毁壳) */ +function onShellClose() { + router.replace('/h5/orders'); +} diff --git a/src/views/h5/customer-center/components/H5GuestAuthCta.vue b/src/views/h5/customer-center/components/H5GuestAuthCta.vue index 9ce02d8..6d8cd6e 100644 --- a/src/views/h5/customer-center/components/H5GuestAuthCta.vue +++ b/src/views/h5/customer-center/components/H5GuestAuthCta.vue @@ -68,7 +68,7 @@ const emit = defineEmits<{ } .h5-guest-auth__btn { - flex: 1; + flex: 1 1 0; min-width: 0; height: 40px; padding: 0 14px; @@ -76,6 +76,7 @@ const emit = defineEmits<{ font-size: 14px; font-weight: 600; line-height: 1; + white-space: nowrap; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.12s ease; @@ -96,6 +97,11 @@ const emit = defineEmits<{ background: #07c160; box-shadow: 0 6px 14px rgba(7, 193, 96, 0.22); + > span { + flex: 0 0 auto; + white-space: nowrap; + } + &:active { background: #06ad56; } diff --git a/src/views/site/SiteAdvisorShell.vue b/src/views/site/SiteAdvisorShell.vue index a72484f..6e9fa84 100644 --- a/src/views/site/SiteAdvisorShell.vue +++ b/src/views/site/SiteAdvisorShell.vue @@ -186,11 +186,11 @@