From 4b21442721e2b405ba00c4fa6b0ada67982f1fb1 Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Fri, 30 Jun 2023 17:18:32 +0800 Subject: [PATCH] del modal source && vtest 1.1.37 --- src/components/site/order_modal/order_modal.vue | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/components/site/order_modal/order_modal.vue b/src/components/site/order_modal/order_modal.vue index 8377c60..af290dd 100644 --- a/src/components/site/order_modal/order_modal.vue +++ b/src/components/site/order_modal/order_modal.vue @@ -39,7 +39,7 @@ - + 是否联动开灯: @@ -61,7 +61,7 @@ 操作人: - {{ orderInfo.operator || ' ' }} + {{ orderInfo.operator || '-' }} @@ -126,9 +126,13 @@ - 分享给朋友 - 取消占用 + + 分享给朋友 + 取消占用 + + 收款 + 已收款 @@ -151,6 +155,14 @@ export default { let { orderInfo } = this; return orderInfo.type == 'mini_program' || orderInfo.type == 'course_venue' || orderInfo.type == 'fixed_venue' + }, + isOverTime(){ + let { orderInfo } = this; + let endTime = orderInfo?.stadium_order?.end_time || new Date().getTime(); + let nowTimeStamp = new Date().getTime(); + let endTimeStamp = new Date(endTime.toString().replace(/\-/g, '/')).getTime(); + return nowTimeStamp > endTimeStamp; + } }, props: { @@ -487,6 +499,10 @@ export default { border-color: #EA5061; color: #fff; } + &.gray{ + border-color: #D8D8D8; + color: #D8D8D8; + } } } }