|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <div class="header" @touchmove.prevent v-if="!isPanoramaMode">
|
|
|
|
|
|
+ <div class="header" @touchmove.prevent v-if="!isPanoramaMode || isTourMode">
|
|
<div class="left" :class="{ show: !isTourMode }">
|
|
<div class="left" :class="{ show: !isTourMode }">
|
|
<div v-show="!isPanoramaMode" class="back-pano" @click="onChangeMode">
|
|
<div v-show="!isPanoramaMode" class="back-pano" @click="onChangeMode">
|
|
<i
|
|
<i
|
|
@@ -29,9 +29,9 @@
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="right" v-show="player.showWidgets" @click="onShowMore">
|
|
|
|
|
|
+ <!-- <div class="right" v-show="player.showWidgets" @click="onShowMore">
|
|
<i class="iconfont icon-show_more_share"></i>
|
|
<i class="iconfont icon-show_more_share"></i>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
<transition
|
|
<transition
|
|
appear
|
|
appear
|
|
name="custom-classes-transition"
|
|
name="custom-classes-transition"
|
|
@@ -62,10 +62,11 @@
|
|
// import { useStore } from "vuex";
|
|
// import { useStore } from "vuex";
|
|
// import { Dialog } from "@/global_components/";
|
|
// import { Dialog } from "@/global_components/";
|
|
// import { useMusicPlayer } from "@/utils/sound";
|
|
// import { useMusicPlayer } from "@/utils/sound";
|
|
- import { onMounted, watch, computed, ref, nextTick } from 'vue';
|
|
|
|
|
|
+ import { onMounted, watch, computed, ref, nextTick, unref } from 'vue';
|
|
import shareImage from '/@/assets/share.png';
|
|
import shareImage from '/@/assets/share.png';
|
|
import { useAppStore } from '/@/store/modules/app';
|
|
import { useAppStore } from '/@/store/modules/app';
|
|
import { useSceneStore } from '/@/store/modules/scene';
|
|
import { useSceneStore } from '/@/store/modules/scene';
|
|
|
|
+ import { useRtcStore } from '/@/store/modules/rtc';
|
|
// import { useApp, getApp } from "@/app";
|
|
// import { useApp, getApp } from "@/app";
|
|
const appStore = useAppStore();
|
|
const appStore = useAppStore();
|
|
const sceneStore = useSceneStore();
|
|
const sceneStore = useSceneStore();
|
|
@@ -77,6 +78,8 @@
|
|
}
|
|
}
|
|
|
|
|
|
const isTourMode = computed(() => appStore.isTourMode);
|
|
const isTourMode = computed(() => appStore.isTourMode);
|
|
|
|
+ const rtcStore = useRtcStore();
|
|
|
|
+ const isLeader = computed(() => rtcStore.isLeader);
|
|
|
|
|
|
// const musicPlayer = useMusicPlayer()
|
|
// const musicPlayer = useMusicPlayer()
|
|
// const store = useStore();
|
|
// const store = useStore();
|
|
@@ -214,7 +217,9 @@
|
|
// };
|
|
// };
|
|
const onChangeMode = () => {
|
|
const onChangeMode = () => {
|
|
// store.commit("setMode", "panorama");
|
|
// store.commit("setMode", "panorama");
|
|
- appStore.setMode('panorama');
|
|
|
|
|
|
+ if (unref(isLeader) || unref(isTourMode)) {
|
|
|
|
+ appStore.setMode('panorama');
|
|
|
|
+ }
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|