Commit b7adbfee179f391fbbf42c5604e0ae3857f69801

Authored by 后端研发-倪永富
1 parent ccd6c2f4

自定义模板, swiper修改成能自动播放滚动

components/diy_advertising/diy_advertising.js
@@ -12,8 +12,8 @@ Component({ @@ -12,8 +12,8 @@ Component({
12 yc:false, 12 yc:false,
13 btn: 1, 13 btn: 1,
14 ad:false, 14 ad:false,
15 - autoplay:false,  
16 - interval:5000, 15 + autoplay:true,
  16 + interval:3000,
17 duration:1000, 17 duration:1000,
18 someData: {}, 18 someData: {},
19 max_sw_height:null, 19 max_sw_height:null,
@@ -36,4 +36,4 @@ Component({ @@ -36,4 +36,4 @@ Component({
36 if (this.data.max_sw_height < viewHeight) this.setData({ max_sw_height: viewHeight }); 36 if (this.data.max_sw_height < viewHeight) this.setData({ max_sw_height: viewHeight });
37 } 37 }
38 } 38 }
39 -})  
40 \ No newline at end of file 39 \ No newline at end of file
  40 +})