deguodaigou/components/classify/navigation/index.js

19 lines
424 B
JavaScript
Raw Normal View History

2019-12-23 02:04:09 +00:00
Component({
properties: {
2019-12-24 08:32:27 +00:00
types: Array,
ids: Number
2019-12-23 02:04:09 +00:00
},
data: {
},
methods: {
select(a) {
// console.log(this.data.a.target.dataset.id)
// console.log(a.target.dataset.id)
this.setData({
2019-12-24 08:32:27 +00:00
ids: a.target.dataset.id
2019-12-23 02:04:09 +00:00
})
this.triggerEvent("select",{id:a.target.dataset.id})
}
}
2019-12-19 03:10:21 +00:00
})