KPIProgress.scss
3.01 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
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
/* packageCustomer/components/KPIProgress/KPIProgress.wxss */
.KPI-progress {
padding-bottom: 150rpx;
.header {
background: #FFFFFF;
padding-bottom: 24rpx;
.title-section {
width: 440rpx;
height: 64rpx;
font-size: 32rpx;
font-weight: 400;
padding: 32rpx 0;
margin: 0 auto;
overflow: hidden;
.title-container {
display: flex;
align-items: center;
width: calc(100% - 12rpx);
height: 100%;
background-color: #F7F8FA;
border-radius: 16rpx;
padding: 0 4rpx;
}
.title {
display: flex;
align-items: center;
justify-content: center;
width: 144rpx;
color: #999EA8;
text-align: center;
height: 56rpx;
&.active {
color: #347BFF;
background-color: #fff;
border-radius: 16rpx;
}
}
}
.tab-section {
width: 528rpx;
height: 62rpx;
display: flex;
align-items: center;
margin: 0 auto;
background-color: #F7F8FA;
border-radius: 8rpx;
overflow: hidden;
margin-bottom: 32rpx;
.tab {
flex: 1;
text-align: center;
height: 48rpx;
line-height: 48rpx;
// padding: 16rpx 0;
font-size: 28rpx;
margin: 0 8rpx;
color: #999EA8;
&.active {
background-color: #fff;
color: #292D33;
border-radius: 4rpx;
}
}
}
.date-section {
width: 528rpx;
margin: 0 auto;
box-sizing: border-box;
display: flex;
justify-content: space-between;
align-items: center;
.date {
color: #5A5E66;
font-size: 28rpx;
}
.arrow {
display: flex;
align-items: center;
width: 30rpx;
height: 30rpx;
font-size: 30rpx;
color: #666;
.arrow-left {
padding-left: 24rpx;
padding-right: 24rpx;
}
.arrow-right {
padding-right: 24rpx;
padding-left: 24rpx;
}
}
}
}
.content {
padding: 0 32rpx 32rpx;
background: #FFFFFF;
.kpi-table {
background: #FFFFFF;
overflow: hidden;
}
.kpi-header, .kpi-row {
display: flex;
align-items: center;
padding: 20rpx 0;
}
.kpi-header {
color: #999EA8;
font-size: 24rpx;
background: #F2F6FF;
border-bottom: 0.5px solid #E4E8EE;
}
.kpi-row {
color: #5A5E66;
font-size: 28rpx;
font-family: "numberNor";
border-bottom: 1rpx solid #E4E8EE;
}
.kpi-row:last-child {
border-bottom: none;
}
.col {
flex: 1;
text-align: right;;
}
.col.month {
flex: 0 0 72rpx;
text-align: left;
padding-left: 16rpx;
}
.col.rate {
flex: 0 0 100rpx; text-align: left;
margin-left: 30rpx;
}
.col.done, .col.target { flex: 1.2; }
.number {
color: #347BFF;
}
}
}