Files
hms/apps/miniprogram-uniapp/src/styles/elder-mode.scss
iven 2c567bd772 fix(mp): T40 UI 审查全量修复 + 设计体系一致性优化
Phase 0 基础设施:
- statusTag.ts: getStatusInlineStyle() 移除内联 borderRadius/padding/fontSize,仅返回 {background, color}
- 新增 SEVERITY_COLORS + getSeverityStyle() + getSeverityLabel() 统一告警严重程度样式
- variables.scss: 新增 9 个语义颜色别名 ($success/$danger/$warning/$info 等)
- mixins.scss: 新增 status-inline mixin 统一状态标签样式
- 7 个消费者页面添加 @include status-inline CSS 补偿

Phase 1 HIGH 修复 (4 页面):
- P46 随访管理: 移除 getTypeStyle() 硬编码 fontSize,替换文字 Loading 为组件
- P45 咨询详情医护: 添加 Loading/ErrorState 三态模板 + error ref
- P02 健康数据: 添加 loading ref + Loading 组件 + 错误 toast 提示
- P48 告警中心: 替换本地 SEVERITY_COLORS/SEVERITY_LABELS 为 statusTag.ts 导出

Phase 2 全局一致性:
- 2.1 触控补全: 17 页面为可点击元素添加 min-height: $touch-min
- 2.2 字号替换: 19 文件 31 处硬编码 px → Design Token CSS 变量
- 2.3 颜色替换: 18 文件 ~50 处硬编码十六进制 → SCSS 语义变量
- 2.4 elder-mode.scss: 新增 9 个选择器到触控放大清单

Phase 3 LOW 修复:
- 3.1 统一 Loading: 21 页面旧式文字加载 → <Loading> 组件
- 3.2 useElderClass: 8 页面补全长者模式 class 绑定
- 3.3 零散修复: 按钮 44px→48px,诊断记录添加 scroll-view 无限加载

同时新增 UniApp (Vue 3 + Vite) 小程序完整代码库 (146 文件)
2026-05-15 11:22:51 +08:00

143 lines
2.2 KiB
SCSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 关怀模式 CSS 覆写(仅保留结构性调整)
// 字号 / 颜色由 tokens.scss 的 .elder-mode 块自动级联处理
// 此文件仅保留无法通过 CSS 变量表达的布局覆写
.elder-mode {
line-height: var(--tk-line-height);
// ─── 全局触控放大 ───
.vital-card,
.checkin-card,
.reminder-item,
.menu-item,
.session-card,
.consult-card,
.notify-card,
.msg-segment-tab,
.vital-tab,
.period-btn,
.device-card,
.article-entry,
.task-card,
.alert-card,
.event-card,
.type-tab,
.status-tab,
.alert-badge,
.vital-item,
.action-item,
.report-card,
.tab {
min-height: var(--tk-touch-min);
}
.action-btn,
.save-btn,
.consultation-create-btn,
.guest-login-btn {
height: var(--tk-btn-primary-h);
}
// ─── 体征网格2 列 → 1 列(解决溢出核心改动)───
.vitals-grid {
grid-template-columns: 1fr;
}
// ─── 间距放大(增加呼吸空间)───
.vitals-grid {
gap: 14px;
}
.checkin-card {
padding: 28px;
}
.reminder-card {
padding: 24px;
}
.home-page,
.guest-page,
.health-page,
.messages-page,
.consultation-body {
padding: 28px 32px 120px;
}
.profile-page {
padding: 28px 32px 120px;
}
.menu-item {
padding: 18px 22px;
}
.session-list,
.msg-list {
gap: 12px;
}
.session-card,
.consult-card,
.notify-card {
padding: 20px;
}
.vital-tabs,
.period-group {
gap: 10px;
}
// ─── 组件布局调整 ───
// EmptyState
.empty-state-action {
padding: 20px 56px;
}
// ErrorState
.error-state-retry {
padding: 20px 56px;
}
// Loading
.loading-spinner {
width: 56px;
height: 56px;
}
// StepIndicator
.step-dot {
width: 56px;
height: 56px;
}
.step-line {
height: 4px;
top: 28px;
}
// ─── 登录页布局调整 ───
.login-page {
padding: 80px 48px 60px;
}
.login-brand {
margin-bottom: 56px;
}
.login-logo {
width: 112px;
height: 112px;
}
.guest-login-btn {
height: 64px;
}
// ─── 积分商城空状态 ───
.mall-empty-state {
padding: 100px 40px;
}
}