|
@@ -1,5 +1,7 @@
|
|
<template>
|
|
<template>
|
|
- <div class="hotspot-home">
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="hotspot-home"
|
|
|
|
+ >
|
|
<button
|
|
<button
|
|
class="close"
|
|
class="close"
|
|
@click="onClickClose"
|
|
@click="onClickClose"
|
|
@@ -66,7 +68,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div
|
|
<div
|
|
- v-show="isShowImages"
|
|
|
|
|
|
+ v-if="isShowImages"
|
|
class="swiper-wrapper-mine image-wrap"
|
|
class="swiper-wrapper-mine image-wrap"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
@@ -115,7 +117,10 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="title-wrap">
|
|
|
|
|
|
+ <div
|
|
|
|
+ v-if="!isShowVideoList"
|
|
|
|
+ class="title-wrap"
|
|
|
|
+ >
|
|
<h1
|
|
<h1
|
|
:title="hotspotData.title"
|
|
:title="hotspotData.title"
|
|
v-html="hotspotData.title"
|
|
v-html="hotspotData.title"
|
|
@@ -123,19 +128,29 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<p
|
|
<p
|
|
|
|
+ v-if="!isShowVideoList"
|
|
class="desc"
|
|
class="desc"
|
|
v-html="descForShow"
|
|
v-html="descForShow"
|
|
/>
|
|
/>
|
|
|
|
+
|
|
|
|
+ <VideoListMobile
|
|
|
|
+ v-if="isShowVideoList"
|
|
|
|
+ class="video-list"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import Swiper from 'swiper/swiper-bundle.esm.js'
|
|
import Swiper from 'swiper/swiper-bundle.esm.js'
|
|
import 'swiper/swiper-bundle.css'
|
|
import 'swiper/swiper-bundle.css'
|
|
|
|
+import VideoListMobile from "@/components/VideoListMobile.vue"
|
|
|
|
|
|
// import browser from "@/utils/browser";
|
|
// import browser from "@/utils/browser";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
+ components: {
|
|
|
|
+ VideoListMobile,
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
hotspotData: {}, // 热点数据
|
|
hotspotData: {}, // 热点数据
|
|
@@ -151,8 +166,17 @@ export default {
|
|
return this.hotspotData.imagesDesc[this.currentSlideIdx] || this.hotspotData.content
|
|
return this.hotspotData.imagesDesc[this.currentSlideIdx] || this.hotspotData.content
|
|
} else if (this.isShowVideos) {
|
|
} else if (this.isShowVideos) {
|
|
return this.hotspotData.videosDesc[this.currentSlideIdx] || this.hotspotData.content
|
|
return this.hotspotData.videosDesc[this.currentSlideIdx] || this.hotspotData.content
|
|
- } else {
|
|
|
|
|
|
+ } else if (this.isShowVideoList) {
|
|
return ''
|
|
return ''
|
|
|
|
+ } else {
|
|
|
|
+ return this.hotspotData.content
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ isShowVideoList() {
|
|
|
|
+ if (this.hotspotData.content === 'video list') {
|
|
|
|
+ return true
|
|
|
|
+ } else {
|
|
|
|
+ return false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -240,12 +264,14 @@ export default {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
background: rgba(0, 0, 0, 0.8);
|
|
|
|
+ position: relative;
|
|
> button.close {
|
|
> button.close {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 15px;
|
|
top: 15px;
|
|
right: 15px;
|
|
right: 15px;
|
|
width: 28px;
|
|
width: 28px;
|
|
height: 28px;
|
|
height: 28px;
|
|
|
|
+ z-index: 1;
|
|
> img {
|
|
> img {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
@@ -361,6 +387,15 @@ export default {
|
|
line-height: 19px;
|
|
line-height: 19px;
|
|
padding-right: 10px;
|
|
padding-right: 10px;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ > .video-list {
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;
|
|
|
|
+ right: 0;
|
|
|
|
+ top: 0;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ padding: 50px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/deep/.swiper-pagination-bullet {
|
|
/deep/.swiper-pagination-bullet {
|