1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
epp/mini-program/pages/goods/details/components/promotion-popup/index.js

36 lines
523 B
JavaScript
Raw Normal View History

Component({
options: {
multipleSlots: true,
},
properties: {
list: Array,
title: {
type: String,
value: '促销说明',
},
show: {
type: Boolean,
},
},
// data: {
// list: [],
// },
methods: {
change(e) {
const { index } = e.currentTarget.dataset;
this.triggerEvent('promotionChange', {
index,
});
},
closePromotionPopup() {
this.triggerEvent('closePromotionPopup', {
show: false,
});
},
},
});