From c0356a79151ec0e2f97abc8bf61190c1802042be Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Fri, 29 May 2026 20:41:11 +0800 Subject: [PATCH] refactor: migrate calendar styles and event logic - remove external SCSS style file for quick booking calendar - replace existing styles with Tailwind utility classes inline - add missing defineEmits import and swap global uni event bus for imported @/utils/events.ts emitter - adjust minor styling details like padding and border radius --- .../components/QuickBookingCalender/index.vue | 38 +++++++------ .../QuickBookingCalender/styles/index.scss | 57 ------------------- 2 files changed, 20 insertions(+), 75 deletions(-) delete mode 100644 src/pages/home/components/QuickBookingCalender/styles/index.scss diff --git a/src/pages/home/components/QuickBookingCalender/index.vue b/src/pages/home/components/QuickBookingCalender/index.vue index 453c387..7ac7a5c 100644 --- a/src/pages/home/components/QuickBookingCalender/index.vue +++ b/src/pages/home/components/QuickBookingCalender/index.vue @@ -1,23 +1,31 @@ - - diff --git a/src/pages/home/components/QuickBookingCalender/styles/index.scss b/src/pages/home/components/QuickBookingCalender/styles/index.scss deleted file mode 100644 index 32bc4fa..0000000 --- a/src/pages/home/components/QuickBookingCalender/styles/index.scss +++ /dev/null @@ -1,57 +0,0 @@ -.date-picker { - background: rgba(140, 236, 255, 0.24); - padding: 8rpx 0; - border-radius: 16rpx; - margin: 12px 0 6px; - min-width: 325px; - box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.1); /* 阴影 */ -} - -.date-list { - display: flex; -} - -.date-item, -.calendar-btn { - flex: 1; /* 等宽 */ - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - padding: 12rpx 0; - border-radius: 16rpx; -} - -.label { - font-size: 24rpx; - color: #333-grey; -} -.date { - font-size: 28rpx; - font-weight: bold; - color: #555; -} - -.date-item.active { - background-color: #0ccd58; -} -.date-item.active .label, -.date-item.active .date { - color: #fff; -} - -/* 日历按钮 */ -.calendar-btn { - background: #fff; - border-radius: 0 16rpx 16rpx 0; - margin: -8rpx 0; -} -.calendar-img { - width: 16px; - height: 16px; -} -.calendar-text { - font-size: 22rpx; - color: #666; - margin-top: 4rpx; -}