wangzhibo
4 天以前 10595d8632f959d0954d1939243196f4eed02372
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
159
160
161
162
163
164
165
166
167
@use "sass:math";
 
.cl-slider-verify {
    display: flex;
    flex-direction: column;
    padding-bottom: 10rpx;
 
    &__title {
        font-size: 30rpx;
        margin: 10rpx 0 0 0;
    }
 
    &__fill {
        height: 300rpx;
        width: 600rpx;
        background-color: #eee;
        margin: 40rpx 0 45rpx 0;
        position: relative;
        border-radius: 24rpx;
 
        &-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 50rpx;
            width: 50rpx;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 12rpx;
            position: absolute;
            right: 12rpx;
            top: 12rpx;
            color: #fff;
            font-size: 28rpx;
            z-index: 2;
        }
 
        &-cover {
            height: 100%;
            width: 100%;
            border-radius: inherit;
        }
 
        &-source {
            z-index: 3;
            border-radius: 6rpx;
 
            image {
                position: absolute;
                top: calc(-150rpx + 25px);
                height: 300rpx;
                width: 600rpx;
                border-radius: 24rpx;
                pointer-events: none;
            }
        }
 
        &-target {
            background: rgba(0, 0, 0, 0.5);
            z-index: 2;
            border-radius: 8rpx;
        }
 
        &-source,
        &-target {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            height: 50px;
            width: 50px;
            overflow: hidden;
        }
    }
 
    &__rotate {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 600rpx;
        margin: 40rpx 0 45rpx 0;
 
        &-cover {
            height: 300rpx;
            width: 300rpx;
            border-radius: 100%;
        }
    }
 
    &__drag {
        $border: $cl-border-width solid #eee;
        $height: 90rpx;
        $radius: 60rpx;
 
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
        border-radius: $radius;
        height: $height;
        border: $border;
        box-sizing: border-box;
        background-color: #fdfdfd;
 
        &-placeholder {
            position: absolute;
            left: 0;
            width: 100%;
            text-align: center;
            font-size: 28rpx;
            color: $cl-color-info;
            z-index: 2;
            pointer-events: none;
            border-radius: $radius;
        }
 
        &-active {
            background-color: #f1f1f1;
            position: absolute;
            left: 0;
            height: $height;
            border-radius: $radius 0 0 $radius;
            border: $border;
            z-index: 3;
 
            &.active {
                padding-left: math.div($height, 2);
            }
        }
 
        &-inner {
            display: flex;
            height: $height;
            width: 100%;
            border-radius: math.div($height, 2);
        }
 
        &-block {
            display: flex;
            align-items: center;
            justify-content: center;
            height: $height;
            width: $height;
            border: $border;
            background-color: #fff;
            box-sizing: border-box;
            border-radius: inherit;
            position: relative;
            top: -$cl-border-width;
            font-size: 40rpx;
            font-weight: bold;
            z-index: 4;
        }
 
        &.is-fail {
            .cl-slider-verify__drag-block {
                background-color: $cl-color-error;
                color: #fff;
            }
        }
 
        &.is-success {
            .cl-slider-verify__drag-block {
                background-color: $cl-color-success;
                color: #fff;
            }
        }
    }
}