feat(miniprogram): 小程序设备数据集成打通 — Phase 3
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

- 首页设备入口简化为直接跳转按钮(去除硬编码 never 状态)
- 体征录入页增加「从设备同步」入口,设备数据自动回填表单
- 设备同步页支持 returnTo 参数,完成后返回录入页
- 医护工作台增加告警中心固定导航入口(带数字角标)
This commit is contained in:
iven
2026-04-29 06:36:12 +08:00
parent cac61637ce
commit 202c6dd0d2
7 changed files with 615 additions and 18 deletions

View File

@@ -174,9 +174,30 @@
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 28px;
font-weight: 700;
}
&__icon-wrap {
position: relative;
display: inline-flex;
margin-bottom: 8px;
}
&__badge {
position: absolute;
top: -6px;
right: -12px;
min-width: 32px;
height: 32px;
line-height: 32px;
text-align: center;
background: $dan;
color: #fff;
font-size: 18px;
font-weight: 700;
border-radius: $r-pill;
padding: 0 6px;
}
&__label {
font-size: 24px;
color: $tx2;

View File

@@ -30,7 +30,7 @@ const QUICK_ACTIONS = [
{ label: '化验审核', initial: '审', route: '/pages/doctor/report/index' },
{ label: '患者查询', initial: '查', route: '/pages/doctor/patients/index' },
{ label: '随访记录', initial: '随', route: '/pages/doctor/followup/index' },
{ label: '排班查看', initial: '', route: '/pages/doctor/patients/index' },
{ label: '告警中心', initial: '', route: '/pages/doctor/alerts/index' },
];
export default function DoctorHome() {
@@ -143,7 +143,12 @@ export default function DoctorHome() {
className='quick-action'
onClick={() => Taro.navigateTo({ url: action.route })}
>
<Text className='quick-action__initial'>{action.initial}</Text>
<View className='quick-action__icon-wrap'>
<Text className='quick-action__initial'>{action.initial}</Text>
{action.label === '告警中心' && alertCount > 0 && (
<Text className='quick-action__badge'>{alertCount > 99 ? '99+' : alertCount}</Text>
)}
</View>
<Text className='quick-action__label'>{action.label}</Text>
</View>
))}