discount.js 500 Bytes
// components/reserve/discount.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    seller:{
      type:Object,
      value:{}
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    display:false,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    hide(){
      this.setData({
        display:false,
      })
      this.triggerEvent('hide')
    },
    show(){
      this.setData({
        display:true,
      })
      this.triggerEvent('show')
    },
  }
})