闫增涛
2024-02-23 fdfb3ca757ecd6c396632ed276ff354671d3a7e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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,
      });
    },
  },
});