caixi.js 628 Bytes
// components/reserve/caixi.js
import util from '../../../utils/util';
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    multiArray:{
      type:Array,
      value:[],
    },
    multiIndex:{
      type:Array,
      value:[],
    },
  },

  /**
   * 组件的初始数据
   */
  data: {
    hidden:true
  },

  /**
   * 组件的方法列表
   */
  methods: {
    hide(){
      this.setData({
        hidden:true,
      })
    },
    active(e){
      this.triggerEvent('active',util.attr(e,'index'));
      this.hide();
    },
    show(){
      this.setData({
        hidden:false,
      })
    },
  }
})