From f511c3b8d8a409bdeb2b6db86bde714277f2b878 Mon Sep 17 00:00:00 2001 From: zzh <1368735060@qq.com> Date: Sat, 14 Nov 2026 22:31:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=A2=E6=88=B7=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=93=81=E7=89=8C=E5=B8=83=E5=B1=80=E4=B8=8E=E5=AE=98=E7=BD=91?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=BD=93=E9=AA=8C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 收紧客户登录左区品牌层次,补查单/看价入口,并顺带优化验证码、注册与官网跑道表现。 Co-authored-by: Cursor --- src/App.vue | 45 +- src/auto-imports.d.ts | 1 - src/components/LoginCaptchaField/index.vue | 226 +++++++-- src/locale/marketing/en-US.ts | 2 + src/locale/marketing/zh-CN.ts | 2 + src/views/h5/admin-center/login/index.vue | 15 +- .../h5/components/H5LoginPortalSwitch.vue | 41 +- src/views/h5/customer-center/login/index.vue | 17 +- src/views/login/components/LoginHero.vue | 443 ++++++++++++++---- .../login/components/LoginPortalSwitch.vue | 4 +- .../login/components/pwd-login/index.vue | 8 +- src/views/login/index.vue | 43 +- src/views/login/locale/en-US.ts | 5 +- src/views/login/locale/zh-CN.ts | 5 +- src/views/register/index.vue | 236 +++++++--- src/views/register/locale/en-US.ts | 2 + src/views/register/locale/zh-CN.ts | 2 + src/views/site/SiteAdvisorShell.vue | 13 +- src/views/site/SiteDotGrid.vue | 25 +- src/views/site/SiteFeaturedRoutes.vue | 56 ++- src/views/site/SiteRunway.vue | 280 +++-------- src/views/site/lib/site-urls.ts | 20 +- src/views/site/styles/ai-advisor.css | 178 ++++--- 23 files changed, 1058 insertions(+), 611 deletions(-) diff --git a/src/App.vue b/src/App.vue index 8dc7ce6..c6a96a0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -50,17 +50,15 @@ const isPageIris = computed(() => portalTransition.value === 'oms-iris'); /** - * 圆半径用百分比时,约 71% 就盖住视口四角。 - * 收到 80% 为止,整段时间都在铺画面,不再扩到 150% 后空转。 - * 曲线前段就有位移、后段轻轻收住,避免猛地撑开或开头发呆。 + * 圆半径约 71% 盖住四角;收到 78% 留余量。 + * 时长略收、缓动更匀,减少「点了发呆再猛撑开」的感觉。 */ - const IRIS_MS = 920; - const IRIS_EASE = 'cubic-bezier(0.33, 0.5, 0.22, 1)'; - /** 新页图片解码最多等这么久,超时也开动画,避免点击发僵 */ - const IRIS_READY_CAP_MS = 160; + const IRIS_MS = 720; + const IRIS_EASE = 'cubic-bezier(0.22, 0.82, 0.28, 1)'; + /** 新页最多等一帧解码窗口;超时也开裁剪,优先跟手 */ + const IRIS_READY_CAP_MS = 64; const IRIS_AT = '50% 50%'; - /** 约 71% 盖住四角,收到 80% 留一点余量 */ - const IRIS_END = '80%'; + const IRIS_END = '78%'; function clearPortalTransition() { portalTransition.value = ''; @@ -161,6 +159,7 @@ async function playIrisEnter(node: HTMLElement, done: () => void) { prepareSheet(node, 1); node.style.willChange = 'clip-path'; + node.style.transform = 'translateZ(0)'; node.style.pointerEvents = 'none'; node.style.clipPath = 'none'; node.style.setProperty('-webkit-clip-path', 'none'); @@ -193,22 +192,24 @@ const at = IRIS_AT; const end = IRIS_END; + const startClip = `circle(0% at ${at})`; + const endClip = `circle(${end} at ${at})`; // 先收到 0 再抬到上层,避免动画首帧还没写上时整页闪一下 - node.style.clipPath = `circle(0% at ${at})`; - node.style.setProperty('-webkit-clip-path', `circle(0% at ${at})`); + node.style.clipPath = startClip; + node.style.setProperty('-webkit-clip-path', startClip); node.style.zIndex = '3'; + // 强制一次合成同步,减少首帧卡顿 + void node.offsetWidth; try { - anim = node.animate( - [ - { clipPath: `circle(0% at ${at})` }, - { clipPath: `circle(${end} at ${at})` }, - ], - { - duration: IRIS_MS, - easing: IRIS_EASE, - fill: 'forwards', - }, - ); + const frames = [ + { clipPath: startClip, webkitClipPath: startClip }, + { clipPath: endClip, webkitClipPath: endClip }, + ] as Keyframe[]; + anim = node.animate(frames, { + duration: IRIS_MS, + easing: IRIS_EASE, + fill: 'forwards', + }); } catch { finish(); return; diff --git a/src/auto-imports.d.ts b/src/auto-imports.d.ts index 232eaba..5c69ef1 100644 --- a/src/auto-imports.d.ts +++ b/src/auto-imports.d.ts @@ -588,7 +588,6 @@ declare module 'vue' { readonly useLastChanged: UnwrapRef readonly useLink: UnwrapRef readonly useLocalStorage: UnwrapRef - readonly useLoginCaptchaGate: UnwrapRef readonly useMagicKeys: UnwrapRef readonly useManualRefHistory: UnwrapRef readonly useMediaControls: UnwrapRef diff --git a/src/components/LoginCaptchaField/index.vue b/src/components/LoginCaptchaField/index.vue index 15cffc3..880dca1 100644 --- a/src/components/LoginCaptchaField/index.vue +++ b/src/components/LoginCaptchaField/index.vue @@ -1,13 +1,20 @@ diff --git a/src/views/h5/customer-center/login/index.vue b/src/views/h5/customer-center/login/index.vue index edf0611..c12407f 100644 --- a/src/views/h5/customer-center/login/index.vue +++ b/src/views/h5/customer-center/login/index.vue @@ -547,7 +547,8 @@ onMounted(async () => { width: 100%; max-width: 420px; margin: 0 auto; - padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px)); + /* 底留白避开固定门户切换钮 */ + padding: 24px 16px calc(64px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; display: flex; flex-direction: column; @@ -558,13 +559,13 @@ onMounted(async () => { background: #ffffff; border: 1px solid #e8e8ed; border-radius: 16px; - padding: 28px 20px 22px; + padding: 32px 20px 28px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.05); } .h5-login-card__brand { text-align: center; - margin: 0 0 24px; + margin: 0 0 28px; } .h5-login-card__brand-row { @@ -682,7 +683,7 @@ onMounted(async () => { .h5-login-row.is-focused .h5-login-float, .h5-login-row.is-filled .h5-login-float, .h5-login-row:has(input:-webkit-autofill) .h5-login-float { - top: 9px; + top: 6px; font-size: 11px; font-weight: 500; color: #6e6e73; @@ -700,8 +701,8 @@ onMounted(async () => { .h5-login-form :deep(.arco-input-wrapper), .h5-login-form :deep(.arco-input-password) { width: 100%; - min-height: 52px; - padding: 16px 12px 6px 14px; + min-height: 56px; + padding: 22px 12px 8px 14px; border: none !important; border-radius: 0; background: transparent !important; @@ -799,7 +800,7 @@ onMounted(async () => { } .h5-login-submit { - margin-top: 20px; + margin-top: 24px; height: 44px !important; border-radius: 980px !important; font-size: 15px; @@ -813,7 +814,7 @@ onMounted(async () => { } .h5-login-alt { - margin-top: 20px; + margin-top: 22px; padding-top: 16px; border-top: 1px solid #f0f0f2; display: flex; diff --git a/src/views/login/components/LoginHero.vue b/src/views/login/components/LoginHero.vue index 13f0f82..0f34468 100644 --- a/src/views/login/components/LoginHero.vue +++ b/src/views/login/components/LoginHero.vue @@ -1,27 +1,74 @@