|
|
@@ -72,7 +72,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div v-show="!hideTools" class="pinBottom right hideTarget">
|
|
|
+ <div v-show="!hideTools && false" class="pinBottom right hideTarget">
|
|
|
<div class="rightViewContainer clearfix">
|
|
|
<!-- 楼层,内外 -->
|
|
|
<div class="gui-floor" v-show="false">
|
|
|
@@ -116,8 +116,8 @@
|
|
|
<!-- 鼠标移入的显示 -->
|
|
|
<div class="hoverTit">{{ musicState ? "关闭" : "打开" }}音乐</div>
|
|
|
<div>
|
|
|
- <img id="openMusic" style="display: block" @click="switchBGM(true)" src="../../assets/img/musicAc.png" alt="" />
|
|
|
- <img id="closeMusic" style="display: none" @click="switchBGM(false)" src="../../assets/img/music.png" alt="" />
|
|
|
+ <!-- <img id="openMusic" style="display: block" @click="switchBGM(true)" src="../../assets/img/musicAc.png" alt="" />
|
|
|
+ <img id="closeMusic" style="display: none" @click="switchBGM(false)" src="../../assets/img/music.png" alt="" /> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 分享 -->
|
|
|
@@ -153,8 +153,8 @@
|
|
|
<transition name="fade" enter-active-class="animate__animated animate__fadeInUp animate__faster" leave-active-class="animate__animated animate__fadeOutDown animate__faster">
|
|
|
<div v-show="openType != 'immersive'" class="right-btn">
|
|
|
<div id="bgm" class="button-item" :class="getActive(i.type)" v-for="(i, index) in rightButtons">
|
|
|
- <img class="normal" v-if="musicState" :src="i.normalIcon" alt="" @click="switchBGM(false)" />
|
|
|
- <img class="active" v-else :src="i.activeIcon" alt="" @click="switchBGM(true)" />
|
|
|
+ <img class="normal" id="openMusic" :src="i.normalIcon" alt="" @click="switchBGM(false)" />
|
|
|
+ <img class="active" id="closeMusic" :src="i.activeIcon" alt="" @click="switchBGM(true)" />
|
|
|
<div class="tip-box">{{ i.name }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -180,7 +180,7 @@
|
|
|
<TourList :tourList="tourList" v-if="openType == 'tour'" @close="openType = null"> </TourList>
|
|
|
</transition>
|
|
|
<transition name="fade" enter-active-class="animate__animated animate__fadeIn animate__faster" leave-active-class="animate__animated animate__fadeOut animate__faster">
|
|
|
- <LayerMap v-if="openType == 'map'" @close="openType = null"> </LayerMap>
|
|
|
+ <LayerMap v-if="openType == 'map'" :points="points" @close="openType = null"> </LayerMap>
|
|
|
</transition>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -192,6 +192,7 @@ import LayerMap from "./components/layerMap.vue";
|
|
|
import Share from "./components/share.vue";
|
|
|
import { directive } from "vue-awesome-swiper";
|
|
|
import "swiper/css/swiper.css";
|
|
|
+import { mapGetters, mapMutations } from "vuex";
|
|
|
export default {
|
|
|
components: { HotList, TourList, LayerMap, Share },
|
|
|
directives: {
|
|
|
@@ -267,7 +268,11 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
watch: {},
|
|
|
- computed: {},
|
|
|
+ computed: {
|
|
|
+ ...mapGetters({
|
|
|
+ points: "points",
|
|
|
+ }),
|
|
|
+ },
|
|
|
mounted() {
|
|
|
let events = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"];
|
|
|
events.forEach((item, index) => {
|
|
|
@@ -284,12 +289,29 @@ export default {
|
|
|
player.on("flying.ended", () => {
|
|
|
this.mode = player.mode;
|
|
|
});
|
|
|
+ player.on("pano.chosen", (oldPano, newPano) => {
|
|
|
+ let { id } = newPano;
|
|
|
+ this.setPanoOver(id);
|
|
|
+ });
|
|
|
+ this.getPoints();
|
|
|
});
|
|
|
};
|
|
|
initListener();
|
|
|
// this.tourList = window.player ? player?.model?.heroLocations : [];
|
|
|
},
|
|
|
methods: {
|
|
|
+ ...mapMutations(["setData", "setPanoOver"]),
|
|
|
+ getPoints() {
|
|
|
+ // let w = 633,
|
|
|
+ // h = 965;
|
|
|
+ let w = 665,
|
|
|
+ h = 963;
|
|
|
+ let points = manage.initMapPanoPos(w, h);
|
|
|
+
|
|
|
+ if (!this.points) {
|
|
|
+ this.setData({ points });
|
|
|
+ }
|
|
|
+ },
|
|
|
goScene(type) {
|
|
|
player.guider2.go(type);
|
|
|
},
|
|
|
@@ -410,16 +432,16 @@ export default {
|
|
|
if (flag) {
|
|
|
this.musicState = true;
|
|
|
window.manage.switchBgmState(this.musicState);
|
|
|
- document.querySelector("#openMusic").style.display = "none";
|
|
|
- document.querySelector("#closeMusic").style.display = "block";
|
|
|
|
|
|
+ document.querySelector("#openMusic").style.display = "block";
|
|
|
+ document.querySelector("#closeMusic").style.display = "none";
|
|
|
// 手动停止自动导览
|
|
|
window.player.director.stopTour();
|
|
|
} else {
|
|
|
this.musicState = false;
|
|
|
window.manage.switchBgmState(false);
|
|
|
- // document.querySelector("#openMusic").style.display = "block";
|
|
|
- // document.querySelector("#closeMusic").style.display = "none";
|
|
|
+ document.querySelector("#openMusic").style.display = "none";
|
|
|
+ document.querySelector("#closeMusic").style.display = "block";
|
|
|
}
|
|
|
},
|
|
|
// 点击vr
|
|
|
@@ -708,6 +730,9 @@ export default {
|
|
|
margin-left: @icomarginRight;
|
|
|
cursor: pointer;
|
|
|
position: relative;
|
|
|
+ img {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
.tip-box {
|
|
|
display: none;
|
|
|
position: absolute;
|