up
chenyc
2022-09-27 d75764603bf3e00ba0d16738c32b820a72bf1bc5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<template>
    <div class="paiban">
        <div>
            <van-calendar
                color="#769AFF"
                :poppable="false"
                :show-confirm="false"
                @select="selectData"
                :formatter="formatter"
                :show-title="false"
                :style="{ height: '400px' }"
            />
        </div>
        <div class="listdiv">
            <div class="listrow">
                <van-row class="rowhand">
                    <van-col span="18">
                        <van-icon style="color: blue;" name="bell" />
                        2022年5月24日(周四) 上午</van-col>
                    <van-col span="6">
                        <div>
                            <div class="sqtb">
                                申请调班
                            </div>
                        </div>
                    </van-col>
                </van-row>
                <van-row>
                    <div class="info"></div>
                    <van-row class="lable">
                        <van-col span="12">机号</van-col>
                        <van-col span="12">透析模式</van-col>
                    </van-row>
                    <van-row class="value">
                        <van-col span="12">1区 2号机</van-col>
                        <van-col span="12">HD</van-col>
                    </van-row>
                </van-row>
            </div>
            <div class="listrow">
                <van-row class="rowhand">
                    <van-col span="18">
                        <van-icon style="color: blue;" name="bell" />
                        2022年5月24日(周四) 上午</van-col>
                    <van-col span="6">
                        <div>
                            <div class="sqtb">
                                申请调班
                            </div>
                        </div>
                    </van-col>
                </van-row>
                <van-row>
                    <div class="info"></div>
                    <van-row class="lable">
                        <van-col span="12">机号</van-col>
                        <van-col span="12">透析模式</van-col>
                    </van-row>
                    <van-row class="value">
                        <van-col span="12">1区 2号机</van-col>
                        <van-col span="12">HD</van-col>
                    </van-row>
                </van-row>
            </div>
        </div>
    </div>
</template>
<script lang="ts" setup>
    // import {ref,reactive,watchEffect,watch} from 'vue'
    import { Calendar as vanCalendar } from 'vant'
    const selectData=(data:any)=>{
        console.log(data)
    }
    const formatter=(day:any)=>{
        const month = day.date.getMonth() + 1
        const date = day.date.getDate()
        if (month === 9) {
            if (date === 24) {
                day.bottomInfo='8:30'
                day.className='paibanclass'
            } else if (date === 27) {
                day.bottomInfo='13:00'
                day.className='paibanclass'
            }
        }
        return day
    }
</script>
<style lang="scss">
    .paibanclass{
        // background: rgb(228, 231, 225);
        color: blue;
    }
    .paiban{
        background-color: #F6FAFF;
        padding: 0;
    }
    .listdiv{
        margin-top: 20px;
        .listrow{
            margin-top: 10px;
            width: 94%;
            margin-left: 3%;
            height: 129px;
            background: #FFFFFF;
            box-shadow: 0px 2px 4px 0px rgba(70,150,249,0.1);
            border-radius: 8px;
            .rowhand{
                padding-top: 20px;
                padding-left: 4px;
                height: 20px;
                font-size: 14px;
                font-family: PingFangSC-Medium, PingFang SC;
                font-weight: 500;
                color: #333333;
                line-height: 20px;
                letter-spacing: 1px;
                .sqtb{
                    color: #4696F9;
                    // background: #4696F9;
                    border: #4696F9 1px solid;
                    width: 60px;
                    border-radius: 4px;
                    font-size: 12px;
                }
            }
            .info{
                margin-top: 10px;
                width: 90%;
                margin-left: 5%;
                height: 1px;
                background: #F1F1F2;
                margin-bottom: 10px;
            }
            .lable{
                width: 90%;
                margin-left: 5%;
                height: 17px;
                font-size: 12px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #AAAAAA;
                line-height: 17px;
            }
            .value{
                margin-top: 20px;
                width: 90%;
                margin-left: 5%;
                height: 18px;
                font-size: 13px;
                font-family: PingFangSC-Medium, PingFang SC;
                font-weight: 500;
                color: #333333;
                line-height: 18px;
            }
        }
    }
</style>