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

@@ -6,10 +6,13 @@ import { usePointsStore } from '../../stores/points';
import './index.scss';
const MENU_ITEMS = [
{ label: '积分商城', char: '商', path: '/pages/mall/index' },
{ label: '我的订单', char: '单', path: '/pages/pkg-mall/orders/index' },
{ label: '积分明细', char: '明', path: '/pages/pkg-mall/detail/index' },
{ label: '就诊人管理', char: '人', path: '/pages/pkg-profile/family/index' },
{ label: '我的报告', char: '报', path: '/pages/pkg-profile/reports/index' },
{ label: '健康记录', char: '健', path: '/pages/pkg-profile/health-records/index' },
{ label: '诊断记录', char: '诊', path: '/pages/pkg-profile/diagnoses/index' },
{ label: '我的随访', char: '随', path: '/pages/pkg-profile/followups/index' },
{ label: '用药提醒', char: '药', path: '/pages/pkg-profile/medication/index' },
{ label: '透析记录', char: '透', path: '/pages/pkg-profile/dialysis-records/index' },
@@ -53,18 +56,18 @@ export default function Profile() {
<Text className='profile-name'>{user?.display_name || '未登录'}</Text>
<Text className='profile-phone'>{user?.phone || ''}</Text>
{/* 积分余额 */}
<View
className='profile-stats'
onClick={() => Taro.navigateTo({ url: '/pages/pkg-mall/detail/index' })}
>
<View className='stat-item'>
<Text className='stat-value'>{(pointsAccount?.balance ?? 0).toLocaleString()}</Text>
{/* 积分 + 连续打卡横排 */}
<View className='profile-stats'>
<View
className='stat-card'
onClick={() => Taro.navigateTo({ url: '/pages/pkg-mall/detail/index' })}
>
<Text className='stat-value stat-value-pri'>{(pointsAccount?.balance ?? 0).toLocaleString()}</Text>
<Text className='stat-label'></Text>
</View>
<View className='stat-divider' />
<View className='stat-item'>
<Text className='stat-value'>{checkinInfo?.consecutive_days ?? 0}</Text>
<View className='stat-card'>
<Text className='stat-value stat-value-acc'>{checkinInfo?.consecutive_days ?? 0}</Text>
<Text className='stat-label'>()</Text>
</View>
</View>