This commit is contained in:
lik
2026-09-03 13:29:39 +08:00
parent 16ba1f654a
commit e7b27888e3
17 changed files with 565 additions and 265 deletions
+13 -2
View File
@@ -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({
+1 -17
View File
@@ -24,20 +24,8 @@
use-cache="{{false}}"
dial="{{true}}"
bind:call="callPhone"
bindtap="onProfileTap"
/>
<view class="divider"></view>
<view class="info-row" wx:if="{{order.patient.weight}}">
<text class="info-label">体重</text>
<text class="info-value">{{order.patient.weight}}kg</text>
</view>
<view class="info-row" wx:if="{{order.patient.height}}">
<text class="info-label">身高</text>
<text class="info-value">{{order.patient.height}}cm</text>
</view>
<view class="info-row" wx:if="{{order.patient.idnumber}}">
<text class="info-label">身份证号</text>
<text class="info-value">{{order.patient.idnumber}}</text>
</view>
</view>
</view>
@@ -133,10 +121,6 @@
<text class="info-label">服务费用</text>
<text class="info-value fee-value">¥{{order.payment.totalFee || 0}}</text>
</view>
<view class="info-row" wx:if="{{order.payment.paidFee}}">
<text class="info-label">已支付</text>
<text class="info-value">¥{{order.payment.paidFee}}</text>
</view>
<view class="info-row">
<text class="info-label">支付状态</text>
<text class="info-value">{{paymentStatusText}}</text>
+30 -15
View File
@@ -89,17 +89,30 @@ page {
}
.section-title {
font-size: 32rpx;
font-weight: 700;
position: relative;
font-size: 30rpx;
font-weight: 600;
color: #1a1a1a;
margin-bottom: 16rpx;
margin-left: 8rpx;
margin-bottom: 24rpx;
margin-left: 20rpx;
letter-spacing: 1rpx;
}
.section-title::before {
content: '';
position: absolute;
left: -20rpx;
top: 50%;
transform: translateY(-50%);
width: 8rpx;
height: 28rpx;
border-radius: 4rpx;
background: linear-gradient(180deg, #2dd36f, #17c3a5);
}
.info-card {
background: #ffffff;
border-radius: 24rpx;
border-radius: 8rpx;
padding: 28rpx;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
}
@@ -115,14 +128,14 @@ page {
}
.info-label {
font-size: 24rpx;
font-size: 28rpx;
color: #a0a3bd;
width: 140rpx;
flex-shrink: 0;
}
.info-value {
font-size: 26rpx;
font-size: 28rpx;
color: #3a3d5c;
flex: 1;
}
@@ -150,12 +163,12 @@ page {
}
.patient-age {
font-size: 24rpx;
font-size: 26rpx;
color: #a0a3bd;
}
.patient-phone {
font-size: 24rpx;
font-size: 26rpx;
color: #a0a3bd;
}
@@ -208,7 +221,7 @@ page {
}
.attendant-phone {
font-size: 24rpx;
font-size: 26rpx;
color: #a0a3bd;
}
@@ -222,7 +235,9 @@ page {
/* === 备注信息 === */
.note-block {
margin-bottom: 20rpx;
display: flex;
align-items: baseline;
margin-bottom: 16rpx;
}
.note-block:last-child {
@@ -230,18 +245,18 @@ page {
}
.note-label {
display: block;
font-size: 24rpx;
font-size: 26rpx;
color: #a0a3bd;
margin-bottom: 8rpx;
width: 140rpx;
flex-shrink: 0;
font-weight: 500;
}
.note-content {
display: block;
font-size: 26rpx;
color: #3a3d5c;
line-height: 1.6;
flex: 1;
}
/* === 底部操作 === */