From 3bde663e43a9944507b2444f2616441b31a4915f Mon Sep 17 00:00:00 2001 From: zzh <1368735060@qq.com> Date: Sat, 7 Nov 2026 15:39:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20H5=20=E6=9F=A5=E4=BB=B7=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E6=B8=90=E5=85=A5=E6=B8=90=E5=87=BA=EF=BC=8C=E5=8A=A9?= =?UTF-8?q?=E6=89=8B=E5=8F=91=E9=80=81=E9=92=AE=E5=AF=B9=E9=BD=90=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E5=9C=86=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- .../NanaAssistant/AiAdvisorShell.vue | 21 +- .../h5/customer-center/assistant/index.vue | 70 ++++--- src/views/h5/customer-center/price/index.vue | 184 +++++++----------- 3 files changed, 136 insertions(+), 139 deletions(-) diff --git a/src/components/NanaAssistant/AiAdvisorShell.vue b/src/components/NanaAssistant/AiAdvisorShell.vue index 0d2fd5a..73dfda9 100644 --- a/src/components/NanaAssistant/AiAdvisorShell.vue +++ b/src/components/NanaAssistant/AiAdvisorShell.vue @@ -239,10 +239,19 @@
- +
@@ -338,35 +338,61 @@ function promptGuestRegister() { } :deep(.ai-composer-send) { - width: 40px; - height: 40px; - border-radius: 12px; - background: var(--app-primary-color); + width: 32px; + height: 32px; + border: none; + border-radius: 999px; + background: #0d0d0d; color: #fff; + box-shadow: none; opacity: 1; + transform: none; + filter: none; - .arco-icon, + .ai-composer-send__mark, svg { - width: 1.15em; - height: 1.15em; + display: block; + width: 18px; + height: 18px; + fill: none; + stroke: currentColor; + stroke-width: 2.25; + stroke-linecap: round; + stroke-linejoin: round; + } + + &.is-empty, + &.is-empty:hover { + background: #ececec; + color: #9a9a9a; + cursor: default; + transform: none; + filter: none; + } + + &:hover:not(:disabled):not(.is-empty) { + background: #2f2f2f; + transform: none; + filter: none; + } + + &:focus-visible { + outline: 2px solid #0d0d0d; + outline-offset: 2px; + } + + &:disabled:not(.is-empty) { + background: #0d0d0d; color: #fff; - fill: currentColor; - } - - &:disabled { - background: #e5e6eb; - color: #c9cdd4; - opacity: 1; + opacity: 0.45; cursor: not-allowed; - - .arco-icon, - svg { - color: #c9cdd4; - } + transform: none; + filter: none; } - &:not(:disabled):active { - filter: brightness(1.05); + &:not(:disabled):not(.is-empty):active { + background: #2f2f2f; + filter: none; } } diff --git a/src/views/h5/customer-center/price/index.vue b/src/views/h5/customer-center/price/index.vue index 820268f..76acbb4 100644 --- a/src/views/h5/customer-center/price/index.vue +++ b/src/views/h5/customer-center/price/index.vue @@ -218,40 +218,20 @@ class="h5-price-results" :aria-busy="queryLoading" > -
-
-

- {{ t('h5.price.resultCount', { n: sortedResults.length }) }} - · - {{ resultsBarTip }} -

-
- -
-
-
- - + +
+
@@ -271,10 +251,12 @@
+
- -
+
+
+
@@ -2034,11 +2037,6 @@ onMounted(() => { margin-top: 12px; } -.h5-ai-panel--in { - animation: h5-soft-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; - animation-delay: 0.18s; -} - .h5-ai-entry { width: 100%; height: 40px; @@ -2467,21 +2465,42 @@ onMounted(() => { } .h5-price-results { + position: relative; margin-top: 10px; } +/* 查价成功:骨架渐出、报价渐入,同时进行 */ +.h5-stage-enter-active, +.h5-stage-leave-active { + transition: opacity 0.42s ease; +} + +.h5-stage-enter-active { + z-index: 1; + transition-timing-function: ease-out; + transition-duration: 0.48s; +} + +.h5-stage-leave-active { + position: absolute; + z-index: 0; + top: 0; + right: 0; + left: 0; + transition-timing-function: ease-in; + transition-duration: 0.32s; + pointer-events: none; +} + +.h5-stage-enter-from, +.h5-stage-leave-to { + opacity: 0; +} + .h5-results-bar { margin-bottom: 8px; } -.h5-results-bar--in { - animation: h5-soft-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; -} - -.h5-empty--in { - animation: h5-soft-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) both; -} - .h5-results-bar__row { display: flex; align-items: center; @@ -2548,8 +2567,6 @@ onMounted(() => { border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); - animation: h5-soft-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both; - animation-delay: calc(var(--i, 0) * 55ms); } .h5-quote-skel__head { @@ -2646,11 +2663,6 @@ onMounted(() => { text-align: left; transition: transform 0.2s ease, box-shadow 0.2s ease; - &--reveal { - animation: h5-quote-reveal 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; - animation-delay: calc(var(--i, 0) * 48ms); - } - &--ai { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--app-primary-color) 45%, transparent), @@ -2816,7 +2828,6 @@ onMounted(() => { white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.1; - will-change: filter, opacity, transform; small { font-size: 12px; @@ -2830,56 +2841,6 @@ onMounted(() => { } } -/* 价格:模糊 → 清晰(后于卡片半拍) */ -.h5-quote--reveal .h5-quote__price { - animation: h5-price-figure 0.52s cubic-bezier(0.22, 1, 0.36, 1) both; - animation-delay: calc(var(--i, 0) * 48ms + 90ms); -} - -.h5-quote--reveal .ref-label { - animation: h5-soft-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) both; - animation-delay: calc(var(--i, 0) * 48ms + 140ms); -} - -@keyframes h5-soft-in { - from { - opacity: 0; - transform: translateY(6px); - } - to { - opacity: 1; - transform: translateY(0); - } -} - -@keyframes h5-quote-reveal { - from { - opacity: 0; - transform: translateY(10px); - } - to { - opacity: 1; - transform: translateY(0); - } -} - -@keyframes h5-price-figure { - from { - opacity: 0.25; - filter: blur(6px); - transform: translateY(3px) scale(0.99); - } - 55% { - opacity: 1; - filter: blur(1.2px); - } - to { - opacity: 1; - filter: blur(0); - transform: translateY(0) scale(1); - } -} - @keyframes h5-skel-shimmer { 0% { background-position: 100% 0; @@ -2905,22 +2866,15 @@ onMounted(() => { } @media (prefers-reduced-motion: reduce) { - .h5-results-bar--in, - .h5-empty--in, - .h5-ai-panel--in, - .h5-quote-skel, - .h5-quote--reveal, - .h5-quote--reveal .h5-quote__price, - .h5-quote--reveal .ref-label, + .h5-stage-enter-active, + .h5-stage-leave-active { + transition: none !important; + } + .quote-collapsed__pulse, .h5-quote-skel__bone { animation: none !important; } - - .h5-quote--reveal .h5-quote__price { - filter: none; - opacity: 1; - } } .h5-quote__actions {