|
@@ -14,7 +14,8 @@
|
|
</div>
|
|
</div>
|
|
<div class="explore" @click="() => {
|
|
<div class="explore" @click="() => {
|
|
state = 'product';
|
|
state = 'product';
|
|
- changeType(dataAll.product.list[0])
|
|
|
|
|
|
+ changeType(dataAll.product.list[0]);
|
|
|
|
+ changeBgMusic(true)
|
|
}
|
|
}
|
|
">
|
|
">
|
|
开始探索
|
|
开始探索
|
|
@@ -257,9 +258,12 @@
|
|
<!-- 视频播放页面 -->
|
|
<!-- 视频播放页面 -->
|
|
<div class="openVideo-box" v-if="isOpenVideo">
|
|
<div class="openVideo-box" v-if="isOpenVideo">
|
|
<!-- <video :src="curOpenVideoItem.link" controls></video> -->
|
|
<!-- <video :src="curOpenVideoItem.link" controls></video> -->
|
|
- <videoBox class="videoBox" :src="curOpenVideoItem.link" :name="curOpenVideoItem.name" :baseUrl="baseUrl" />
|
|
|
|
|
|
+ <videoBox @play="changeBgMusic(false)" @pause="changeBgMusic(true)" class="videoBox" :src="curOpenVideoItem.link" :name="curOpenVideoItem.name" :baseUrl="baseUrl" />
|
|
<!-- <div>{{ curOpenVideoItem.name }}</div> -->
|
|
<!-- <div>{{ curOpenVideoItem.name }}</div> -->
|
|
- <img @click="isOpenVideo = false" src="@/assets/images/home/close.png" alt="">
|
|
|
|
|
|
+ <img @click="() => {
|
|
|
|
+ isOpenVideo = false
|
|
|
|
+ changeBgMusic(true)
|
|
|
|
+ }" src="@/assets/images/home/close.png" alt="">
|
|
</div>
|
|
</div>
|
|
<!-- 村庄标签 -->
|
|
<!-- 村庄标签 -->
|
|
<div class="v-labels info" :class="{ active: item.id == activeStep }" v-show="state == 'info'"
|
|
<div class="v-labels info" :class="{ active: item.id == activeStep }" v-show="state == 'info'"
|
|
@@ -400,6 +404,15 @@ export default {
|
|
this.getsceneScrollData();
|
|
this.getsceneScrollData();
|
|
}, 500);
|
|
}, 500);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if(val == 'route'){
|
|
|
|
+ this.changeBgMusic(false)
|
|
|
|
+ }else{
|
|
|
|
+ const bgMusicDom = document.getElementById('bg-music')
|
|
|
|
+ if(bgMusicDom.paused){
|
|
|
|
+ this.changeBgMusic(true)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
isEndReached(newValue) {
|
|
isEndReached(newValue) {
|
|
@@ -639,6 +652,14 @@ export default {
|
|
|
|
|
|
// this.changeDimension('3d')
|
|
// this.changeDimension('3d')
|
|
},
|
|
},
|
|
|
|
+ changeBgMusic(isPlay){
|
|
|
|
+ const bgMusicDom = document.getElementById("bg-music");
|
|
|
|
+ if(isPlay && bgMusicDom) {
|
|
|
|
+ bgMusicDom.play()
|
|
|
|
+ }else if(!isPlay && bgMusicDom){
|
|
|
|
+ bgMusicDom.pause()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
// this.getInitData();
|
|
// this.getInitData();
|
|
@@ -650,6 +671,7 @@ export default {
|
|
this.debounce(this.scrollFn, 200, true),
|
|
this.debounce(this.scrollFn, 200, true),
|
|
true
|
|
true
|
|
);
|
|
);
|
|
|
|
+ window.changeBgMusic = this.changeBgMusic
|
|
|
|
|
|
this.initVideos()
|
|
this.initVideos()
|
|
},
|
|
},
|
|
@@ -1456,11 +1478,10 @@ export default {
|
|
|
|
|
|
.result-html {
|
|
.result-html {
|
|
margin-top: 15px;
|
|
margin-top: 15px;
|
|
-
|
|
|
|
img {
|
|
img {
|
|
|
|
+ width: 100%;
|
|
margin: 15px 0;
|
|
margin: 15px 0;
|
|
}
|
|
}
|
|
-
|
|
|
|
p {
|
|
p {
|
|
color: #fff;
|
|
color: #fff;
|
|
}
|
|
}
|