使用swiper预览轮播图不显示,开发工具上正常,原因是什么呢?
<swiper class"screen-swiper square-dot" indicator-dots="true" autoplay="true" interval="3000" duration="500">
<block wx:for="{{swiperList}}" wx:key>
<swiper-item>
<image src="{{item}}" mode="aspectFill"></image>
</swiper-item>
</block>
</swiper>
.screen-swiper {
width:100%
height:276rpx
}
.screen-swiper image{
width:100%;height:100%
}
3 回复