refactor(mp): 迁移个人中心 12 个页面 — 统一组件库

线下活动、健康档案、报告列表、随访列表、透析记录、
透析处方、诊断列表、用药列表、家庭成员、添加家庭成员、
设置、知情同意共 12 个页面迁移:
- 最外层容器 → PageShell
- SCSS 删除 min-height/background 通用样式
This commit is contained in:
iven
2026-05-16 01:34:05 +08:00
parent 466b6567d1
commit c6bffd4019
24 changed files with 50 additions and 82 deletions

View File

@@ -1,12 +1,7 @@
@import '../../../styles/variables.scss';
@import '../../../styles/mixins.scss';
.dialysis-prescriptions-page {
min-height: 100vh;
background: $bg;
padding: 32px 24px;
padding-bottom: 40px;
}
// PageShell 已接管min-height, background, padding
.page-title {
@include section-title;

View File

@@ -8,6 +8,7 @@ import type { DialysisPrescription } from '@/services/dialysis';
import EmptyState from '@/components/EmptyState';
import Loading from '@/components/Loading';
import { useElderClass } from '../../../hooks/useElderClass';
import PageShell from '@/components/ui/PageShell';
import './index.scss';
const STATUS_MAP: Record<string, { label: string; cls: string }> = {
@@ -57,7 +58,7 @@ export default function DialysisPrescriptionList() {
const statusInfo = (s: string) => STATUS_MAP[s] || { label: s, cls: '' };
return (
<View className={`dialysis-prescriptions-page ${modeClass}`}>
<PageShell className={modeClass}>
<Text className='page-title'></Text>
<View className='prescription-list'>
@@ -96,6 +97,6 @@ export default function DialysisPrescriptionList() {
)}
{loading && <Loading />}
</View>
</PageShell>
);
}