|
|
@@ -1,5 +1,6 @@
|
|
|
<script setup lang="ts">
|
|
|
import { filterDay, timeFormat } from '../utils'
|
|
|
+import { OrderStatus, handleCommonOrderStatusText } from '../utils/order-data'
|
|
|
import { StaticUrl } from '@/config'
|
|
|
|
|
|
definePage({
|
|
|
@@ -45,7 +46,7 @@ async function getData(orderNo: string) {
|
|
|
// const res = await Apis.film.filmOrderDetail({ data: { id } })
|
|
|
|
|
|
orderInfo.value = res.data
|
|
|
- orderInfo.value.codeList = orderInfo.value.orderMovieItems[0].ticketCode.split(',')
|
|
|
+ orderInfo.value.codeList = orderInfo.value.orderMovieItems[0].ticketCode?.split(',')
|
|
|
}
|
|
|
function call() {
|
|
|
uni.makePhoneCall({
|
|
|
@@ -61,13 +62,14 @@ onLoad((options) => {
|
|
|
<template>
|
|
|
<view class="film-order-detail">
|
|
|
<view class="status">
|
|
|
- 支付成功,待出票
|
|
|
+ <!-- 支付成功,待出票 -->
|
|
|
+ {{ handleCommonOrderStatusText(orderInfo) }}
|
|
|
</view>
|
|
|
<view class="status-desc">
|
|
|
如需改签、退款,请直接联系商家
|
|
|
</view>
|
|
|
<!-- 出票状态 -->
|
|
|
- <view class="status-box block">
|
|
|
+ <view v-if="orderInfo.hbOrderStatus === OrderStatus.OrderAccepted" class="status-box block">
|
|
|
<view class="icon-box">
|
|
|
<image class="icon" :src="`${StaticUrl}/film-ing-icon.png`" />
|
|
|
<view class="state">
|
|
|
@@ -187,7 +189,7 @@ onLoad((options) => {
|
|
|
</view>
|
|
|
|
|
|
<view class="time-box">
|
|
|
- {{ filterDay(orderInfo.session) == '今天' ? '今天' : timeFormat(orderInfo.session) }} 英语3D
|
|
|
+ {{ filterDay(timeFormat(orderInfo.session, 'yyyy-MM-dd')) == '今天' ? (`今天${timeFormat(orderInfo.session, 'HH:mm')}`) : timeFormat(orderInfo.session) }} 英语3D
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -216,7 +218,7 @@ onLoad((options) => {
|
|
|
<!-- 座位信息 -->
|
|
|
<view class="seat-info block">
|
|
|
<view class="room-num">
|
|
|
- 5号厅
|
|
|
+ {{ orderInfo.hallName }}
|
|
|
</view>
|
|
|
<!-- <view class="area-price">
|
|
|
普通区¥29.9
|
|
|
@@ -302,7 +304,7 @@ onLoad((options) => {
|
|
|
支付时间
|
|
|
</view>
|
|
|
<view class="value">
|
|
|
- {{ orderInfo.payTime }}
|
|
|
+ {{ orderInfo.payTime || '-' }}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="item">
|