hookehuyr

fix

......@@ -14,13 +14,11 @@ declare module '@vue/runtime-core' {
VanButton: typeof import('vant/es')['Button']
VanCheckbox: typeof import('vant/es')['Checkbox']
VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup']
VanCol: typeof import('vant/es')['Col']
VanDatePicker: typeof import('vant/es')['DatePicker']
VanIcon: typeof import('vant/es')['Icon']
VanList: typeof import('vant/es')['List']
VanPicker: typeof import('vant/es')['Picker']
VanPopup: typeof import('vant/es')['Popup']
VanRow: typeof import('vant/es')['Row']
VanSwipe: typeof import('vant/es')['Swipe']
VanSwipeItem: typeof import('vant/es')['SwipeItem']
VanToast: typeof import('vant/es')['Toast']
......
<!--
* @Date: 2024-01-24 16:38:13
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-24 17:17:11
* @LastEditTime: 2024-01-24 17:57:11
* @FilePath: /xysBooking/src/components/reserveCard.vue
* @Description: 文件描述
-->
......@@ -157,10 +157,22 @@ const pay_show = computed(() => {
return flag;
});
watch(
() => props.data,
(val) => {
if (val) {
remain_time.value = val.rest_second;
}
},
{
deep: true,
immediate: true,
}
);
// 支付超时显示
const delay_pay_show = computed(() => {
// return props.data.status === CodeStatus.APPLY && !remain_time.value;
return props.data.status === CodeStatus.SUCCESS && !remain_time.value;
return props.data.status === CodeStatus.APPLY && !remain_time.value;
});
let timeId = null;
......@@ -239,19 +251,5 @@ const payOrder = () => {
}
}
.no-qrcode {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
img {
margin-top: 1rem;
margin-bottom: 1rem;
width: 10rem;
}
.no-qrcode-title {
color: #A67939;
font-size: 1.05rem;
}
}
</style>
......
<!--
* @Date: 2024-01-16 11:37:10
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-24 16:49:34
* @LastEditTime: 2024-01-24 17:52:56
* @FilePath: /xysBooking/src/views/bookingList.vue
* @Description: 文件描述
-->
......@@ -106,6 +106,20 @@ const onLoad = async () => {
<style lang="less" scoped>
.booking-list-page {
padding: 1rem;
.no-qrcode {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
img {
margin-top: 1rem;
margin-bottom: 1rem;
width: 10rem;
}
.no-qrcode-title {
color: #A67939;
font-size: 1.05rem;
}
}
}
</style>
......