|
@@ -2227,6 +2227,15 @@
|
|
this.$message.warning("空间正在调整");
|
|
this.$message.warning("空间正在调整");
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
|
|
+ if(!spaceId){
|
|
|
|
+ this.$message.warning("请选择空间后进入漫游");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ let gltf = this.lableItem.find(it=>it.spaceId==spaceId);
|
|
|
|
+ if(gltf.spaceType==13){//楼梯不能跳转
|
|
|
|
+ this.$message.warning("楼梯间不能漫游!");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
this.locationHandle();
|
|
this.locationHandle();
|
|
setTimeout( async ()=>{
|
|
setTimeout( async ()=>{
|
|
let shottingImg = await this.shottingAction() + "?x-oss-process=image/auto-orient,1/quality,Q_46/format,jpg";//开始截图
|
|
let shottingImg = await this.shottingAction() + "?x-oss-process=image/auto-orient,1/quality,Q_46/format,jpg";//开始截图
|
|
@@ -2244,7 +2253,6 @@
|
|
this.changeSpaceColor(this.selectSpace.spaceId,2);//取消上一个空间的颜色
|
|
this.changeSpaceColor(this.selectSpace.spaceId,2);//取消上一个空间的颜色
|
|
this.selectSpace = null;
|
|
this.selectSpace = null;
|
|
}
|
|
}
|
|
- let gltf = this.lableItem.find(it=>it.spaceId==spaceId);
|
|
|
|
if(gltf){
|
|
if(gltf){
|
|
this.goRoam(gltf)
|
|
this.goRoam(gltf)
|
|
}
|
|
}
|
|
@@ -2255,6 +2263,7 @@
|
|
goRoam(gltf){
|
|
goRoam(gltf){
|
|
console.warn('goRoam',gltf,this.selectSpace);
|
|
console.warn('goRoam',gltf,this.selectSpace);
|
|
if(gltf.spaceType==13){//楼梯不能跳转
|
|
if(gltf.spaceType==13){//楼梯不能跳转
|
|
|
|
+ this.$message.warning("楼梯间不能漫游!");
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
let spaceId = this.selectSpace ? this.selectSpace.spaceId : gltf.spaceId;//具体的空间Id
|
|
let spaceId = this.selectSpace ? this.selectSpace.spaceId : gltf.spaceId;//具体的空间Id
|