[摘要]微信小程序 开发之滑块视图容器详解实现效果图:实现起来特别简单,看看代码是怎么写的呢:<swiper class="swiper" indicator-dots="...
微信小程序 开发之滑块视图容器详解实现效果图:
实现起来特别简单,看看代码是怎么写的呢:
<swiper class="swiper" indicator-dots="pw_indcatorDots" autoplay="pw_autoPlay" interval="pw_interval" duration="pw_duration">
<block wx:for="pw_imgUrls" wx:for-index="index">
<swiper-item>
<image src="pw_item" class="side-img"></image>
</swiper-item>
</block>
</swiper>