|
@@ -22,6 +22,7 @@ import { getCanvasConfig } from '@/utils/tools'
|
22
|
22
|
import { getCardDetail } from '@/services/card'
|
23
|
23
|
import Consultant from '@/components/consultant'
|
24
|
24
|
import './index.scss'
|
|
25
|
+import { Loading } from '@/components/Loading'
|
25
|
26
|
|
26
|
27
|
@connect(s => s.user)
|
27
|
28
|
export default class HouseList extends Component {
|
|
@@ -51,7 +52,7 @@ export default class HouseList extends Component {
|
51
|
52
|
consultData: {}, // 分享的置业顾问信息
|
52
|
53
|
consultShow: false, // 置业顾问悬浮框显示隐藏
|
53
|
54
|
noRecord: false,
|
54
|
|
-
|
|
55
|
+ loading: true,
|
55
|
56
|
}
|
56
|
57
|
|
57
|
58
|
componentDidShow() {
|
|
@@ -119,7 +120,8 @@ export default class HouseList extends Component {
|
119
|
120
|
}
|
120
|
121
|
queryHouseList(params).then(res => {
|
121
|
122
|
this.setState({
|
122
|
|
- houseList: this.groupHouseList(res) || []
|
|
123
|
+ houseList: this.groupHouseList(res) || [],
|
|
124
|
+ loading: false,
|
123
|
125
|
}, () => {
|
124
|
126
|
Taro.hideToast()
|
125
|
127
|
})
|
|
@@ -576,8 +578,13 @@ export default class HouseList extends Component {
|
576
|
578
|
posterData,
|
577
|
579
|
posterConfig,
|
578
|
580
|
noRecord,
|
|
581
|
+ loading,
|
579
|
582
|
} = this.state
|
580
|
583
|
|
|
584
|
+ if (loading) {
|
|
585
|
+ return <View style="margin: 80px auto;"><Loading color="#BB9C79" size={100}/></View>
|
|
586
|
+ }
|
|
587
|
+
|
581
|
588
|
const { userInfo: { person } } = this.props
|
582
|
589
|
|
583
|
590
|
const showCircleBtn = posterData && posterData.qrcode
|