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 @@ - +