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