deguodaigou/components/classify/navigation/index.js
2019-12-19 11:10:21 +08:00

17 lines
332 B
JavaScript

Component({
properties: {
types: Array
},
data: {
id: 0
},
methods: {
select(a) {
// console.log(this.data.a.target.dataset.id)
// console.log(a.target.dataset.id)
this.setData({
id: a.target.dataset.id
})
}
}
})