轮播图片

更多>>  
一下代码复制到.wxml文件中
<swiper indicator-dots="{{indicatorDots}}"
autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
<block wx:for="{{imgUrls}}">
<swiper-item>
<image src="{{item}}" class="slide-image" width="100%" height="100%"/>
</swiper-item>
</block>
</swiper>
一下代码复制到.js文件中

Page({
data: {
imgUrls: [
'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg',
'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg',
'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg'
],
indicatorDots: true,/* 是否显示面板指示点*/
autoplay: true,
interval: 5000,
duration: 1000
},

})

轮播项目截图
轮播项目截图
轮播项目截图