<swiper
indicator-dots="{{indicatorDots}}"
autoplay="{{autoplay}}"
interval="{{interval}}"
duration="{{duration}}"
current="{{current}}"
bindchange="swiperChange">
<block wx:for="{{imgUrls}}" wx:key="{{index}}">
<swiper-item wx:if="{{item.type == 2}}">
<video autoplay="{{true}}" objectFit="{{cover}}" enable-progress-gesture="{{false}}" custom-cache="{{false}}" controls="{{true}}" src="{{item.src}}" style="width:100%;height:100%;" />
swiper-item>
<swiper-item wx:else>
<image src="{{item.src}}" data-src="{{item.src}}" class="slide-image" mode="scaleToFill" bind:tap="previewImage"/>
swiper-item>
block>
swiper>
模拟器可以滑动
真机预览不能滑动
解决了吗?我这边也是这问题,头炸了
你好,文档提及的tip了解下:
文档链接:https://developers.weixin.qq.com/miniprogram/dev/component/video.html