feat(miniprogram): 添加健康记录和诊断记录查看页面
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

- 新建 service: health-record.ts(listHealthRecords + listDiagnoses)
- 新建页面: health-records/index(体检记录列表,分页+下拉刷新)
- 新建页面: diagnoses/index(诊断记录列表,类型/状态标签)
- 路由注册到 pkg-profile 分包
- "我的"页菜单添加健康记录、诊断记录入口
This commit is contained in:
iven
2026-04-30 22:49:44 +08:00
parent f05ca00c75
commit 813843e8cc
7 changed files with 443 additions and 13 deletions

View File

@@ -0,0 +1,110 @@
@import '../../../styles/variables.scss';
@mixin tag($bg, $color) {
display: inline-block;
padding: 4px 12px;
border-radius: 8px;
font-size: 20px;
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($suc-l, $suc);
}
&.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;
}