|
@@ -107,7 +107,7 @@ function CartBody(props) {
|
107
|
107
|
// bodyStyle={{ padding: '10px 20px' }}
|
108
|
108
|
>
|
109
|
109
|
{/* 因为 background 方式设置图片背景,如果 图片url 存在空格或者其他特殊字符,导致显示不出来,需要进行 encodeURI(xxx) 转码 */}
|
110
|
|
- <img className={Styles.cover} style={{ background: `url(${encodeURI(((data.buildingListImg && data.buildingListImg[0]) || {}).url)})` }} ></img>
|
|
110
|
+ <img className={Styles.cover} style={{ backgroundImage: `url('${encodeURI( ((data.buildingListImg && data.buildingListImg[0]) || {}).url )}')` }} ></img>
|
111
|
111
|
<div style={{ padding: '10px 20px' }}>
|
112
|
112
|
<p className={Styles.cardText}>
|
113
|
113
|
<span className={Styles.title}>楼盘编号</span>
|
|
@@ -259,6 +259,10 @@ function body(props) {
|
259
|
259
|
getList({ pageNum: 1, pageSize: 9 })
|
260
|
260
|
}
|
261
|
261
|
|
|
262
|
+ function onSuccess() {
|
|
263
|
+ getList({ pageNum: 1, pageSize: 9 })
|
|
264
|
+ }
|
|
265
|
+
|
262
|
266
|
|
263
|
267
|
return (
|
264
|
268
|
<>
|
|
@@ -335,7 +339,7 @@ function body(props) {
|
335
|
339
|
{
|
336
|
340
|
dataSource.records.map((item, _) => (
|
337
|
341
|
<Col span={8}>
|
338
|
|
- <CartBody data={item} key={item.buildingId} onSuccess={getList} />
|
|
342
|
+ <CartBody data={item} key={item.buildingId} onSuccess={() => onSuccess()} />
|
339
|
343
|
</Col>
|
340
|
344
|
))
|
341
|
345
|
}
|