市北党建引领小程序初始化
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

23 lines
425 B

Component({
data: {
currentIndex: 0
},
properties: {
projectList: {
type: Array,
value: []
}
},
methods: {
// 手动滑动swiper
swiperChange (e) {
this.setData({
currentIndex: e.detail.current
})
},
// 跳转到项目详情
navigatetoItemDetail (e) {
this.triggerEvent('navigatetoItemDetail', { itemId: e.currentTarget.dataset.id})
}
}
})