From 975cdb20cbe005217970f409de8eb83510360955 Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Wed, 1 Jul 2026 11:17:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E8=AF=AF=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JY-Salon-Front/src/components/BaseModal.vue | 52 +++++++++++++++++-- JY-Salon-Front/src/styles/base.css | 41 +++++++++++++++ .../src/views/AppointmentFormView.vue | 10 +++- JY-Salon-Front/src/views/CustomersView.vue | 5 +- JY-Salon-Front/src/views/EmployeesView.vue | 7 ++- JY-Salon-Front/src/views/ProfileView.vue | 27 +++++++++- 6 files changed, 132 insertions(+), 10 deletions(-) diff --git a/JY-Salon-Front/src/components/BaseModal.vue b/JY-Salon-Front/src/components/BaseModal.vue index c450c6eb..9b3f15d9 100644 --- a/JY-Salon-Front/src/components/BaseModal.vue +++ b/JY-Salon-Front/src/components/BaseModal.vue @@ -1,46 +1,84 @@ diff --git a/JY-Salon-Front/src/styles/base.css b/JY-Salon-Front/src/styles/base.css index fbd0c82d..4133cf22 100644 --- a/JY-Salon-Front/src/styles/base.css +++ b/JY-Salon-Front/src/styles/base.css @@ -516,6 +516,47 @@ a { background: var(--card-bg); } +.modal-confirm { + position: absolute; + inset: 0; + z-index: 2; + display: grid; + place-items: center; + padding: 20px; + background: rgba(38, 35, 31, 0.28); +} + +.modal-confirm__panel { + width: min(100%, 340px); + padding: 18px; + border-radius: 16px; + background: var(--card-bg); + box-shadow: 0 18px 46px rgba(38, 35, 31, 0.18); +} + +.modal-confirm__panel h3, +.modal-confirm__panel p { + margin: 0; +} + +.modal-confirm__panel h3 { + color: var(--ink); + font-size: 17px; +} + +.modal-confirm__panel p { + margin-top: 8px; + color: var(--muted); + line-height: 1.6; +} + +.modal-confirm__actions { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 10px; + margin-top: 16px; +} + .toast-host { position: fixed; top: calc(16px + env(safe-area-inset-top)); diff --git a/JY-Salon-Front/src/views/AppointmentFormView.vue b/JY-Salon-Front/src/views/AppointmentFormView.vue index 56b4890d..615aca76 100644 --- a/JY-Salon-Front/src/views/AppointmentFormView.vue +++ b/JY-Salon-Front/src/views/AppointmentFormView.vue @@ -31,7 +31,7 @@ - +
@@ -143,6 +143,14 @@ const timeSelectTip = ref('请先选择美甲师并填写时长') const conflictTip = ref('') const conflictLevel = ref<'free' | 'danger'>('free') const loading = ref(false) +const manualProductChanged = computed(() => { + return Boolean( + form.manualProductTitle + || form.manualProductPrice + || form.manualProductTags + || form.manualProductDescription + ) +}) const selectedProductTitle = computed(() => { if (selectedProduct.value) { diff --git a/JY-Salon-Front/src/views/CustomersView.vue b/JY-Salon-Front/src/views/CustomersView.vue index f5533e79..e85d396c 100644 --- a/JY-Salon-Front/src/views/CustomersView.vue +++ b/JY-Salon-Front/src/views/CustomersView.vue @@ -21,7 +21,7 @@ - +