刚刚接触百度智能小程序

index.swan前端页面

	<swiper autoplay="{{autoplay}}" indicator-dots="{{indicator}}" class="banner" current="0"
			indicator-color="rgba(0,0,0,0)" interval="{{interval}}">
			<block s-for="item in items">
				<swiper-item class="imgbanner">
					<image src="{{item.src}}"></image>
				</swiper-item>
			</block>
		</swiper>

index.js逻辑页面

  data: {
        items: [
            {
               src: '/190424/1-1Z4241JR5927.JPG'
            }, {
               src: '/190424/1-1Z4241JR5927.JPG'
            }, {
               src: /190411/1-1Z4111S210549.jpg'
            },{
                src:'/181206/1-1Q2061R11DL.jpg'
            }
        ],
        autoplay:true,
       indicator:true,
       interval:3000,
       
       
    }
这就是百度智能小程序轮播图