|
@@ -6,7 +6,7 @@
|
|
|
id="iframe-4dkk"
|
|
|
width=""
|
|
|
v-if="currentScene.type === '4dkk'"
|
|
|
- :src="`https://test.4dkankan.com/sp${currentScene.version === 'V3' ? 'c' : currentScene.version === 'V4' ? 'g' : 'c'}.html?m=${currentScene.sceneCode}&lang=${lang}`"
|
|
|
+ :src="`${locationOrigin}/sp${currentScene.version === 'V3' ? 'c' : currentScene.version === 'V4' ? 'g' : 'c'}.html?m=${currentScene.sceneCode}&lang=${lang}`"
|
|
|
frameborder="0"
|
|
|
/>
|
|
|
|
|
@@ -29,7 +29,10 @@ import { mapGetters } from "vuex";
|
|
|
import * as krfn from "@/core/index.js";
|
|
|
import { $waiting } from "@/components/shared/loading";
|
|
|
import Snapshot from "@/components/Snapshot";
|
|
|
-import { uploadCover } from "@/api";
|
|
|
+import {
|
|
|
+ uploadCover,
|
|
|
+ searchInAll3DScenes,
|
|
|
+} from "@/api";
|
|
|
import config from '@/config'
|
|
|
|
|
|
let __krfn = krfn.default;
|
|
@@ -41,6 +44,7 @@ export default {
|
|
|
showFlash: false,
|
|
|
inter: null,
|
|
|
lang: config.lang || 'zh',
|
|
|
+ locationOrigin: process.env.VUE_APP_PROXY_URL_ROOT,
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -69,6 +73,9 @@ export default {
|
|
|
}
|
|
|
if (newVal.type == '4dkk') {
|
|
|
$("#pano").empty();
|
|
|
+ if (!newVal.version) { // v1.3之前在作品中新增的三维场景,没有version这个值,需要查询。
|
|
|
+
|
|
|
+ }
|
|
|
return
|
|
|
} else {
|
|
|
$("#pano").empty();
|