소스 검색

fix:修改热点列表动态显示失效问题

aamin 1 년 전
부모
커밋
f4b6e08519
1개의 변경된 파일23개의 추가작업 그리고 19개의 파일을 삭제
  1. 23 19
      H5场景本地化/src/views/gui/menu.vue

+ 23 - 19
H5场景本地化/src/views/gui/menu.vue

@@ -760,21 +760,7 @@ export default {
         if (window.hotData) {
           clearInterval(timeA);
         }
-
-        setTimeout(() => {
-          this.isFingerpost = true;
-        }, 400);
-        // 是否需要初始化相机视角位置
-        if (this.$route.query) {
-          const locId = {
-            id: this.$route.query.id,
-            x: Number(this.$route.query.x),
-            y: Number(this.$route.query.y),
-            z: Number(this.$route.query.z),
-            w: Number(this.$route.query.w),
-          };
-          this.initCamera(locId);
-        }
+        this.isFingerpost = true;
         console.log(
           "是否显示",
           window.hotData,
@@ -789,6 +775,22 @@ export default {
           this.showHotList = false;
           // this.showHotList = true
         }
+
+        // setTimeout(() => {
+
+        // }, 400);
+
+        // 是否需要初始化相机视角位置
+        if (this.$route.query) {
+          const locId = {
+            id: this.$route.query.id,
+            x: Number(this.$route.query.x),
+            y: Number(this.$route.query.y),
+            z: Number(this.$route.query.z),
+            w: Number(this.$route.query.w),
+          };
+          this.initCamera(locId);
+        }
       }, 500);
     }
   },
@@ -802,12 +804,14 @@ export default {
       });
 
       const c =
-        current.closestPanoTowardTag(window.player.mode, window.player.currentPano) ||
-        window.player.currentPano;
-      
+        current.closestPanoTowardTag(
+          window.player.mode,
+          window.player.currentPano
+        ) || window.player.currentPano;
+
       setTimeout(() => {
         // current && current.goQua(window.player, true);
-        console.log(c)
+        console.log(c);
         window.player.flyToPano({
           // 移动到点位
           pano: c,