|
@@ -1133,19 +1133,20 @@
|
|
backAysncData(){
|
|
backAysncData(){
|
|
console.warn("---backAysncData---",this.pvId)
|
|
console.warn("---backAysncData---",this.pvId)
|
|
let curLayoutStruct = JSON.parse(getStorage('curLayoutStruct')) ;//获取楼层的数据-户型数组
|
|
let curLayoutStruct = JSON.parse(getStorage('curLayoutStruct')) ;//获取楼层的数据-户型数组
|
|
- if(curLayoutStruct && curLayoutStruct.length>0){
|
|
|
|
- curLayoutStruct.forEach((layoutStruct,index)=>{
|
|
|
|
- let spaceList = JSON.parse(layoutStruct.houseJson);//houseJson是字符串需要序列号处理
|
|
|
|
- spaceList.forEach(obj => delete obj.wallList);//去除墙体数据,减少数据量
|
|
|
|
- if(this.curHouseObj && this.curHouseObj.id==layoutStruct.id){
|
|
|
|
- this.curHouseObj.houseJson = JSON.stringify(spaceList);
|
|
|
|
- console.warn("***backAysncData-curHouseObj***",this.curHouseObj)
|
|
|
|
- }
|
|
|
|
- if(this.curLayoutStruc && this.curLayoutStruct[index]){
|
|
|
|
- this.curLayoutStruct[index].houseJson = JSON.stringify(spaceList);//数据会同步到组件中
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ // if(curLayoutStruct && curLayoutStruct.length>0){
|
|
|
|
+ // curLayoutStruct.forEach((layoutStruct,index)=>{
|
|
|
|
+ // let spaceList = JSON.parse(layoutStruct.houseJson);//houseJson是字符串需要序列号处理
|
|
|
|
+ // spaceList.forEach(obj => delete obj.wallList);//去除墙体数据,减少数据量
|
|
|
|
+ // if(this.curHouseObj && this.curHouseObj.id==layoutStruct.id){
|
|
|
|
+ // this.curHouseObj.houseJson = JSON.stringify(spaceList);
|
|
|
|
+ // console.warn("***backAysncData-curHouseObj***",this.curHouseObj)
|
|
|
|
+ // }
|
|
|
|
+ // if(this.curLayoutStruct && this.curLayoutStruct[index]){
|
|
|
|
+ // this.curLayoutStruct[index].houseJson = JSON.stringify(spaceList);//数据会同步到组件中
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ this.curLayoutStruct = curLayoutStruct;
|
|
},
|
|
},
|
|
//当前户型初始化
|
|
//当前户型初始化
|
|
houseInit(item){
|
|
houseInit(item){
|
|
@@ -2306,6 +2307,7 @@
|
|
this.outRoam();
|
|
this.outRoam();
|
|
this.cameraInit();//把摄像头等属性还原到初始设置的
|
|
this.cameraInit();//把摄像头等属性还原到初始设置的
|
|
this.movePositionHandle(this.allSpaceCenter);//把摄像机移动到所有模型的中心点(水平面中心)
|
|
this.movePositionHandle(this.allSpaceCenter);//把摄像机移动到所有模型的中心点(水平面中心)
|
|
|
|
+ this.curLayoutStruct = JSON.parse(getStorage('curLayoutStruct')) ;//获取楼层的数据-户型数组
|
|
}else{
|
|
}else{
|
|
this.movePositionHandle(this.allSpaceCenter,this.cameraStarPosition.y);//把摄像机移动到所有模型的中心点(水平面中心)
|
|
this.movePositionHandle(this.allSpaceCenter,this.cameraStarPosition.y);//把摄像机移动到所有模型的中心点(水平面中心)
|
|
}
|
|
}
|