|
@@ -10,8 +10,9 @@
|
|
<swiper :style="'width: '+ windowWidth +'px; height:100vh; background-color: #000;'" class="swiper"
|
|
<swiper :style="'width: '+ windowWidth +'px; height:100vh; background-color: #000;'" class="swiper"
|
|
:circular='false' @change="swiperChange" :current="swiperCurrent" :vertical="true" duration="200">
|
|
:circular='false' @change="swiperChange" :current="swiperCurrent" :vertical="true" duration="200">
|
|
<block v-for="content in swiperList" :key="content">
|
|
<block v-for="content in swiperList" :key="content">
|
|
- <swiper-item>
|
|
|
|
- <view :style="'width: '+ windowWidth +'px; height:'+heightxw+'vh;'" v-if="isShowVideo(content)">
|
|
|
|
|
|
+ <swiper-item :key="content">
|
|
|
|
+ <view :style="'width: '+ windowWidth +'px; height:'+heightxw+'vh;'"
|
|
|
|
+ v-if="isShowVideo(content) && shouldRender(content)">
|
|
<!-- @controlstoggle="controlstoggle" -->
|
|
<!-- @controlstoggle="controlstoggle" -->
|
|
<video v-if="isShowVideo(content)" autoplay :key="content" id="myVideo" :controls="controls"
|
|
<video v-if="isShowVideo(content)" autoplay :key="content" id="myVideo" :controls="controls"
|
|
:loop="!isplay" preload="auto" :enable-progress-gesture="true"
|
|
:loop="!isplay" preload="auto" :enable-progress-gesture="true"
|
|
@@ -69,7 +70,7 @@
|
|
<text class="userName">选集</text>
|
|
<text class="userName">选集</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <image v-if="shouldRender(content)"
|
|
|
|
|
|
+ <image v-if="shouldRender(content) && !isShowVideo(content)"
|
|
:style="'width: '+ windowWidth +'px; height:'+heightxw+'vh;'" :src="videoInfo.cover_image">
|
|
:style="'width: '+ windowWidth +'px; height:'+heightxw+'vh;'" :src="videoInfo.cover_image">
|
|
</image>
|
|
</image>
|
|
</swiper-item>
|
|
</swiper-item>
|