From c115a8486c6107de95f2001412207310a9cd9e00 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 26 八月 2025 20:45:43 +0800
Subject: [PATCH] 更新日历选择样式
---
src/views/record/index.vue | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/views/record/index.vue b/src/views/record/index.vue
index 0a752db..29fd25f 100644
--- a/src/views/record/index.vue
+++ b/src/views/record/index.vue
@@ -193,7 +193,11 @@
const date = day.date.getDate()
const index= selectDate.value.findIndex(el=>{return el.y===year&&el.m===month&&el.d===date})
if (index>0){
- day.type='selected'
+ if (selectDate.value[index].透析单状态){
+ day.type='end'
+ } else {
+ day.type='start'
+ }
if (selectDate.value[index].timeSlot===0){
day.bottomInfo='上午'
}
@@ -290,4 +294,9 @@
height: 36px;
line-height: 36px;
}
+/* stylelint-disable selector-pseudo-class-no-unknown */
+:deep(.van-calendar__day--end) {
+ border-radius: 0 var(--van-border-radius-md) var(--van-border-radius-md) 0;
+ background: #4696f9;
+}
</style>
\ No newline at end of file
--
Gitblit v1.8.0