From dde3cce5628bf365feb207a295e2c0960994f27a Mon Sep 17 00:00:00 2001 From: xcbyy <2578898740@qq.com> Date: Tue, 20 Oct 2026 14:00:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E4=B8=8B=E5=8D=95=E9=A1=B5=E8=83=8C?= =?UTF-8?q?=E6=99=AF/=E5=8D=A1=E7=89=87/=E6=96=87=E5=AD=97=E8=B7=9F?= =?UTF-8?q?=E9=9A=8F=E5=85=A8=E5=B1=80=E4=B8=BB=E9=A2=98=EF=BC=88=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=9A=96=E8=89=B2=E4=B8=BB=E9=A2=98=E4=B8=8B=E4=BB=8D?= =?UTF-8?q?=E6=98=AF=E6=B7=B1=E8=89=B2=E5=BA=95=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - create.vue 原先把整套深色配色写死,仅局部有 .theme-warm 覆盖 → 暖色主题下页面底色/卡片仍是深色 - 统一改用全局主题变量:容器 var(--bg-primary)、卡片 var(--bg-surface)、次级面 var(--bg-surface-elevated)、文字 --text-primary/secondary/muted、描边 --border-subtle、品牌 --color-brand(-gradient)、底部支付栏 --bg-surface-glass - 替换 15 处深色时代的中性半透明白(rgba(255,255,255,0.03~0.1))为对应主题变量,暖色下不再白上白 - 主按钮渐变改用 var(--color-brand-gradient),暖色下自动变为橙色渐变 - theme-consistency.spec.ts 增加下单页断言(99 套件/682 用例全绿) --- pwuniapp/pages/order/create.vue | 110 ++++++++++++------------- server/tests/theme-consistency.spec.ts | 15 ++++ 2 files changed, 70 insertions(+), 55 deletions(-) diff --git a/pwuniapp/pages/order/create.vue b/pwuniapp/pages/order/create.vue index 7c1158e..b66bd70 100644 --- a/pwuniapp/pages/order/create.vue +++ b/pwuniapp/pages/order/create.vue @@ -475,7 +475,7 @@ const selectBalancePay = () => { content: `当前钱包余额为 ¥${userBalance.value},实付需 ¥${finalTotal.value}。您可以前往「我的」-「我的钱包」充值后再使用余额支付,或切换为微信直接支付。`, confirmText: '去充值', cancelText: '微信支付', - confirmColor: '#6366F1', + confirmColor: 'var(--color-brand)', success: (res) => { if (res.confirm) { uni.switchTab({ url: '/pages/user/index' }); @@ -611,16 +611,16 @@ const handlePay = async () => {