Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
xysBooking
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-01-25 11:35:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ffcf6e172793a180d98646319facad806c700568
ffcf6e17
1 parent
38b71a80
fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
components.d.ts
src/components/reserveCard.vue
components.d.ts
View file @
ffcf6e1
...
...
@@ -11,7 +11,6 @@ declare module '@vue/runtime-core' {
ReserveCard
:
typeof
import
(
'./src/components/reserveCard.vue'
)[
'default'
]
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
VanButton
:
typeof
import
(
'vant/es'
)[
'Button'
]
VanCheckbox
:
typeof
import
(
'vant/es'
)[
'Checkbox'
]
VanCheckboxGroup
:
typeof
import
(
'vant/es'
)[
'CheckboxGroup'
]
VanDatePicker
:
typeof
import
(
'vant/es'
)[
'DatePicker'
]
...
...
src/components/reserveCard.vue
View file @
ffcf6e1
<!--
* @Date: 2024-01-24 16:38:13
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-25 11:
17:39
* @LastEditTime: 2024-01-25 11:
33:44
* @FilePath: /xysBooking/src/components/reserveCard.vue
* @Description: 文件描述
-->
...
...
@@ -163,7 +163,7 @@ watch(
() => props.data,
(val) => {
if (val) {
remain_time.value = val.rest_second;
remain_time.value = val.rest_second
> 0 ? val.rest_second : 0
;
}
},
{
...
...
@@ -180,7 +180,7 @@ const delay_pay_show = computed(() => {
let timeId = null;
onMounted(() => {
remain_time.value = props.data.rest_second;
remain_time.value = props.data.rest_second
> 0 ? props.data.rest_second : 0
;
// 进入页面后,开始倒计时
timeId = setInterval(() => {
remain_time.value ? (remain_time.value -= 1) : 0;
...
...
Please
register
or
login
to post a comment