|
|
@@ -73,6 +73,15 @@ function handleGoPay() {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+function handleRebook() {
|
|
|
+ router.push({
|
|
|
+ name: 'attractions-detail',
|
|
|
+ params: {
|
|
|
+ productNo: String(orderInfo.value?.scenicOrder?.productNo),
|
|
|
+ },
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
const isCancel = computed(() => statusValue.value === 0)
|
|
|
|
|
|
/** 取消订单 / 申请退款 */
|
|
|
@@ -153,7 +162,7 @@ function orderDetailBack() {
|
|
|
<view :style="{ height: `${(Number(statusBarHeight) || 44) + MenuButtonHeight + 30}px` }" />
|
|
|
<view v-if="orderInfo" class="px-24rpx">
|
|
|
<view class="rounded-16rpx bg-#FFF p-24rpx">
|
|
|
- <OrderDetailStatus v-if="!hasVoucher" :status="statusValue" @pay="handleGoPay" />
|
|
|
+ <OrderDetailStatus v-if="!hasVoucher" :status="statusValue" @pay="handleGoPay" @rebook="handleRebook" />
|
|
|
<view class="flex items-center justify-between gap-50rpx text-32rpx font-bold">
|
|
|
<view>{{ orderInfo.scenicOrder?.productName }}</view>
|
|
|
<view class="w-100rpx text-24rpx text-#9ED605" @click="router.push({ name: 'attractions-detail', params: { productNo: String(orderInfo.scenicOrder?.productNo) } })">
|
|
|
@@ -305,7 +314,7 @@ function orderDetailBack() {
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if="orderInfo.cancelTime" class="mt-20rpx rounded-16rpx bg-#FFF p-24rpx">
|
|
|
+ <view v-if="orderInfo.cancelRecords?.cancelId" class="mt-20rpx rounded-16rpx bg-#FFF p-24rpx">
|
|
|
<view class="text-28rpx font-bold">
|
|
|
退款申请
|
|
|
</view>
|
|
|
@@ -314,7 +323,7 @@ function orderDetailBack() {
|
|
|
申请时间
|
|
|
</view>
|
|
|
<view class="text-28rpx font-bold">
|
|
|
- {{ orderInfo.cancelTime }}
|
|
|
+ {{ orderInfo.cancelRecords?.createTime }}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="mt-28rpx flex items-center justify-between">
|
|
|
@@ -322,7 +331,7 @@ function orderDetailBack() {
|
|
|
申请说明
|
|
|
</view>
|
|
|
<view class="text-28rpx font-bold">
|
|
|
- {{ orderInfo.cancelReason || '--' }}
|
|
|
+ {{ orderInfo.cancelRecords?.cancelReason || '--' }}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="mt-28rpx flex items-center justify-between">
|
|
|
@@ -330,13 +339,13 @@ function orderDetailBack() {
|
|
|
处理状态
|
|
|
</view>
|
|
|
<view v-if="orderInfo.cancelRecords" class="text-28rpx font-bold">
|
|
|
- <text v-if="orderInfo.cancelRecords[0]?.cancelState === 0">
|
|
|
+ <text v-if="orderInfo.cancelRecords?.cancelState === 0">
|
|
|
申请中
|
|
|
</text>
|
|
|
- <text v-if="orderInfo.cancelRecords[0]?.cancelState === 1">
|
|
|
+ <text v-if="orderInfo.cancelRecords?.cancelState === 1">
|
|
|
通过
|
|
|
</text>
|
|
|
- <text v-if="orderInfo.cancelRecords[0]?.cancelState === 2">
|
|
|
+ <text v-if="orderInfo.cancelRecords?.cancelState === 2">
|
|
|
拒绝
|
|
|
</text>
|
|
|
</view>
|