chenyc
2025-08-26 773abd742524f74f87b03a654dc919592ba95740
gx343
1个文件已修改
20 ■■■■ 已修改文件
src/views/paiban/index.vue 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/paiban/index.vue
@@ -124,12 +124,10 @@
        const index= selectDate.value.findIndex(el=>{return el.y===year&&el.m===month&&el.d===date})
        if (index>0){
            console.log(day)
            // 定义颜色映射
            let color = ''
            if (selectDate.value[index].透析单状态){
                color = 'red'
                day.type='start'
            } else {
                color = 'blue'
                day.type='end'
            }
            day.text=selectDate.value[index].type
            if (selectDate.value[index].timeSlot===0){
@@ -141,7 +139,6 @@
            else {
                day.bottomInfo='晚上'
            }
            day.className = `custom-day ${color}-text` // 添加自定义类名
        }
        return day
    }
@@ -247,17 +244,4 @@
    line-height: 36px;
}
/* 自定义文字颜色 */
.red-text {
    color: #ee0a24 !important; /* Vant 红色 */
}
.blue-text { /* 也可以换成蓝色 #0066cc */
    color: #06c !important; /* 医疗蓝 */
}
/* 可选:让颜色更突出一点 */
.custom-day {
    font-weight: 500;
}
</style>