Browse Source

轮播图

傅行帆 5 years ago
parent
commit
2fac96e81f

+ 1
- 1
src/pages/carouselFigure/carouselFigureList.jsx View File

46
       dataIndex: 'image',
46
       dataIndex: 'image',
47
       key: 'image',
47
       key: 'image',
48
       align: 'center',
48
       align: 'center',
49
-      render: (image) => <img src={image} className={styles.imgPerfect} />,
49
+      render: (x, row) => <img src={row.image} className={row.showPosition === 'index' ? styles.imgIndex : row.showPosition === 'mall' ? styles.imgPerfect : ''} />,
50
     },
50
     },
51
     {
51
     {
52
       title: '类型',
52
       title: '类型',

+ 5
- 0
src/pages/style/GoodsList.less View File

14
   height: 67.5px;
14
   height: 67.5px;
15
 }
15
 }
16
 
16
 
17
+.imgIndex {
18
+  width: 120px;
19
+  height: 96px;
20
+}
21
+
17
 .imgSmall {
22
 .imgSmall {
18
   width: 90px;
23
   width: 90px;
19
   height: 135px;
24
   height: 135px;