fix(mp): T40 UI 审计修复 — 28 项设计系统合规 + MCP forceSetAuth bridge

T40 小程序 UI 审计全部 60 页面,发现 28 项问题(HIGH×3 MEDIUM×10 LOW×15),
全部修复并通过静态验证(0 硬编码 border-radius/font-size 残留)。

主要修复:
- border-radius: 12 个文件硬编码值 → $r-xs/$r-lg/$r-pill 设计 token
- touch target: 5 个交互元素添加 min-height: 48px(action-inbox/mall/family/medication)
- elder-mode 页面接入 useElderClass(),预览字号改用 var(--tk-font-body)
- consultation 页面增加加载失败 toast 提示
- app.tsx 新增 forceSetAuth bridge 解决 MCP auth 注入兼容问题
- FAB 按钮和开关控件尺寸规范化

审计结果:PASS 41 / PASS_WITH_ISSUES 19 → 修复后全量 PASS
This commit is contained in:
iven
2026-05-14 09:38:02 +08:00
parent 9e0f421c14
commit a8d7183d7c
18 changed files with 295 additions and 690 deletions

View File

@@ -89,8 +89,8 @@
}
.toggle {
width: 80px;
height: 44px;
width: 84px;
height: 48px;
border-radius: $r-pill;
padding: 4px;
position: relative;
@@ -106,8 +106,8 @@
}
.toggle-dot {
width: 36px;
height: 36px;
width: 40px;
height: 40px;
border-radius: 50%;
background: $card;
position: absolute;
@@ -126,7 +126,9 @@
.delete-btn {
font-size: var(--tk-font-h2);
color: $dan;
padding: 4px 12px;
padding: 14px 16px;
min-height: 48px;
@include flex-center;
}
.form-card {