hookehuyr

fix

<!--
* @Date: 2024-01-24 16:38:13
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-27 18:07:02
* @LastEditTime: 2024-01-27 18:11:17
* @FilePath: /xysBooking/src/components/reserveCard.vue
* @Description: 预约记录卡组件
-->
......@@ -132,29 +132,14 @@ function formatTime(seconds) {
let timeId = null;
const remain_time = ref(0); // 剩余时间秒数
const reserve_info = ref({
pay_id: '',
booking_time: '',
status: '',
total_qty: '',
total_amt: '',
order_time: '',
rest_second: 0,
});
const reserve_info = ref({});
watch(
() => props.data,
(val) => {
if (val) {
remain_time.value = val.rest_second > 0 ? val.rest_second : 0;
reserve_info.value.pay_id = val.pay_id;
reserve_info.value.booking_time = val.booking_time;
reserve_info.value.rest_second = val.rest_second;
reserve_info.value.status = val.status;
reserve_info.value.person_name = val.person_name;
reserve_info.value.total_qty = val.total_qty;
reserve_info.value.total_amt = val.total_amt;
reserve_info.value.order_time = val.order_time;
reserve_info.value = val;
}
},
{
......