[baozhangchao] преди 3 години
родител
ревизия
3e8a4c64ed
променени са 2 файла, в които са добавени 27 реда и са изтрити 27 реда
  1. 1
    1
      src/components/Banner/index.jsx
  2. 26
    26
      src/components/Banner/style.less

+ 1
- 1
src/components/Banner/index.jsx Целия файл

@@ -18,7 +18,7 @@ export default (props) => {
18 18
       {
19 19
         list && list.map((item, index) => (
20 20
           <SwiperItem key={item.bannerId} className='SwiperItem-img' >
21
-            <RatioItem ratio='5:3'>
21
+            <RatioItem ratio='4:3'>
22 22
               <Image className='swiper-img' src={item.image} mode='widthFix'></Image>
23 23
             </RatioItem>
24 24
           </SwiperItem>

+ 26
- 26
src/components/Banner/style.less Целия файл

@@ -1,30 +1,30 @@
1
+.swiper-container {
2
+  width: 100%;
3
+  overflow: hidden;
4
+  transform: translateY(0);
5
+  margin: auto;
6
+  height: 55vw;
1 7
 
2
-  .swiper-container {
8
+  // swiper.wxss
9
+  /* 默认指示点的样式 */
10
+  .SwiperItem-img {
3 11
     width: 100%;
4
-    overflow: hidden;
5
-    transform: translateY(0);
6
-    margin: auto;
7
-
8
-    // swiper.wxss
9
-    /* 默认指示点的样式 */
10
-    .SwiperItem-img {
11
-      width: 100%;
12
-      border-radius: 10px;
13
-    }
14
-    .wx-swiper-dot {
15
-      top: 2em;
16
-      width: 35px;
17
-      height: 5px;
18
-      border-radius: 0px;
19
-    }
12
+    border-radius: 10px;
13
+  }
14
+  .wx-swiper-dot {
15
+    top: 2em;
16
+    width: 35px;
17
+    height: 5px;
18
+    border-radius: 0px;
19
+  }
20 20
 
21
-    /* 选中指示点的样式 */
22
-    .wx-swiper-dot.wx-swiper-dot-active {
23
-      width: 35px;
24
-      height: 5px;
25
-      border-radius: 0px;
26
-    }
27
-    .swiper-img {
28
-      width: 100%;
29
-    }
21
+  /* 选中指示点的样式 */
22
+  .wx-swiper-dot.wx-swiper-dot-active {
23
+    width: 35px;
24
+    height: 5px;
25
+    border-radius: 0px;
26
+  }
27
+  .swiper-img {
28
+    width: 100%;
30 29
   }
30
+}