修复订单显示bug

This commit is contained in:
2026-06-10 20:20:47 +08:00
parent de62513987
commit 9fbc6f8cd1
45 changed files with 7514 additions and 2025 deletions

View File

@@ -12,7 +12,7 @@
<view class="timeline-box">
<view v-for="item in order.timeline" :key="item.id" class="timeline-item">
<text class="timeline-title">{{ item.title }}</text>
<text class="timeline-meta">{{ item.time }}</text>
<text class="timeline-meta">{{ formatDateTime(item.time) }}</text>
<text class="timeline-desc">{{ item.description }}</text>
</view>
</view>
@@ -22,7 +22,7 @@
<text class="section-title">服务信息</text>
<text class="row-text">服务名称:{{ order.serviceName }}</text>
<text class="row-text">服务类型:{{ order.serviceType }}</text>
<text class="row-text">预约时间:{{ order.appointmentTime }}</text>
<text class="row-text">预约时间:{{ formatDateTime(order.appointmentTime) }}</text>
<text class="row-text">预计时长:{{ order.duration }} 分钟</text>
<text class="row-text">服务价格:¥{{ order.price }}</text>
<text class="row-text">预计收入:¥{{ order.staffIncome }}</text>
@@ -71,7 +71,7 @@
<text class="section-title">异常记录</text>
<text class="row-text">异常类型:{{ order.abnormalReport!.type }}</text>
<text class="row-text">异常说明:{{ order.abnormalReport!.description }}</text>
<text class="row-text">发生时间:{{ order.abnormalReport!.occurredAt }}</text>
<text class="row-text">发生时间:{{ formatDateTime(order.abnormalReport!.occurredAt) }}</text>
</view>
<view class="action-card">
@@ -98,6 +98,7 @@ import {
import { getNextStepText, getPrimaryActionText } from '@/utils/deliveryCareUi.uts'
import { requireDeliveryAuth } from '@/utils/deliveryAuth.uts'
import { getDeliveryRouteParam } from '@/utils/deliveryRoute.uts'
import { formatDateTime } from '@/utils/utils.uts'
const orderId = ref('')
const order = ref<DeliveryOrderType | null>(null)
@@ -112,6 +113,7 @@ async function loadData() {
return
}
order.value = await getServiceOrderDetail(orderId.value)
console.warn('[orders/detail] order detail:', JSON.stringify(order.value))
}
function joinTags(tags: Array<string>): string {
@@ -316,4 +318,4 @@ onLoad((options) => {
font-size: 26rpx;
color: #ffffff;
}
</style>
</style>