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-27 18:13:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c39c65af36098b25c127c4659f9e5bf80c611a3c
c39c65af
1 parent
68d61fb6
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
18 deletions
src/components/reserveCard.vue
src/components/reserveCard.vue
View file @
c39c65a
<!--
* @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;
}
},
{
...
...
Please
register
or
login
to post a comment