<template>
<view class="swiperWrap" :style="{height:h+'rpx'}">
<video id="myVideo" v-if="videoUrl.length > 0" v-show="isPlay" @pause="pauseVideo" :src="videoUrl[0].path" :enable-progress-gesture="false" class="img-box"></video>
<swiper class="swiper" v-if="list.length > 0 && !isPlay" :style="{height:h+'rpx'}" :indicator-dots="indicatorDots">
<swiper-item v-if="videoUrl.length > 0">
<image :src="primaryPicUrl[0].path" @click="playVideo" mode="aspectFill" class="img-box"></image>
</swiper-item>
<swiper-item v-for="(item,index) in list" :key="index">
<image :src="item.path" mode="aspectFill" class="img-box"></image>
</swiper-item>
</swiper>
</view>
</template>
前端小bug
- 发布:2020-11-10 16:44
- 更新:2020-11-10 16:44
- 阅读:778
0 个回复