|
@@ -1,15 +1,16 @@
|
|
|
<template>
|
|
|
<div class="panocon" :class="[routerName]">
|
|
|
<div v-show="currentScene.type !== '4dkk'" id="pano"></div>
|
|
|
+ 调试信息: {{ currentScene }}
|
|
|
<iframe
|
|
|
id="iframe-4dkk"
|
|
|
- :class="currentScene.version"
|
|
|
+ :class="currentSceneVersion"
|
|
|
width=""
|
|
|
v-if="currentScene.type === '4dkk'"
|
|
|
:src="`${locationOrigin}/sp${
|
|
|
- currentScene.version === 'V3'
|
|
|
+ currentSceneVersion === 'V3'
|
|
|
? 'c'
|
|
|
- : currentScene.version === 'V4'
|
|
|
+ : currentSceneVersion === 'V4'
|
|
|
? 'g'
|
|
|
: 'g'
|
|
|
}.html?m=${currentScene.sceneCode}&lang=${lang}`"
|
|
@@ -62,6 +63,7 @@ export default {
|
|
|
inter: null,
|
|
|
lang: config.lang || "zh",
|
|
|
locationOrigin: process.env.VUE_APP_PROXY_URL_ROOT,
|
|
|
+ currentSceneVersion: "V4",
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -108,10 +110,12 @@ export default {
|
|
|
|
|
|
const isVersion = originItem.isUpgrade === 1 ? "V4" : "V3";
|
|
|
newVal.version = isVersion;
|
|
|
+ this.currentSceneVersion = isVersion;
|
|
|
}
|
|
|
);
|
|
|
+ } else {
|
|
|
+ this.currentSceneVersion = newVal.version;
|
|
|
}
|
|
|
- return;
|
|
|
} else {
|
|
|
$("#pano").empty();
|
|
|
window.vrInitFn = () => {
|