123456789101112131415161718192021222324252627 |
- var app = getApp();
- Component({
- properties: {
- imgUrls: {
- type: Object,
- value: []
- }
- },
- data: {
- circular: true,
- autoplay: true,
- interval: 3000,
- duration: 500,
- currentSwiper: 0
- },
- attached: function () {
- console.log(this.data.imgUrls);
- },
- methods: {
- swiperChange: function (e) {
- this.setData({
- currentSwiper: e.detail.current
- })
- },
- }
- })
|