|
@@ -1541,7 +1541,7 @@
|
|
|
},
|
|
|
//户型大类发生了变更
|
|
|
curHouseTypeChange(item){
|
|
|
- this.curHouseType = item.spaceStructure;//当前选中的户型类型
|
|
|
+ this.curHouseType = item.spaceStructure;//当前选中的户型类型-传递给子组件触发具体的户型数据选取
|
|
|
this.curHouseName = item.spaceName;//当前选中的户型类型名称
|
|
|
//获取当前户型大类下的所有户型信息-用于用户提交
|
|
|
this.curLayoutStruct = this.houseList.find(it=>it.spaceStructure == this.curHouseType).layoutStruct;
|
|
@@ -1588,7 +1588,6 @@
|
|
|
houseId:this.houseId,
|
|
|
}
|
|
|
const res = await requestConfig('getHouseTypeSpaceDetailsV2', parmas, true);
|
|
|
- console.log("户型详情数据:", res)
|
|
|
if (res.success && res.list) {
|
|
|
let list = res.list || [];
|
|
|
list && list.forEach((single,index)=>{
|
|
@@ -1606,11 +1605,8 @@
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
- console.log("户型详情列表: ", list);
|
|
|
+ console.log("户型详情列表-接口原始数据: ", list);
|
|
|
this.houseList = list;//数据会同步到组件中-进而反馈更新页面数据
|
|
|
- this.curHouseObj = this.houseList[0].layoutStruct[0];
|
|
|
- // 加载户型
|
|
|
- // this.loadSpace();
|
|
|
}
|
|
|
},
|
|
|
|