|
@@ -21,6 +21,15 @@ export default class HouseResource extends Component {
|
21
|
21
|
})
|
22
|
22
|
})
|
23
|
23
|
}
|
|
24
|
+ toHouseDetail(item) {
|
|
25
|
+ if (item.housingStatus == '0' || item.saleBatchStatus == '0') {
|
|
26
|
+ Taro.showToast({ title: '当前销售批次或该房源已被取消发布', icon: 'none', duration: 2000 })
|
|
27
|
+ } else {
|
|
28
|
+ Taro.navigateTo({
|
|
29
|
+ url: `/onlineSelling/pages/detail/index?id=${item.houseId}`
|
|
30
|
+ })
|
|
31
|
+ }
|
|
32
|
+ }
|
24
|
33
|
render() {
|
25
|
34
|
const { houseList } = this.state
|
26
|
35
|
return (
|
|
@@ -28,7 +37,7 @@ export default class HouseResource extends Component {
|
28
|
37
|
{
|
29
|
38
|
houseList.map(item => (
|
30
|
39
|
<View key={item.raiseRecordId} >
|
31
|
|
- <RaiseCard type="houseResource" summary={item} />
|
|
40
|
+ <RaiseCard type="houseResource" handleCard={() => this.toHouseDetail(item)} summary={item} />
|
32
|
41
|
</View>
|
33
|
42
|
)
|
34
|
43
|
)
|