tremble 3 лет назад
Родитель
Сommit
b679fa8373
2 измененных файлов с 10 добавлено и 4 удалено
  1. 7 1
      src/app.vue
  2. 3 3
      src/main.js

+ 7 - 1
src/app.vue

@@ -405,7 +405,13 @@ onMounted(async () => {
 
               apis.burying_point({ type: 2 });
             } catch (error) {}
-          } else if (tag.type == 'waterfall' || tag.type == 'exhibits') {
+          }
+          else if (tag.type == 'point_jump') {
+            let hotcontent = typeof tag.hotContent == 'string' ? JSON.parse(tag.hotContent) : tag.hotContent;
+            console.log('result:', hotcontent);
+            app.Camera.flyToPano(hotcontent.videoId)
+          }
+          else if (tag.type == 'waterfall' || tag.type == 'exhibits') {
             store.commit('tag/setTagClickType', {
               type: 'waterfall',
               data: tag,

+ 3 - 3
src/main.js

@@ -8,9 +8,9 @@ import browser from "@/utils/browser";
 import i18n, { getLocale, setI18nLanguage, loadLocaleMessages } from './i18n'
 
 if (!window.location.search) {
-  window.location.href = "/index.html?m=eur-KJ-z5ZEV22AeU&pose=pano:408,qua:-0.006,0.6299,0.0049,0.7766";
-} else if (!browser.hasURLParam("pose") && browser.getURLParam("m") == "eur-KJ-z5ZEV22AeU") {
-  let url = window.location.href + `&pose=pano:408,qua:-0.006,0.6299,0.0049,0.7766`;
+  window.location.href = "/index.html?m=KJ-eur-7bRK91138f&pose=pano:188,qua:0.0013,-0.6099,0.001,0.7925";
+} else if (!browser.hasURLParam("pose") && browser.getURLParam("m") == "KJ-eur-7bRK91138f") {
+  let url = window.location.href + `&pose=pano:188,qua:0.0013,-0.6099,0.001,0.7925`;
   window.location.href = url;
 } else {