hookehuyr

fix

1 <!-- 1 <!--
2 * @Date: 2024-01-24 16:38:13 2 * @Date: 2024-01-24 16:38:13
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-01-27 18:07:02 4 + * @LastEditTime: 2024-01-27 18:11:17
5 * @FilePath: /xysBooking/src/components/reserveCard.vue 5 * @FilePath: /xysBooking/src/components/reserveCard.vue
6 * @Description: 预约记录卡组件 6 * @Description: 预约记录卡组件
7 --> 7 -->
...@@ -132,29 +132,14 @@ function formatTime(seconds) { ...@@ -132,29 +132,14 @@ function formatTime(seconds) {
132 132
133 let timeId = null; 133 let timeId = null;
134 const remain_time = ref(0); // 剩余时间秒数 134 const remain_time = ref(0); // 剩余时间秒数
135 -const reserve_info = ref({ 135 +const reserve_info = ref({});
136 - pay_id: '',
137 - booking_time: '',
138 - status: '',
139 - total_qty: '',
140 - total_amt: '',
141 - order_time: '',
142 - rest_second: 0,
143 -});
144 136
145 watch( 137 watch(
146 () => props.data, 138 () => props.data,
147 (val) => { 139 (val) => {
148 if (val) { 140 if (val) {
149 remain_time.value = val.rest_second > 0 ? val.rest_second : 0; 141 remain_time.value = val.rest_second > 0 ? val.rest_second : 0;
150 - reserve_info.value.pay_id = val.pay_id; 142 + reserve_info.value = val;
151 - reserve_info.value.booking_time = val.booking_time;
152 - reserve_info.value.rest_second = val.rest_second;
153 - reserve_info.value.status = val.status;
154 - reserve_info.value.person_name = val.person_name;
155 - reserve_info.value.total_qty = val.total_qty;
156 - reserve_info.value.total_amt = val.total_amt;
157 - reserve_info.value.order_time = val.order_time;
158 } 143 }
159 }, 144 },
160 { 145 {
......