From b7adbfee179f391fbbf42c5604e0ae3857f69801 Mon Sep 17 00:00:00 2001 From: DESKTOP-C76OEIA\DELL Date: Tue, 11 Feb 2020 11:22:51 +0800 Subject: [PATCH] 自定义模板, swiper修改成能自动播放滚动 --- components/diy_advertising/diy_advertising.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/diy_advertising/diy_advertising.js b/components/diy_advertising/diy_advertising.js index 2ae1a91..a2f3aa1 100644 --- a/components/diy_advertising/diy_advertising.js +++ b/components/diy_advertising/diy_advertising.js @@ -12,8 +12,8 @@ Component({ yc:false, btn: 1, ad:false, - autoplay:false, - interval:5000, + autoplay:true, + interval:3000, duration:1000, someData: {}, max_sw_height:null, @@ -36,4 +36,4 @@ Component({ if (this.data.max_sw_height < viewHeight) this.setData({ max_sw_height: viewHeight }); } } -}) \ No newline at end of file +}) -- libgit2 0.21.4