周立森 5 년 전
부모
커밋
2746a0775a

+ 8
- 4
src/pages/building/list/add/components/base.jsx 파일 보기

@@ -92,8 +92,9 @@ function AddBuilding(props) {
92 92
       if (res.buildingTag !== null) {
93 93
         res.tag = res.buildingTag.map((item, _) => item.tagName)
94 94
       }
95
-
96
-      res.avatarImage = res.buildingImg.map(item => item.url)
95
+      if (res.buildingImg !== null) {
96
+        res.avatarImage = res.buildingImg.map(item => item.url)
97
+      }
97 98
 
98 99
       if (res.buildingListImg) {
99 100
         // res.listImage = res.buildingListImg.map(item => item.url)
@@ -360,9 +361,12 @@ function AddBuilding(props) {
360 361
               rules: [{ required: true, message: '请选择销售状态' }],
361 362
             })(
362 363
               <Select placeholder="销售状态" style={{ width: '1016px' }}>
363
-                <Option value="待定">待定</Option>
364
+                {/* <Option value="待定">待定</Option>
365
+                <Option value="在售">在售</Option>
366
+                <Option value="售完">售完</Option> */}
367
+                <Option value="待售">待售</Option>
364 368
                 <Option value="在售">在售</Option>
365
-                <Option value="售完">售完</Option>
369
+                <Option value="售罄">售罄</Option>
366 370
               </Select>,
367 371
             )}
368 372
           </Form.Item>

+ 1
- 3
src/pages/building/list/index.jsx 파일 보기

@@ -106,9 +106,7 @@ function CartBody(props) {
106 106
       // cover={}
107 107
       // bodyStyle={{ padding: '10px 20px' }}
108 108
     >
109
-      { console.log("buildingImg2: ", buildingImg)}
110
-      { console.log("buildingImg[0]: ",buildingImg[0])}
111
-    <div className={Styles.cover} style={{ background: `url(${((buildingImg && buildingImg[0]) ).url})` }}   ></div>
109
+    <img className={Styles.cover} style={{ background: `url(${encodeURI(((data.buildingListImg && data.buildingListImg[0]) || {}).url)})` }}   ></img>
112 110
     <div style={{ padding: '10px 20px' }}>
113 111
       <p className={Styles.cardText}>
114 112
         <span className={Styles.title}>楼盘编号</span>

+ 1
- 1
src/pages/carouselFigure/carouselFigureList.jsx 파일 보기

@@ -46,7 +46,7 @@ const toEditCarouse = (contentId) => () => {
46 46
       dataIndex: 'image',
47 47
       key: 'image',
48 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 52
       title: '类型',

+ 5
- 0
src/pages/style/GoodsList.less 파일 보기

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