Commit 703ac7b3 by 程默

fix banner自动播放

parent 731ee9bc
...@@ -18,7 +18,7 @@ Component({ ...@@ -18,7 +18,7 @@ Component({
message: "Hello World", message: "Hello World",
indicatorDots: false, indicatorDots: false,
vertical: false, vertical: false,
autoplay: false, autoplay: true,
interval: 2000, interval: 2000,
duration: 500, duration: 500,
activeIndex: 0, activeIndex: 0,
...@@ -30,7 +30,6 @@ Component({ ...@@ -30,7 +30,6 @@ Component({
console.log("hello world! I am learning 微信小程序"); console.log("hello world! I am learning 微信小程序");
}, },
bannerChange(val) { bannerChange(val) {
console.log(val, "--------30");
this.setData({ activeIndex: val.detail.current }); this.setData({ activeIndex: val.detail.current });
}, },
onClick(data) { 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