|
@@ -106,16 +106,14 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="swiper-pagination">
|
|
|
- <!-- <span class="cur">{{ currentSlideIdx + 1 }}</span> / <span>{{ typesForShow[currentTabIdx].list.length }}</span> -->
|
|
|
- </div>
|
|
|
+ <div class="swiper-pagination" />
|
|
|
<div class="swiper-button-prev" />
|
|
|
<div class="swiper-button-next" />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <!-- <div
|
|
|
- v-if="typesForShow[currentTabIdx].name === '模型'"
|
|
|
+ <div
|
|
|
+ v-if="isShowModels"
|
|
|
class="swiper-wrapper-mine model-wrap"
|
|
|
>
|
|
|
<div
|
|
@@ -125,20 +123,18 @@
|
|
|
class="swiper-wrapper"
|
|
|
>
|
|
|
<iframe
|
|
|
- v-for="(item, index) in typesForShow[currentTabIdx].list"
|
|
|
+ v-for="(item, index) in hotspotData.model"
|
|
|
:key="index"
|
|
|
- :src="item.url"
|
|
|
+ :src="item"
|
|
|
frameborder="0"
|
|
|
class="swiper-slide"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="swiper-pagination">
|
|
|
- <span class="cur">{{ currentSlideIdx + 1 }}</span> / <span>{{ typesForShow[currentTabIdx].list.length }}</span>
|
|
|
- </div>
|
|
|
+ <div class="swiper-pagination" />
|
|
|
<div class="swiper-button-prev" />
|
|
|
<div class="swiper-button-next" />
|
|
|
</div>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
|
|
|
<div
|
|
|
v-if="isShowAudios"
|
|
@@ -261,6 +257,7 @@ export default {
|
|
|
|
|
|
isShowImages: false,
|
|
|
isShowVideos: false,
|
|
|
+ isShowModels: false,
|
|
|
isShowAudios: false,
|
|
|
|
|
|
currentSlideIdx: 0,
|
|
@@ -362,6 +359,8 @@ export default {
|
|
|
this.isShowImages = true
|
|
|
} else if (this.hotspotData.video && this.hotspotData.video.length) {
|
|
|
this.isShowVideos = true
|
|
|
+ } else if (this.hotspotData.model && this.hotspotData.model.length) {
|
|
|
+ this.isShowModels = true
|
|
|
} else if (this.hotspotData.backgroundMusic) {
|
|
|
this.isShowAudios = true
|
|
|
this.hotspotData.audio = [{ url: this.hotspotData.backgroundMusic }]
|