|
@@ -95,9 +95,9 @@ export default class Index extends Component {
|
95
|
95
|
|
96
|
96
|
|
97
|
97
|
render() {
|
98
|
|
- const { grantPhoneVisible, grantAvatarVisible, houseDetail,buildingImgList } = this.state
|
|
98
|
+ const { grantPhoneVisible, grantAvatarVisible, houseDetail, buildingImgList } = this.state
|
99
|
99
|
const { userInfo = { person: {} } } = this.props
|
100
|
|
- const address = `${houseDetail.buildingName||''}${houseDetail.termName||''}${houseDetail.blockName||''}${houseDetail.unitName||''}${houseDetail.floorName||''}${houseDetail.roomName||''}`
|
|
100
|
+ const address = `${houseDetail.buildingName || ''}${houseDetail.termName || ''}${houseDetail.blockName || ''}${houseDetail.unitName || ''}${houseDetail.floorName || ''}${houseDetail.roomName || ''}`
|
101
|
101
|
|
102
|
102
|
return (
|
103
|
103
|
<Block>
|
|
@@ -124,17 +124,17 @@ export default class Index extends Component {
|
124
|
124
|
scrollY>
|
125
|
125
|
<View className='detail__main'>
|
126
|
126
|
<View style="padding: 0 30rpx;">
|
127
|
|
- <View className="title">
|
128
|
|
- <View className="name">{houseDetail.apartmentName || ''}</View>
|
129
|
|
- <View className="btn" onClick={() => this.handleChat(houseDetail.buildingId)}>询问优惠</View>
|
130
|
|
- </View>
|
|
127
|
+ <View className="name">{houseDetail.apartmentName || ''}</View>
|
|
128
|
+ <View className="btn" onClick={() => this.handleChat(houseDetail.buildingId)}>询问优惠</View>
|
131
|
129
|
<View className="price">
|
132
|
130
|
现价:{houseDetail.price}万
|
133
|
131
|
</View>
|
134
|
|
- <View className="area">
|
135
|
|
- {houseDetail.buildingArea ? <Text>建筑面积约<Text style="color:#FE1C1C">{houseDetail.buildingArea}</Text>m² </Text> : '建筑面积待定'}
|
136
|
|
- <Text style="margin-left:20rpx">{houseDetail.insideArea ? <Text>使用面积约<Text style="color:#FE1C1C">{houseDetail.insideArea}</Text>m² </Text> : '使用面积待定'}</Text>
|
137
|
|
- </View>
|
|
132
|
+ {houseDetail.apartmentName &&
|
|
133
|
+ <View className="area">
|
|
134
|
+ {houseDetail.buildingArea ? <Text>建筑面积约<Text style="color:#FE1C1C">{houseDetail.buildingArea}</Text>m² </Text> : '建筑面积待定'}
|
|
135
|
+ <Text style="margin-left:20rpx">{houseDetail.insideArea ? <Text>使用面积约<Text style="color:#FE1C1C">{houseDetail.insideArea}</Text>m² </Text> : '使用面积待定'}</Text>
|
|
136
|
+ </View>
|
|
137
|
+ }
|
138
|
138
|
<View className="address">
|
139
|
139
|
<Image className="location-icon" src={require('../../assets/location.png')}></Image>{address || ''}
|
140
|
140
|
</View>
|