|
@@ -4,8 +4,6 @@
|
|
|
<div id="view-controllers"></div>
|
|
|
</div>
|
|
|
<div class="pinBottom left">
|
|
|
-
|
|
|
-
|
|
|
<div>
|
|
|
<div class="viewContainer">
|
|
|
<div
|
|
@@ -211,6 +209,13 @@
|
|
|
<a>{[{ TERMS }]}</a>
|
|
|
</div>
|
|
|
|
|
|
+ <!--(首页) -->
|
|
|
+ <div class="toHomeBox" @click="toHomeFu">
|
|
|
+ <!-- 鼠标移入的显示 -->
|
|
|
+ <div class="hoverTit">回到首页</div>
|
|
|
+ <img src="../../assets/img/toHome.png" alt="" />
|
|
|
+ </div>
|
|
|
+
|
|
|
<!-- 音乐 -->
|
|
|
<div id="volume" class="ui-icon bgandshare wide">
|
|
|
<!-- 鼠标移入的显示 -->
|
|
@@ -246,7 +251,6 @@
|
|
|
<Share v-if="openInd === 2" @close="openInd = 0" />
|
|
|
</div>
|
|
|
<!-- 手动触发导览 -->
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -255,35 +259,43 @@ import HotList from "./components/hotList.vue";
|
|
|
import Share from "./components/share.vue";
|
|
|
|
|
|
export default {
|
|
|
- components: { HotList,Share },
|
|
|
- props: {
|
|
|
-
|
|
|
- },
|
|
|
+ components: { HotList, Share },
|
|
|
+ props: {},
|
|
|
data() {
|
|
|
return {
|
|
|
isGuide: true,
|
|
|
musicState: false,
|
|
|
// vr---热点列表---分享
|
|
|
openInd: 0,
|
|
|
- // musicTime:-1,
|
|
|
+
|
|
|
+ // 播放音乐的定时器id
|
|
|
+ musicTime: -1,
|
|
|
};
|
|
|
},
|
|
|
watch: {},
|
|
|
computed: {},
|
|
|
mounted() {
|
|
|
+ if (window.location.href.includes("?h=1")) {
|
|
|
|
|
|
- // this.musicTime= setInterval(() => {
|
|
|
- // try {
|
|
|
- // this.switchBGM(true)
|
|
|
- // clearInterval(this.musicTime)
|
|
|
- // } catch (error) {
|
|
|
- // console.log(error);
|
|
|
-
|
|
|
- // }
|
|
|
- // }, 500);
|
|
|
-
|
|
|
+ this.musicTime = setInterval(() => {
|
|
|
+ try {
|
|
|
+ this.switchBGM(true);
|
|
|
+ clearInterval(this.musicTime);
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error);
|
|
|
+ }
|
|
|
+ }, 500);
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 回到首页
|
|
|
+ toHomeFu() {
|
|
|
+ window.location.href = window.location.href.replace("zsScene", "zsWeb");
|
|
|
+ setTimeout(() => {
|
|
|
+ location.reload();
|
|
|
+ }, 200);
|
|
|
+ },
|
|
|
+
|
|
|
switchBGM(flag) {
|
|
|
this.musicState = flag;
|
|
|
if (flag) {
|
|
@@ -292,8 +304,7 @@ export default {
|
|
|
document.querySelector("#closeMusic").style.display = "block";
|
|
|
|
|
|
// 手动停止自动导览
|
|
|
- window.player.director.stopTour()
|
|
|
-
|
|
|
+ window.player.director.stopTour();
|
|
|
} else {
|
|
|
window.manage.switchBgmState(false);
|
|
|
document.querySelector("#openMusic").style.display = "block";
|
|
@@ -525,5 +536,4 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
</style>
|