|
@@ -69,12 +69,16 @@ export default class Index extends Component {
|
69
|
69
|
reType: type || "",
|
70
|
70
|
|
71
|
71
|
}, () => {
|
72
|
|
- console.log(this.state.sex, "sex")
|
73
|
|
- console.log('buildingName' + this.props.proList.records[0].buildingName)
|
|
72
|
+ console.log(this.props.projectDetail.buildingName, "this.props.projectDetail.buildingName")
|
|
73
|
+
|
|
74
|
+ if (this.props.proLis) {
|
|
75
|
+ console.log('buildingName' + this.props.proList.records[0].buildingName)
|
|
76
|
+ }
|
|
77
|
+
|
74
|
78
|
if (this.state.reType == 'projectDeatil') {
|
75
|
79
|
this.setState({
|
76
|
|
- intention: this.props.projectDetail.buildingName ? this.props.projectDetail.buildingName : this.props.proList.records[0].buildingName,
|
77
|
|
- floor: this.props.projectDetail.buildingId ? this.props.projectDetail.buildingId : this.props.proList.records[0].buildingId
|
|
80
|
+ intention: this.props.projectDetail.buildingName || this.props.proList.records[0].buildingName,
|
|
81
|
+ floor: this.props.projectDetail.buildingId || this.props.proList.records[0].buildingId
|
78
|
82
|
}, () => {
|
79
|
83
|
if (this.state.floorID != 0 || this.state.intention) {
|
80
|
84
|
this.loadCardList()
|
|
@@ -217,7 +221,7 @@ export default class Index extends Component {
|
217
|
221
|
})
|
218
|
222
|
}
|
219
|
223
|
Alert(content, title) {
|
220
|
|
- title = title ? title : "温馨提示";
|
|
224
|
+ title = title || "温馨提示";
|
221
|
225
|
content = content.toString();
|
222
|
226
|
Taro.showModal({
|
223
|
227
|
title: title,
|