|
@@ -1,23 +1,23 @@
|
|
|
<template>
|
|
|
- <!-- <Logo /> -->
|
|
|
- <Tips />
|
|
|
- <!-- <Menu /> -->
|
|
|
- <div v-show="showUI && !vrStatus">
|
|
|
- <sceneList />
|
|
|
- <div class="btn-style">
|
|
|
- <!-- <div class="menu-icon">
|
|
|
- <div @click="onIsShowList"
|
|
|
- v-if="!((metadata.catalogRoot && metadata.catalogRoot.length == 1) && scenes.length == 1 && secondaryList.length == 1)">
|
|
|
- <img :src="require(`@/assets/images/icon/${isShowScenesList ? 'function_off@2x.png' : 'function_on@2x.png'}`)"
|
|
|
- alt="" />
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
-
|
|
|
- <Control />
|
|
|
- <!-- <ControlRight /> -->
|
|
|
- </div>
|
|
|
-
|
|
|
+ <!-- <Logo /> -->
|
|
|
+ <Tips />
|
|
|
+ <!-- <Menu /> -->
|
|
|
+ <div v-show="showUI && !vrStatus">
|
|
|
+ <sceneList />
|
|
|
+ <div class="btn-style">
|
|
|
+ <!-- <div class="menu-icon">
|
|
|
+ <div @click="onIsShowList"
|
|
|
+ v-if="!((metadata.catalogRoot && metadata.catalogRoot.length == 1) && scenes.length == 1 && secondaryList.length == 1)">
|
|
|
+ <img :src="require(`@/assets/images/icon/${isShowScenesList ? 'function_off@2x.png' : 'function_on@2x.png'}`)"
|
|
|
+ alt="" />
|
|
|
</div>
|
|
|
+ </div> -->
|
|
|
+
|
|
|
+ <Control />
|
|
|
+ <!-- <ControlRight /> -->
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
|
|
|
</template>
|
|
|
|
|
@@ -46,69 +46,69 @@ const currentScene = computed(() => store.getters["scene/currentScene"]);
|
|
|
const vrStatus = computed(() => store.getters["functions/vrStatus"]);
|
|
|
|
|
|
const onIsShowList = (data) => {
|
|
|
- if (showTours.value) {
|
|
|
- store.commit('fdkk/setShowToursList', false)
|
|
|
- }
|
|
|
- store.commit("functions/setShowScenesList", !isShowScenesList.value);
|
|
|
+ if (showTours.value) {
|
|
|
+ store.commit('fdkk/setShowToursList', false)
|
|
|
+ }
|
|
|
+ store.commit("functions/setShowScenesList", !isShowScenesList.value);
|
|
|
};
|
|
|
|
|
|
watch(currentScene, () => {
|
|
|
- if (currentScene.value.type == '4dkk' && isShowScenesList.value) {
|
|
|
- let t = setTimeout(() => {
|
|
|
- clearTimeout(t)
|
|
|
- store.commit("functions/setShowScenesList", false);
|
|
|
- }, 1500);
|
|
|
- }
|
|
|
+ if (currentScene.value.type == '4dkk' && isShowScenesList.value) {
|
|
|
+ let t = setTimeout(() => {
|
|
|
+ clearTimeout(t)
|
|
|
+ store.commit("functions/setShowScenesList", false);
|
|
|
+ }, 1500);
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
useApp().then((app) => {
|
|
|
- app.Scene.on("ready", (data) => {
|
|
|
- if (currentScene && currentScene.value.type == '4dkk' && !showUI.value) {
|
|
|
- showUI.value = true
|
|
|
- }
|
|
|
- })
|
|
|
- app.Scene.on("sceneReady", () => {
|
|
|
- showUI.value = true
|
|
|
- })
|
|
|
- app.Scene.on("onExitVr", () => {
|
|
|
- store.commit("functions/setVrStatus", false);
|
|
|
- })
|
|
|
+ app.Scene.on("ready", (data) => {
|
|
|
+ if (currentScene && (currentScene.value.type == '4dkk' || currentScene.value.type === 'pano') && !showUI.value) {
|
|
|
+ showUI.value = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ app.Scene.on("ready", () => {
|
|
|
+ showUI.value = true
|
|
|
+ })
|
|
|
+ app.Scene.on("onExitVr", () => {
|
|
|
+ store.commit("functions/setVrStatus", false);
|
|
|
+ })
|
|
|
})
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.btn-style {
|
|
|
+ display: flex;
|
|
|
+ width: 96%;
|
|
|
+ max-width: 600px;
|
|
|
+ position: absolute;
|
|
|
+ left: 2%;
|
|
|
+ right: 2%;
|
|
|
+ bottom: 38px;
|
|
|
+ z-index: 9;
|
|
|
+
|
|
|
+ .menu-icon {
|
|
|
+ width: 36px;
|
|
|
+ height: 36px;
|
|
|
+
|
|
|
+ >div {
|
|
|
+ width: 100%;
|
|
|
+ height: 36px;
|
|
|
+ background: rgba(0, 0, 0, 0.4);
|
|
|
+ border-radius: 50%;
|
|
|
+ border: 1px solid rgba(255, 255, 255, 0.2);
|
|
|
+ backdrop-filter: blur(6px);
|
|
|
display: flex;
|
|
|
- width: 96%;
|
|
|
- max-width: 600px;
|
|
|
- position: absolute;
|
|
|
- left: 2%;
|
|
|
- right: 2%;
|
|
|
- bottom: 38px;
|
|
|
- z-index: 9;
|
|
|
-
|
|
|
- .menu-icon {
|
|
|
- width: 36px;
|
|
|
- height: 36px;
|
|
|
-
|
|
|
- >div {
|
|
|
- width: 100%;
|
|
|
- height: 36px;
|
|
|
- background: rgba(0, 0, 0, 0.4);
|
|
|
- border-radius: 50%;
|
|
|
- border: 1px solid rgba(255, 255, 255, 0.2);
|
|
|
- backdrop-filter: blur(6px);
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
-
|
|
|
- >img {
|
|
|
- width: 24px;
|
|
|
- height: 24px;
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+
|
|
|
+ >img {
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+
|
|
|
}
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|