市北人才赋能平台 --小程序端
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.

43 lines
810 B

4 years ago
// pages/topics/activity/index.js
Component({
/**
* 组件的属性列表
*/
properties: {
4 years ago
list:{
type:Array,
value:[]
}
4 years ago
},
/**
* 组件的初始数据
*/
data: {
4 years ago
},
attached: function () {
console.log("interactive页面")
console.log(this.properties.list)
4 years ago
},
/**
* 组件的方法列表
*/
methods: {
4 years ago
clickListItem(e) {
4 years ago
// console.log(e)
const activityId = e.currentTarget.dataset.id;
const index = e.currentTarget.dataset.index;
this.triggerEvent('quitEvent',{id:activityId,index:index});
4 years ago
wx.navigateTo({
url: `/pages/topics/activity/activityDetail/index?activityId=${activityId}`,
})
},
deleteTopic(e){
this.triggerEvent('deleteTopic', { id: e.detail.id })
4 years ago
},
4 years ago
}
})