清理无效页面与前端发布风险

Co-Authored-By: Kimi-K3.1-Pro noreply@moonshot.cn
This commit is contained in:
lik
2026-10-24 19:07:02 +08:00
committed by trae-solo-agent
co-authored by Kimi-K3.1-Pro noreply@moonshot.cn
parent 1181d598b4
commit df96cb3b07
43 changed files with 144 additions and 1878 deletions
+14 -12
View File
@@ -39,11 +39,11 @@ Page({
showCancelPopup: false,
cancelReason: '',
cancelReasons: [
'临时有事,无法前往',
'病情好转,无需陪诊',
'医院停诊/改期',
'陪诊师无法到达',
'其他原因'
{ id: 'schedule', text: '临时有事,无法前往' },
{ id: 'recovered', text: '病情好转,无需陪诊' },
{ id: 'hospital', text: '医院停诊/改期' },
{ id: 'escort', text: '陪诊师无法到达' },
{ id: 'other', text: '其他原因' }
]
},
@@ -259,10 +259,10 @@ Page({
// 不靠一串 && 条件去猜哪条分隔线该出现(避免留下孤立的分隔线)
buildPatientMeta(patient) {
const list = []
if (patient.sexText) list.push(patient.sexText)
if (patient.age) list.push(`${patient.age}岁`)
if (patient.height) list.push(`身高 ${patient.height}cm`)
if (patient.weight) list.push(`体重 ${patient.weight}kg`)
if (patient.sexText) list.push({ id: 'sex', text: patient.sexText })
if (patient.age) list.push({ id: 'age', text: `${patient.age}岁` })
if (patient.height) list.push({ id: 'height', text: `身高 ${patient.height}cm` })
if (patient.weight) list.push({ id: 'weight', text: `体重 ${patient.weight}kg` })
return list
},
@@ -270,9 +270,11 @@ Page({
// 省份不进元信息行,由 hospitalProvince 单独提到卡内右上角
buildHospitalMeta(hospital) {
const list = []
if (hospital.department) list.push(hospital.department)
if (hospital.doctor) list.push(hospital.doctor)
if (hospital.medicalRecordNo) list.push(`病历号 ${hospital.medicalRecordNo}`)
if (hospital.department) list.push({ id: 'department', text: hospital.department })
if (hospital.doctor) list.push({ id: 'doctor', text: hospital.doctor })
if (hospital.medicalRecordNo) {
list.push({ id: 'medicalRecordNo', text: `病历号 ${hospital.medicalRecordNo}` })
}
return list
},