|
@@ -395,7 +395,7 @@ export default class HouseList extends Component {
|
395
|
395
|
}
|
396
|
396
|
|
397
|
397
|
renderHouses() {
|
398
|
|
- const { houseList,dataType } = this.state
|
|
398
|
+ const { houseList, dataType } = this.state
|
399
|
399
|
|
400
|
400
|
return (
|
401
|
401
|
<ScrollView className="container" scrollY scrollWithAnimation>
|
|
@@ -432,7 +432,8 @@ export default class HouseList extends Component {
|
432
|
432
|
}
|
433
|
433
|
|
434
|
434
|
handleCondition(value) {
|
435
|
|
- if (value == 2) {
|
|
435
|
+ const { salesBatchDetail: { displayHousePrice } } = this.state
|
|
436
|
+ if ((!displayHousePrice && value == 1) || value == 2) {
|
436
|
437
|
this.setState({
|
437
|
438
|
apartmentId: '',
|
438
|
439
|
startPrice: '',
|
|
@@ -563,27 +564,29 @@ export default class HouseList extends Component {
|
563
|
564
|
</View>
|
564
|
565
|
))}
|
565
|
566
|
</View>
|
566
|
|
- : <Blank tips="暂无户型图,请按价格筛选"></Blank>
|
|
567
|
+ : <Blank tips="暂无户型"></Blank>
|
567
|
568
|
}
|
568
|
569
|
</Block>
|
569
|
570
|
)
|
570
|
571
|
}
|
571
|
572
|
|
572
|
573
|
renderCondition() {
|
573
|
|
- const { current } = this.state
|
|
574
|
+ const { current, salesBatchDetail: { displayHousePrice } } = this.state
|
574
|
575
|
const condition = [{ title: '按户型', value: 0 }, { title: '按价格', value: 1 }, { title: '不限条件', value: 2 }]
|
|
576
|
+ const condition2 = [{ title: '按户型', value: 0 }, { title: '不限条件', value: 2 }]
|
|
577
|
+ const conditionList = displayHousePrice ? condition : condition2
|
575
|
578
|
return (
|
576
|
579
|
<View className="screen-page">
|
577
|
580
|
<View className="screen-top">
|
578
|
581
|
筛选房源
|
579
|
|
- {condition.map(item => (
|
|
582
|
+ {conditionList.map(item => (
|
580
|
583
|
<View key={item.value} onClick={() => this.handleCondition(item.value)} className={current == item.value ? 'top-item active' : 'top-item'}>
|
581
|
584
|
{item.title}
|
582
|
585
|
</View>
|
583
|
586
|
))}
|
584
|
587
|
</View>
|
585
|
588
|
{current == 0 && this.renderApartment()}
|
586
|
|
- {current == 1 && this.renderPrice()}
|
|
589
|
+ {current == 1 && displayHousePrice && this.renderPrice()}
|
587
|
590
|
|
588
|
591
|
|
589
|
592
|
</View>
|
|
@@ -652,7 +655,7 @@ export default class HouseList extends Component {
|
652
|
655
|
</View>
|
653
|
656
|
))}
|
654
|
657
|
</View>
|
655
|
|
-
|
|
658
|
+
|
656
|
659
|
{houseList.length ? this.renderHouses() : this.renderBlank()}
|
657
|
660
|
{this.renderBottom()}
|
658
|
661
|
</View>
|