From f10f14ad1e100246c6bd19d30f275204147c8981 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 28 十月 2025 22:09:20 +0800
Subject: [PATCH] gx
---
src/views/paiban/index.vue | 37 ++++++++++++++++++++++++-------------
1 files changed, 24 insertions(+), 13 deletions(-)
diff --git a/src/views/paiban/index.vue b/src/views/paiban/index.vue
index 9a8ef92..a92c58d 100644
--- a/src/views/paiban/index.vue
+++ b/src/views/paiban/index.vue
@@ -6,9 +6,8 @@
left-arrow
@click="fanhui"
/>
- <div>
+ <div style="padding: 10px;">
<van-calendar
- color="#769AFF"
:min-date="minDate"
@month-show="monthShow"
:poppable="false"
@@ -124,9 +123,10 @@
const index= selectDate.value.findIndex(el=>{return el.y===year&&el.m===month&&el.d===date})
if (index>0){
console.log(day)
- day.type='start'
if (selectDate.value[index].透析单状态){
day.type='end'
+ } else {
+ day.type='start'
}
day.text=selectDate.value[index].type
if (selectDate.value[index].timeSlot===0){
@@ -138,7 +138,9 @@
else {
day.bottomInfo='晚上'
}
+ console.log(day,'有排班' )
}
+
return day
}
onMounted(()=>{
@@ -162,7 +164,7 @@
}
.listdiv {
- margin-top: 20px;
+ // margin-top: 20px;
.listrow {
margin-top: 10px;
@@ -232,14 +234,23 @@
}
}
-.fanhui {
- // padding-top: 20px;
- width: 100%;
- background: #4696f9;
- text-align: center;
- border-radius: 5px;
- color: #fff;
- height: 36px;
- line-height: 36px;
+/* eslint-disable selector-class-pattern */
+
+/* eslint-disable selector-pseudo-element-no-unknown */
+
+/* eslint-disable color-named */
+/* stylelint-disable selector-pseudo-class-no-unknown */
+
+:deep(.van-calendar__day--end) {
+ background: #46a8f9;
+ border-radius: 10px;
+ font-size: 12px;
}
+
+:deep(.van-calendar__day--start) {
+ background: #f98546;
+ border-radius: 10px;
+ font-size: 12px;
+}
+
</style>
\ No newline at end of file
--
Gitblit v1.8.0