Files
hms/apps/miniprogram/src/pages/pkg-profile/diagnoses/index.scss
iven bef2ea7169
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
feat(miniprogram): 适老化修复 — Phase 2e
M6: 创建 utils/date.ts 统一日期工具函数(formatDate/formatDateTime/toRelativeDate 等)
M8: 28 个 SCSS 文件 font-size 20px → 22px 全量适老化
M7: request.ts 增加 403 权限不足/5xx 服务器错误/网络超时异常统一拦截
2026-05-05 00:22:49 +08:00

111 lines
1.6 KiB
SCSS

@import '../../../styles/variables.scss';
@mixin tag($bg, $color) {
display: inline-block;
padding: 4px 12px;
border-radius: 8px;
font-size: 22px;
font-weight: 500;
background: $bg;
color: $color;
}
.diagnoses-page {
min-height: 100vh;
background: $bg;
padding: 32px 24px;
padding-bottom: 40px;
}
.page-title {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 30px;
font-weight: bold;
color: $tx;
margin-bottom: 20px;
display: block;
padding-left: 4px;
}
.diagnosis-list {
display: flex;
flex-direction: column;
gap: 16px;
}
.diagnosis-card {
background: $card;
border-radius: $r;
padding: 28px;
box-shadow: $shadow-sm;
}
.diagnosis-card__header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.diagnosis-card__name {
font-size: 28px;
font-weight: bold;
color: $tx;
flex: 1;
margin-right: 12px;
}
.diagnosis-card__status {
@include tag($bd-l, $tx3);
&.active {
@include tag($acc-l, $acc);
}
&.resolved {
@include tag($acc-l, $acc);
}
&.chronic {
@include tag($wrn-l, $wrn);
}
}
.diagnosis-card__meta {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 8px;
}
.diagnosis-card__type {
@include tag($pri-l, $pri-d);
&.secondary {
@include tag($bd-l, $tx2);
}
&.comorbid {
@include tag($wrn-l, $wrn);
}
}
.diagnosis-card__code {
font-size: 22px;
color: $tx3;
font-variant-numeric: tabular-nums;
}
.diagnosis-card__date {
font-size: 22px;
color: $tx2;
display: block;
}
.diagnosis-card__notes {
font-size: 22px;
color: $tx2;
display: block;
margin-top: 8px;
}