|
@@ -10,7 +10,7 @@
|
|
|
import TWEEN from 'three/addons/libs/tween.module.js';
|
|
|
|
|
|
var requestId = "";
|
|
|
- const util = require('@/utils/util.js');
|
|
|
+ const util = require('@/utils/util.js').default;
|
|
|
const config = require('@/services/urlConfig.js');
|
|
|
import loadModel from '@/mixins/loadModel.js';
|
|
|
import wallMethod from '@/mixins/wallMethod.js';
|
|
@@ -494,7 +494,7 @@
|
|
|
return false;
|
|
|
}
|
|
|
this.floorId = item.layoutId;
|
|
|
-
|
|
|
+ this.pvCloseHandle();//关闭当前的pv
|
|
|
this.curHouseObj = this.curData.layoutStruct.find(it=>it.layoutId==item.layoutId);//更新当前具体的户型数据
|
|
|
// 遍历场景中的所有子对象,找到类型为Mesh的对象并移除
|
|
|
let deleList = this.scene.children.filter(object=>{
|
|
@@ -652,12 +652,25 @@
|
|
|
this.cameraStarPosition.y = 35;
|
|
|
}
|
|
|
this.allSpaceCenter = this.getAllSpaceCenter(this.spaceList);//获取所有空间的中心点
|
|
|
- console.log("该户型空间数据:", this.spaceList);
|
|
|
+ console.log("该户型空间数据:", this.curHouseObj,this.spaceList);
|
|
|
console.log("当前选中的空间:", this.curSpaceObj);
|
|
|
this.cameraInit();
|
|
|
this.loaderSpaceArr(this.spaceList);
|
|
|
// 获取墙体数据并且绘制墙体
|
|
|
this.getHouseTypeSpaceWalls();
|
|
|
+ this.locusValue = this.curHouseObj.layoutName + "-" + this.curHouseObj.layoutArea + "㎡";
|
|
|
+ let param = {
|
|
|
+ type: 'PV',
|
|
|
+ pvId: this.pvId,
|
|
|
+ locusBehaviorName: this.locusBehaviorName,
|
|
|
+ pvCurPageName: this.pvCurPageName,
|
|
|
+ pvCurPageParams:{
|
|
|
+ link:window.location.href,
|
|
|
+ },
|
|
|
+ locusValue: this.locusValue,
|
|
|
+ behaviorName:"webgl户型查看",
|
|
|
+ };
|
|
|
+ util.trackRequest(param);//发送统一PV埋点
|
|
|
},
|
|
|
locationHandle(){
|
|
|
this.movePositionHandle(this.allSpaceCenter,this.cameraStarPosition.y);//把摄像机移动到所有模型的中心点(水平面中心)
|