wujingjing
2024-08-06 0dc8bb825b1fb47e0f477a6e4dc93638b2dedf95
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
/* pages/index/banner/banner.wxss */
 
/* 轮播图 */
.swiper-box {
  position: relative;
 
  .swiper {
    height: 320rpx;
    border-radius: 18rpx;
    overflow: hidden;
  }
 
  .swiper-item {
    height: 320rpx;
    overflow: hidden;
 
    .img,
    .navigator {
      height: 100%;
      width: 100%;
      border-radius: 16rpx;
    }
  }
 
  .indicator {
    display: flex;
    justify-content: center;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16rpx;
 
    // 面板指示器
    .rectangle {
      width: 30rpx;
      height: 6rpx;
      margin: 0 8rpx;
      border-radius: 6rpx;
      background-color: rgba(233, 228, 228, 0.9);
    }
 
    // 轮播图被激活时的样式
    .active {
      background-color: #f3514f;
      width: 40rpx;
    }
  }
}