2026-04-01 15:18:35 +08:00
|
|
|
Component({
|
|
|
|
|
properties: {
|
|
|
|
|
item: {
|
|
|
|
|
type: Object,
|
|
|
|
|
value: {}
|
|
|
|
|
},
|
|
|
|
|
showMeta: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
value: true
|
|
|
|
|
},
|
|
|
|
|
showStats: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
value: false
|
2026-04-20 16:02:57 +08:00
|
|
|
},
|
|
|
|
|
showQuickAdd: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
value: false
|
|
|
|
|
},
|
|
|
|
|
inCart: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
value: false
|
2026-04-01 15:18:35 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
handleTap() {
|
|
|
|
|
this.triggerEvent('select', this.properties.item)
|
2026-04-20 16:02:57 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleQuickAdd() {
|
|
|
|
|
this.triggerEvent('quickadd', this.properties.item)
|
2026-04-01 15:18:35 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|