Files
persionalBrand/packages/template-acheng-campus-food/miniapp/components/templates/acheng-home/acheng-home.js
T

23 lines
522 B
JavaScript

Component({
properties: {
brand: { type: Object, value: {} },
presentation: { type: Object, value: {} },
trustItems: { type: Array, value: [] },
offerings: { type: Array, value: [] },
},
methods: {
openOffering(e) {
this.triggerEvent("select", { id: e.currentTarget.dataset.id });
},
openInquiry() {
this.triggerEvent("inquiry");
},
openOfferings() {
this.triggerEvent("offerings");
},
openService() {
this.triggerEvent("service");
},
},
});