fix(mp): T40 UI 设计系统合规审计修复 — 60 页面全覆盖

- 新增 $white 语义变量 + --tk-font-display Token
- 44 处 #fff → $white,2 处 background: #fff → $card
- 14 处 border-radius 硬编码统一为 $r-xs/$r-lg/$r
- 3 处 TSX inline 颜色提取为 SCSS 类(exchange/orders/action-inbox)
- ErrorBoundary 重构:6 个 inline style → SCSS 类 + Design Token
- 2 处离调色板颜色修正(#0284C7→$tx2, #94A3B8→$tx3)
- 2 处静默 catch 块添加状态清理(article/health)
- 趋势页补 Loading/EmptyState;咨询页 GuestGuard 统一
- 4 处 #FFFFFF → $white(mixins/index/exchange/variables)
This commit is contained in:
iven
2026-05-13 23:26:00 +08:00
parent 02082ccc61
commit 93c77c5857
49 changed files with 317 additions and 143 deletions

View File

@@ -35,7 +35,7 @@
.status-tag {
display: inline-block;
padding: 4px 12px;
border-radius: 8px;
border-radius: $r-xs;
font-size: var(--tk-font-body);
font-weight: 500;
background: $bd-l;

View File

@@ -35,7 +35,7 @@
.status-tag {
display: inline-block;
padding: 4px 12px;
border-radius: 8px;
border-radius: $r-xs;
font-size: var(--tk-font-body);
font-weight: 500;
background: $bd-l;

View File

@@ -81,7 +81,7 @@
width: 26px;
height: 26px;
border-radius: 13px;
background: #fff;
background: $card;
position: absolute;
top: 2px;
left: 2px;

View File

@@ -96,7 +96,7 @@
.submit-text {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: var(--tk-font-num);
color: #fff;
color: $white;
font-weight: bold;
letter-spacing: 2px;
}

View File

@@ -75,7 +75,7 @@
}
.family-current-tag {
@include tag($pri, #fff);
@include tag($pri, $white);
font-size: var(--tk-font-body-sm);
padding: 2px 10px;
}
@@ -124,7 +124,7 @@
.family-add-text {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: var(--tk-font-num);
color: #fff;
color: $white;
font-weight: bold;
letter-spacing: 2px;
}

View File

@@ -8,6 +8,16 @@
padding-bottom: 160px;
}
.medication-loading {
padding: 40px 0;
text-align: center;
}
.medication-loading-text {
color: $tx3;
font-size: var(--tk-font-h1);
}
.page-title {
@include section-title;
padding-left: 4px;
@@ -99,7 +109,7 @@
width: 36px;
height: 36px;
border-radius: 50%;
background: #fff;
background: $card;
position: absolute;
top: 4px;
transition: left 0.3s;
@@ -217,7 +227,7 @@
.form-confirm-text {
font-size: var(--tk-font-body-lg);
color: #fff;
color: $white;
font-weight: bold;
}
@@ -235,7 +245,7 @@
.add-text {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: var(--tk-font-num);
color: #fff;
color: $white;
font-weight: bold;
letter-spacing: 2px;
}

View File

@@ -100,8 +100,8 @@ export default function MedicationReminder() {
return (
<View className={`medication-page ${modeClass}`}>
<Text className='page-title'></Text>
<View style={{ padding: '40px 0', textAlign: 'center' }}>
<Text style={{ color: '#94A3B8', fontSize: '28px' }}>...</Text>
<View className='medication-loading'>
<Text className='medication-loading-text'>...</Text>
</View>
</View>
);