f07e7b76c199576cd0cd93eaa93e0cb88db9dce5..7b2f328b9eed45e57afa037e1eea5c06fe636fc2
2025-08-26 chenyc
点击二维码弹出大二维码
7b2f32 对比 | 目录
2025-08-26 chenyc
更改日历样式
b97c11 对比 | 目录
2个文件已修改
34 ■■■■■ 已修改文件
src/views/home/index.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/paiban/index.vue 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/index.vue
@@ -6,6 +6,7 @@
                <div class="userCode">透析号:{{patientInfo.patientInfo.patientHemoCode}} </div>
                <div class="userQRcode">
                    <img
                        @click="showerwima = true"
                        style=" width: 60px;height: 60px;margin-left: 8%; margin-top: 20px;"
                        referrerpolicy="no-referrer"
                        :src="patientInfo.patientInfo.patientQrcodeUrl"
@@ -124,6 +125,16 @@
            <van-tabbar-item name="xuanjiao" icon="smile-o">宣教</van-tabbar-item>
            <van-tabbar-item name="my" icon="manager">我的</van-tabbar-item>
        </van-tabbar>
        <van-popup v-model:show="showerwima">
            <div class="imgcla">
                <img
                    preview="1"
                    style=" width: 350px;height: 350px;"
                    referrerpolicy="no-referrer"
                    :src="patientInfo.patientInfo.patientQrcodeUrl"
                />
            </div>
        </van-popup>
    </div>
</template>
  <script lang="ts" setup>
@@ -140,6 +151,7 @@
    const router=useRouter()
    const userInfo = userInfoStore()
    const active=ref('home')
    const showerwima=ref(false)
    const tabChang=(index:any)=>{
        if (index==='home'){
            router.push('/')
src/views/paiban/index.vue
@@ -124,9 +124,12 @@
        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'
            // 定义颜色映射
            let color = ''
            if (selectDate.value[index].透析单状态){
                day.type='end'
                color = 'red'
            } else {
                color = 'blue'
            }
            day.text=selectDate.value[index].type
            if (selectDate.value[index].timeSlot===0){
@@ -138,6 +141,7 @@
            else {
                day.bottomInfo='晚上'
            }
            day.className = `custom-day ${color}-text` // 添加自定义类名
        }
        return day
    }
@@ -242,4 +246,18 @@
    height: 36px;
    line-height: 36px;
}
/* 自定义文字颜色 */
.red-text {
    color: #ee0a24 !important; /* Vant 红色 */
}
.blue-text { /* 也可以换成蓝色 #0066cc */
    color: #06c !important; /* 医疗蓝 */
}
/* 可选:让颜色更突出一点 */
.custom-day {
    font-weight: 500;
}
</style>