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
.cl-banner {
    position: relative;
 
    uni-swiper,
    swiper,
    swiper-item {
        height: 100%;
    }
 
    .cl-banner-item {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 100%;
 
        & > view,
        scoped-slots-default {
            height: 100%;
            width: 100%;
        }
 
        &__image {
            height: 100%;
            width: 100%;
            border-radius: $cl-banner-radius;
        }
 
        &__video {
            height: 100%;
            width: 100%;
        }
    }
 
    &--card {
        .cl-banner-item {
            width: 100%;
            transition: all 0.2s ease-in 0s;
 
            &.is-active {
                transform: none !important;
                transition: all 0.2s ease-in 0s;
            }
        }
    }
 
    &--chain {
        .cl-banner-item {
            width: calc(100% - 20rpx);
            margin: 0 10rpx;
        }
    }
 
    &--dot-round {
        .wx-swiper-dot,
        .a-swiper-dot,
        .uni-swiper-dot {
            background-color: #ddd;
            opacity: 0.6;
            width: 12rpx;
            height: 12rpx;
            border-radius: 12rpx;
            margin: 0 6rpx;
            border-width: 0;
        }
 
        .wx-swiper-dot-active,
        .a-swiper-dot-active,
        .uni-swiper-dot-active {
            background-color: #fff;
            opacity: 1;
            width: 26rpx;
        }
    }
 
    &--dot-circle {
        .wx-swiper-dot,
        .a-swiper-dot,
        .uni-swiper-dot {
            background-color: #ddd;
            opacity: 0.5;
            width: 10rpx;
            height: 10rpx;
            border-radius: 14rpx;
            margin: 0 2rpx;
            border-color: transparent;
            border-width: 2px;
            border-style: solid;
        }
 
        .wx-swiper-dot-active,
        .a-swiper-dot-active,
        .uni-swiper-dot-active {
            opacity: 1;
            border-color: $cl-color-primary;
        }
    }
 
    &--dot-square {
        .wx-swiper-dot,
        .a-swiper-dot,
        .uni-swiper-dot {
            background-color: #ddd;
            height: 12rpx;
            width: 14rpx;
            margin: 0 2rpx;
            border-radius: 0;
        }
 
        .wx-swiper-dot-active,
        .a-swiper-dot-active,
        .uni-swiper-dot-active {
            background-color: $cl-color-primary;
            width: 30rpx;
        }
    }
 
    &__btn {
        button {
            position: absolute;
            top: calc(50% - 30rpx);
            height: 60rpx;
            width: 60rpx;
            border-radius: 60rpx;
            border: 0;
            line-height: 60rpx;
            padding: 0;
            margin: 0;
            background-color: rgba(0, 0, 0, 0.4);
            color: #ddd;
            font-size: 32rpx;
 
            &::after {
                border: 0;
            }
        }
 
        &-prev {
            left: 20rpx;
        }
 
        &-next {
            right: 20rpx;
        }
    }
}