|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
<div class="hotspot-detail">
|
|
|
- <!-- <button
|
|
|
+ <button
|
|
|
+ v-show="descForShow"
|
|
|
class="desc"
|
|
|
@click="isShowDesc = true"
|
|
|
>
|
|
@@ -9,7 +10,7 @@
|
|
|
alt="详情"
|
|
|
draggable="false"
|
|
|
>
|
|
|
- </button> -->
|
|
|
+ </button>
|
|
|
|
|
|
<h1 v-html="titleForShow" />
|
|
|
|
|
@@ -168,6 +169,13 @@
|
|
|
<div>{{ typeItem.name + ' ' + typeItem.list.length }}</div>
|
|
|
</button>
|
|
|
</div>
|
|
|
+
|
|
|
+ <MyDesc
|
|
|
+ v-show="isShowDesc"
|
|
|
+ :title="titleForShow"
|
|
|
+ :desc="descForShow"
|
|
|
+ @close="isShowDesc = false"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -175,10 +183,12 @@
|
|
|
import Swiper from 'swiper/swiper-bundle.esm.js'
|
|
|
import 'swiper/swiper-bundle.css'
|
|
|
import Audio from "@/components/Audio.vue"
|
|
|
+import MyDesc from "@/components/HotspotDetailDesc.vue"
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
Audio,
|
|
|
+ MyDesc,
|
|
|
},
|
|
|
props: {
|
|
|
hotspotList: {
|
|
@@ -271,6 +281,7 @@ export default {
|
|
|
targetTypeItem.list.push({
|
|
|
title: /* hotspot.content || */hotspot.title.split('&')[0],
|
|
|
url: mediaItem.src,
|
|
|
+ desc: hotspot.content,
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -283,6 +294,13 @@ export default {
|
|
|
return ''
|
|
|
}
|
|
|
},
|
|
|
+ descForShow() {
|
|
|
+ try {
|
|
|
+ return this.typesForShow[this.currentTabIdx].list[this.currentSlideIdx].desc
|
|
|
+ } catch (error) {
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+ },
|
|
|
typesForShow() {
|
|
|
return this.types.filter((item) => {
|
|
|
return item.list.length
|