Component({ data: { currentIndex: 0 }, properties: { bannerList: { type: Array, value: [] } }, lifetimes: { }, pageLifetimes: { }, methods: { swiperChange (e) { if (e.detail.source === 'touch') { this.setData({ currentIndex: e.detail.current }) } }, navigatetoBannerDetail (e) { const { id, url, newsflag } = e.currentTarget.dataset this.triggerEvent('navigatetoBannerDetail', {id, url, newsFlag: newsflag} ) } } })