周立森 5 vuotta sitten
vanhempi
commit
2746a0775a

+ 8
- 4
src/pages/building/list/add/components/base.jsx Näytä tiedosto

92
       if (res.buildingTag !== null) {
92
       if (res.buildingTag !== null) {
93
         res.tag = res.buildingTag.map((item, _) => item.tagName)
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
       if (res.buildingListImg) {
99
       if (res.buildingListImg) {
99
         // res.listImage = res.buildingListImg.map(item => item.url)
100
         // res.listImage = res.buildingListImg.map(item => item.url)
360
               rules: [{ required: true, message: '请选择销售状态' }],
361
               rules: [{ required: true, message: '请选择销售状态' }],
361
             })(
362
             })(
362
               <Select placeholder="销售状态" style={{ width: '1016px' }}>
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
                 <Option value="在售">在售</Option>
368
                 <Option value="在售">在售</Option>
365
-                <Option value="售完">售完</Option>
369
+                <Option value="售罄">售罄</Option>
366
               </Select>,
370
               </Select>,
367
             )}
371
             )}
368
           </Form.Item>
372
           </Form.Item>

+ 1
- 3
src/pages/building/list/index.jsx Näytä tiedosto

106
       // cover={}
106
       // cover={}
107
       // bodyStyle={{ padding: '10px 20px' }}
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
     <div style={{ padding: '10px 20px' }}>
110
     <div style={{ padding: '10px 20px' }}>
113
       <p className={Styles.cardText}>
111
       <p className={Styles.cardText}>
114
         <span className={Styles.title}>楼盘编号</span>
112
         <span className={Styles.title}>楼盘编号</span>

+ 1
- 1
src/pages/carouselFigure/carouselFigureList.jsx Näytä tiedosto

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 Näytä tiedosto

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;