datePicker.wxss
1.88 KB
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
/* components/datePicker/datePicker.wxss */
.picker{
width: 100vw;
height: 100vh;
z-index: 9999;
position: fixed;
top: 0;
left: 0;
}
.bg{
width: 100vw;
height: 100vh;
z-index: 9999;
position: absolute;
left: 0;
top: 0;
background: rgba(0, 0, 0, 0.5);
}
.box{
width: 100%;
position: absolute;
bottom: -50%;
left: 0;
background: #fff;
z-index: 10000;
}
.show{
bottom: 0;
transition: all 0.35s;
}
.title{
height: 100rpx;
position: relative;
width: 100%;
text-align: center;
line-height: 100rpx;
font-size: 36rpx;
color: #333333;
border-bottom: 2rpx solid #eee;
box-sizing: border-box;
}
.left,.right{
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 100rpx;
height: 100rpx;
}
.left .arrow,.right .arrow{
width: 24rpx;
height: 24rpx;
border: 3rpx solid transparent;
position: absolute;
top: 40%;
left: 25%;
}
.left{
left: 0;
}
.left .arrow{
border-left-color: #999;
border-bottom-color: #999;
transform: rotate(45deg);
left: 50%;
}
.right{
right: 0;
}
.right .arrow{
border-bottom-color: #999;
border-right-color: #999;
transform: rotate(-45deg);
}
.time{
box-sizing: border-box;
width: 100%;
height: auto;
}
.day{
display: inline-block;
width: calc(100% / 7);
text-align: center;
font-size: 36rpx;
color: #212B35;
position: relative;
}
.day view{
width: 56%;
height: 67%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.opacity{
color: #C4CDD5;
}
.active view{
color: #fff;
background: #2F8EF0;
border-radius: 4rpx;
}
.have{
position: relative;
}
.have::after{
content: '';
position: absolute;
width: 12rpx;
height: 12rpx;
background: red;
border-radius: 100%;
top: -10rpx;
right: -10rpx;
z-index: 999;
}