tmp
This commit is contained in:
@@ -133,8 +133,8 @@ Page({
|
||||
paymentStatusText: PAYMENT_STATUS_MAP[payment.status] || payment.status || '未支付',
|
||||
attendantSexText: attendant.sex === 'male' ? '男' : attendant.sex === 'female' ? '女' : '',
|
||||
sexRequirementText: escort.sexRequirement === 'male' ? '要求男陪诊' : escort.sexRequirement === 'female' ? '要求女陪诊' : '不限',
|
||||
// 操作按钮(待确认/已确认状态下可编辑订单信息)
|
||||
showEditBtn: status === 'pending' || status === 'confirmed',
|
||||
// 操作按钮(任何状态下均可编辑订单信息)
|
||||
showEditBtn: true,
|
||||
showConfirmBtn: status === 'pending',
|
||||
showCancelBtn: status === 'pending',
|
||||
showStartBtn: status === 'confirmed',
|
||||
@@ -153,6 +153,17 @@ Page({
|
||||
wx.makePhoneCall({ phoneNumber: phone })
|
||||
},
|
||||
|
||||
// 点击患者信息,进入健康档案详情
|
||||
onProfileTap() {
|
||||
if (!this.data.healthProfileId) {
|
||||
wx.showToast({ title: '该订单未关联健康档案', icon: 'none' })
|
||||
return
|
||||
}
|
||||
wx.navigateTo({
|
||||
url: `/pages/healthprofile/profileInfo?id=${this.data.healthProfileId}`
|
||||
})
|
||||
},
|
||||
|
||||
// 编辑订单
|
||||
onEdit() {
|
||||
wx.navigateTo({
|
||||
|
||||
Reference in New Issue
Block a user