Commit 703ac7b3 by 程默

fix banner自动播放

parent 731ee9bc
......@@ -18,7 +18,7 @@ Component({
message: "Hello World",
indicatorDots: false,
vertical: false,
autoplay: false,
autoplay: true,
interval: 2000,
duration: 500,
activeIndex: 0,
......@@ -30,7 +30,6 @@ Component({
console.log("hello world! I am learning 微信小程序");
},
bannerChange(val) {
console.log(val, "--------30");
this.setData({ activeIndex: val.detail.current });
},
onClick(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment