From 589f3ec8ec6ac215febdec74653db52a6b43de35 Mon Sep 17 00:00:00 2001 From: ChenQiuYu Date: Thu, 22 May 2025 17:05:12 +0800 Subject: [PATCH] dev --- src/components/charge/Settlement.vue | 34 ++++++++++-- src/components/registration/Edit.vue | 80 ++++++++++++++++------------ src/views/charge/index.vue | 8 +-- src/views/registration/index.vue | 2 +- 4 files changed, 82 insertions(+), 42 deletions(-) diff --git a/src/components/charge/Settlement.vue b/src/components/charge/Settlement.vue index 9dffa4c..ceb7580 100644 --- a/src/components/charge/Settlement.vue +++ b/src/components/charge/Settlement.vue @@ -5,7 +5,7 @@
{ } defineExpose({init}) const changePriceType = (type: any, index: any) => { + if (!props.disabled && type == 1) { + return + } payType.value = type; selectedIndex.value = index } @@ -113,10 +125,13 @@ const completeSettlement = () => { } else { //其他结算 loading.value = true; - post('charge/completeOrder', {id: retailOrder.value.id, payType: payType.value}, {catch_error:true}).then((res: any) => { + post('charge/completeOrder', { + id: retailOrder.value.id, + payType: payType.value + }, {catch_error: true}).then((res: any) => { orderCompleted() loading.value = false - }).catch((e)=>{ + }).catch((e) => { loading.value = false ElMessage.error(e) }) @@ -305,6 +320,8 @@ const btnsList = [ font-size: 16px; color: #333333; font-style: normal; + cursor: pointer; + .img { width: 24px; @@ -316,6 +333,13 @@ const btnsList = [ color: #fff; } } + + .disabled { + cursor: not-allowed; + opacity: 0.6; + background-color: #eee; + color: #999; + } } .pay { @@ -404,4 +428,6 @@ const btnsList = [ padding: 0 24px; align-items: center; } + + \ No newline at end of file diff --git a/src/components/registration/Edit.vue b/src/components/registration/Edit.vue index beebfff..56067ec 100644 --- a/src/components/registration/Edit.vue +++ b/src/components/registration/Edit.vue @@ -116,31 +116,35 @@ - -
{{ getToday().start }}
+ + +
+
+
现在
+
+
+ + +
+ {{ isBtnShow ? '预约' : '挂号' }} +
-
- - - - -
-