博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
小程序-轮播图案例
阅读量:6889 次
发布时间:2019-06-27

本文共 600 字,大约阅读时间需要 2 分钟。

为了方便我以后项目的使用

wxml:

autoplay="true"自动播放

circular="true"   采用协接滑动

indicator-dots="true"   显示圆点

indicator-color="#ff0000" 圆点颜色红色

indicator-active-color="#fff"   圆点激活白色

<swiper class='IMGbox' autoplay="true" circular="true"indicator-dots="true"indicator-color="#ff0000"indicator-active-color="#fff">
     <block wx:for="{
{swiper}}" wx:key="{
{swiper}}">
           <swiper-item>
                 <image src='../images/banner{
{item.index}}.jpg'></image>
           </swiper-item>
      </block>
</swiper>
 
js:
Page({
     data: {
         swiper: [ { index: 1 },{ index: 2 },{ index: 3 },{ index: 4 },{ index: 5 }]
      },
})
 

转载于:https://www.cnblogs.com/liuqingxia/p/8566681.html

你可能感兴趣的文章
使用Node.js搭建微信支付后台(二)
查看>>
序列化与反序列化
查看>>
debian下安装openldap
查看>>
基于域的无线安全认证方案
查看>>
百度开源高性能高可用分布式文件系统BFS
查看>>
Android平板开发永久实现全屏的方法
查看>>
windows远程连接失败的原因
查看>>
我的友情链接
查看>>
JSCH会大量使用服务器内存吗?会
查看>>
2017年围绕自动驾驶会出现新一轮的淘金热,这是真的吗?
查看>>
Centos下邮件服务器(postfix)的配置(一)
查看>>
深夜,想到今天学的linux内容,太值了
查看>>
Thread类常用方法
查看>>
/etc/resolv.conf中内容被清空的解决办法
查看>>
Yarn大体框架和工作流程研究
查看>>
vue学习笔记(一)
查看>>
微软专家推荐11个Chrome 插件
查看>>
三天学会HTML5——SVG和Canvas的使用
查看>>
Azure 部署 Asp.NET Core Web App
查看>>
MySql基本操作(二)
查看>>