diff --git a/apps/miniprogram/src/pages/pkg-doctor-core/followup/detail/index.scss b/apps/miniprogram/src/pages/pkg-doctor-core/followup/detail/index.scss index 4508267..32a3c90 100644 --- a/apps/miniprogram/src/pages/pkg-doctor-core/followup/detail/index.scss +++ b/apps/miniprogram/src/pages/pkg-doctor-core/followup/detail/index.scss @@ -1,21 +1,6 @@ @import '../../../../styles/variables.scss'; @import '../../../../styles/mixins.scss'; -.followup-detail { - min-height: 100vh; - background: $bg; - padding: 24px; - padding-bottom: 120px; -} - -.section { - background: $card; - border-radius: $r-lg; - padding: 28px; - margin-bottom: 20px; - box-shadow: $shadow-sm; -} - .section-title { @include section-title; } diff --git a/apps/miniprogram/src/pages/pkg-doctor-core/followup/detail/index.tsx b/apps/miniprogram/src/pages/pkg-doctor-core/followup/detail/index.tsx index 1c32c70..758ebb3 100644 --- a/apps/miniprogram/src/pages/pkg-doctor-core/followup/detail/index.tsx +++ b/apps/miniprogram/src/pages/pkg-doctor-core/followup/detail/index.tsx @@ -1,5 +1,5 @@ import { useState, useCallback } from 'react'; -import { View, Text, Textarea, ScrollView, Picker } from '@tarojs/components'; +import { View, Text, Textarea, Picker } from '@tarojs/components'; import Taro, { useRouter } from '@tarojs/taro'; import { usePageData } from '@/hooks/usePageData'; import { @@ -8,6 +8,8 @@ import { type FollowUpTask, type FollowUpRecord, } from '@/services/doctor/followup'; import Loading from '@/components/Loading'; +import PageShell from '@/components/ui/PageShell'; +import ContentCard from '@/components/ui/ContentCard'; import { useElderClass } from '../../../../hooks/useElderClass'; import './index.scss'; @@ -93,13 +95,13 @@ export default function FollowUpDetail() { const formatDate = (d: string) => new Date(d).toLocaleDateString('zh-CN'); if (loading) return ; - if (!task) return 任务加载失败; + if (!task) return 任务加载失败; const canSubmit = task.status === 'in_progress' || task.status === 'pending' || task.status === 'overdue'; return ( - - + + 随访详情 @@ -126,11 +128,11 @@ export default function FollowUpDetail() { {task.content_template} )} - + {/* 历史记录 */} {records.length > 0 && ( - + 历史记录 {records.map((r) => ( @@ -140,12 +142,12 @@ export default function FollowUpDetail() { {r.medical_advice && 医嘱: {r.medical_advice}} ))} - + )} {/* 填写表单 */} {canSubmit && ( - + 记录随访 {(task.status === 'pending' || task.status === 'overdue') && ( @@ -193,8 +195,8 @@ export default function FollowUpDetail() { {submitting ? '提交中...' : '提交记录'} - + )} - + ); } diff --git a/apps/miniprogram/src/pages/pkg-doctor-core/patients/detail/index.scss b/apps/miniprogram/src/pages/pkg-doctor-core/patients/detail/index.scss index ec77d6d..b95ad60 100644 --- a/apps/miniprogram/src/pages/pkg-doctor-core/patients/detail/index.scss +++ b/apps/miniprogram/src/pages/pkg-doctor-core/patients/detail/index.scss @@ -1,21 +1,6 @@ @import '../../../../styles/variables.scss'; @import '../../../../styles/mixins.scss'; -.patient-detail { - min-height: 100vh; - background: $bg; - padding: 24px; - padding-bottom: 120px; -} - -.section { - background: $card; - border-radius: $r-lg; - padding: 28px; - margin-bottom: 20px; - box-shadow: $shadow-sm; -} - .section-title { @include section-title; } diff --git a/apps/miniprogram/src/pages/pkg-doctor-core/patients/detail/index.tsx b/apps/miniprogram/src/pages/pkg-doctor-core/patients/detail/index.tsx index 87c2120..5267aad 100644 --- a/apps/miniprogram/src/pages/pkg-doctor-core/patients/detail/index.tsx +++ b/apps/miniprogram/src/pages/pkg-doctor-core/patients/detail/index.tsx @@ -1,9 +1,11 @@ import { useState, useCallback } from 'react'; -import { View, Text, ScrollView } from '@tarojs/components'; +import { View, Text } from '@tarojs/components'; import Taro, { useRouter } from '@tarojs/taro'; import { usePageData } from '@/hooks/usePageData'; import { getPatient, getHealthSummary, type PatientDetail, type HealthSummary } from '@/services/doctor/patient'; import Loading from '@/components/Loading'; +import PageShell from '@/components/ui/PageShell'; +import ContentCard from '@/components/ui/ContentCard'; import { useElderClass } from '../../../../hooks/useElderClass'; import './index.scss'; @@ -42,12 +44,12 @@ export default function PatientDetail() { }; if (loading) return ; - if (!patient) return 患者信息加载失败; + if (!patient) return 患者信息加载失败; return ( - + {/* 基本信息 */} - + 基本信息 @@ -57,11 +59,11 @@ export default function PatientDetail() { 年龄{calcAge(patient.birth_date)}岁 {patient.blood_type && 血型{patient.blood_type}} - + {/* 医疗信息 */} {(patient.allergy_history || patient.medical_history_summary) && ( - + 医疗信息 {patient.allergy_history && ( @@ -75,12 +77,12 @@ export default function PatientDetail() { {patient.medical_history_summary} )} - + )} {/* 健康摘要 */} {summary && ( - + 健康概览 {summary.latest_vital_signs && ( @@ -116,12 +118,12 @@ export default function PatientDetail() { {summary.pending_follow_ups} 项 )} - + )} {/* 近期化验 */} {summary?.latest_lab_report && ( - + 近期化验 {summary.latest_lab_report.abnormal_count} 项异常 )} - + )} {/* 快捷操作 */} - + 操作 Taro.navigateTo({ url: `/pages/pkg-doctor-clinical/report/index?patientId=${patientId}` })}> @@ -149,7 +151,7 @@ export default function PatientDetail() { 随访记录 - - + + ); }