|
@@ -28,11 +28,11 @@ const currentPlaying = computed(() => store.getters["functions/currentPlaying"])
|
|
|
const loadScene = async (currentScene) => {
|
|
|
let app = await getApp();
|
|
|
if (app.krpanoDom) {
|
|
|
- let { sceneCode, initVisual,someData } = currentScene;
|
|
|
+ let { sceneCode, initVisual, someData } = currentScene;
|
|
|
app.krpanoDom.call(`skin_loadscene('scene_${sceneCode}',${initVisual ? initVisual.vlookat : '0'},${initVisual ? initVisual.hlookat : '0'})`);
|
|
|
- console.log(sceneCode,someData);
|
|
|
+ console.log(sceneCode, someData);
|
|
|
|
|
|
- if (someData && someData.hotspots &&someData.hotspots.length > 0) {
|
|
|
+ if (someData && someData.hotspots && someData.hotspots.length > 0) {
|
|
|
app.Tags.initHotspot(someData.hotspots, false);
|
|
|
}
|
|
|
}
|
|
@@ -58,10 +58,10 @@ watch(currentScene, (newVal) => {
|
|
|
store.commit("scene/setFdkkCurrentVersion", data.data.isUpgrade !== 0 ? 'v4' : 'v3');
|
|
|
if (data.data.isUpgrade === 0) {
|
|
|
// 该v3场景有背景音乐
|
|
|
- if (data.data.bgMusic) {
|
|
|
- if (!browser.isMobile()) {
|
|
|
+ if (!browser.isMobile()) {
|
|
|
+ if (data.data.bgMusic && data.data.bgMusic != 'noMusic') {
|
|
|
musicPlayer.pause()
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|