Showing
2 changed files
with
3 additions
and
4 deletions
| ... | @@ -11,7 +11,6 @@ declare module '@vue/runtime-core' { | ... | @@ -11,7 +11,6 @@ declare module '@vue/runtime-core' { |
| 11 | ReserveCard: typeof import('./src/components/reserveCard.vue')['default'] | 11 | ReserveCard: typeof import('./src/components/reserveCard.vue')['default'] |
| 12 | RouterLink: typeof import('vue-router')['RouterLink'] | 12 | RouterLink: typeof import('vue-router')['RouterLink'] |
| 13 | RouterView: typeof import('vue-router')['RouterView'] | 13 | RouterView: typeof import('vue-router')['RouterView'] |
| 14 | - VanButton: typeof import('vant/es')['Button'] | ||
| 15 | VanCheckbox: typeof import('vant/es')['Checkbox'] | 14 | VanCheckbox: typeof import('vant/es')['Checkbox'] |
| 16 | VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup'] | 15 | VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup'] |
| 17 | VanDatePicker: typeof import('vant/es')['DatePicker'] | 16 | VanDatePicker: typeof import('vant/es')['DatePicker'] | ... | ... |
| 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-25 11:17:39 | 4 | + * @LastEditTime: 2024-01-25 11:33:44 |
| 5 | * @FilePath: /xysBooking/src/components/reserveCard.vue | 5 | * @FilePath: /xysBooking/src/components/reserveCard.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -163,7 +163,7 @@ watch( | ... | @@ -163,7 +163,7 @@ watch( |
| 163 | () => props.data, | 163 | () => props.data, |
| 164 | (val) => { | 164 | (val) => { |
| 165 | if (val) { | 165 | if (val) { |
| 166 | - remain_time.value = val.rest_second; | 166 | + remain_time.value = val.rest_second > 0 ? val.rest_second : 0; |
| 167 | } | 167 | } |
| 168 | }, | 168 | }, |
| 169 | { | 169 | { |
| ... | @@ -180,7 +180,7 @@ const delay_pay_show = computed(() => { | ... | @@ -180,7 +180,7 @@ const delay_pay_show = computed(() => { |
| 180 | let timeId = null; | 180 | let timeId = null; |
| 181 | 181 | ||
| 182 | onMounted(() => { | 182 | onMounted(() => { |
| 183 | - remain_time.value = props.data.rest_second; | 183 | + remain_time.value = props.data.rest_second > 0 ? props.data.rest_second : 0; |
| 184 | // 进入页面后,开始倒计时 | 184 | // 进入页面后,开始倒计时 |
| 185 | timeId = setInterval(() => { | 185 | timeId = setInterval(() => { |
| 186 | remain_time.value ? (remain_time.value -= 1) : 0; | 186 | remain_time.value ? (remain_time.value -= 1) : 0; | ... | ... |
-
Please register or login to post a comment