123456789101112131415161718192021222324252627 |
- //index.js
- //获取应用实例
- const app = getApp()
- Page({
- data: {
- imgUrls:[
- "/assets/carousel/1.jpg",
- "/assets/carousel/2.jpg",
- "/assets/carousel/3.jpg"
- ],
- indicatorDots: false,
- autoplay: true,
- interval: 4000,
- duration: 800,
- },
- swiperChange(e) {
- const that = this;
- that.setData({
- swiperIndex: e.detail.current,
- })
- },
- onLoad: function(){
- },
- onShareAppMessage: function(){
- }
- })
|