style(home): 预约卡片补充医院并允许长内容换行
首行集中日期、就诊人、服务与状态,医院单独成行;服务、医院与姓名超长时 换行展示而不是截断,详情箭头独立包裹。同步更新首页 UI 测试断言与缺省文案。
This commit is contained in:
+2
-2
@@ -212,8 +212,7 @@ Page({
|
||||
return sorted.slice(0, PENDING_PREVIEW_LIMIT).map((item) => this.formatPendingRecord(item))
|
||||
},
|
||||
|
||||
// 预约摘要只给日期、服务、就诊人与状态;时间与医院由详情页承接。
|
||||
// timeText 仍保留在数据里,供卡片 aria-label 朗读完整预约时间。
|
||||
// 首页摘要保留关键就诊安排,缺少信息时给出可读提示。
|
||||
formatPendingRecord(item) {
|
||||
const date = parseDate(item.schedule?.date)
|
||||
const whenText = date
|
||||
@@ -227,6 +226,7 @@ Page({
|
||||
timeText: item.schedule?.startTime || '时间待定',
|
||||
statusText: status.text,
|
||||
statusTone: status.tone,
|
||||
hospitalName: item.hospital?.name || '医院待定',
|
||||
patientName: item.patient?.name || '待补充',
|
||||
serviceName: item.escort?.serviceName || '陪诊服务'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user