使用滑块视图容器swiper和swiper-item可以制作滚动屏,代码如下:
wxml:
<swiper indicator-dots indicator-color="rgba(255,255,255,0.5)" indicator-active-color="white" autoplay interval="3000">
<swiper-item>
<image src=""fakepath://展厅绘制.jpg"/>
</swiper-item>
<swiper-item>
<image src=""fakepath://展会名片.jpg"/>
</swiper-item>
<swiper-item>
<image src=""fakepath://签到.jpg" />
</swiper-item>
<swiper-item>
<image src="fakepath://抽奖.jpg" />
</swiper-item>
<swiper-item>
<image src="fakepath://礼品领取.jpg"/>
</swip