hookehuyr

fix

1 <!-- 1 <!--
2 * @Date: 2024-01-16 13:19:23 2 * @Date: 2024-01-16 13:19:23
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-01-25 16:48:03 4 + * @LastEditTime: 2024-01-27 12:31:05
5 * @FilePath: /xysBooking/src/views/bookingDetail.vue 5 * @FilePath: /xysBooking/src/views/bookingDetail.vue
6 * @Description: 预约记录详情 6 * @Description: 预约记录详情
7 --> 7 -->
8 <template> 8 <template>
9 <div class="booking-detail-page"> 9 <div class="booking-detail-page">
10 <qrCode :status="qrCodeStatus" type="detail"></qrCode> 10 <qrCode :status="qrCodeStatus" type="detail"></qrCode>
11 - <div class="detail-wrapper"> 11 + <div v-if="billInfo.pay_id" class="detail-wrapper">
12 <div class="detail-item"> 12 <div class="detail-item">
13 <div>参访时间:</div> 13 <div>参访时间:</div>
14 <div>{{ billInfo?.datetime }}</div> 14 <div>{{ billInfo?.datetime }}</div>
...@@ -106,8 +106,8 @@ const CodeStatus = { ...@@ -106,8 +106,8 @@ const CodeStatus = {
106 } 106 }
107 107
108 const formatDatetime = (data) => { // 格式化日期 108 const formatDatetime = (data) => { // 格式化日期
109 - let begin_time = data.begin_time.slice(0, -3); 109 + let begin_time = data?.begin_time.slice(0, -3);
110 - let end_time = data.end_time.slice(0, -3); 110 + let end_time = data?.end_time.slice(0, -3);
111 let str = begin_time + ' ' + end_time; 111 let str = begin_time + ' ' + end_time;
112 return `${str.split(' ')[0]} ${str.split(' ')[1]}-${str.split(' ')[3]}`; 112 return `${str.split(' ')[0]} ${str.split(' ')[1]}-${str.split(' ')[3]}`;
113 } 113 }
......