servicerList.js 533 Bytes
// components/servicerList/servicerList.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    data:{
      type: Array
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    showServicer(e) {
      let employee = e.currentTarget.dataset.item
      this.triggerEvent('showServicer', employee)
    },
    choiceServicer(e) {
      let serviceInfo = e.currentTarget.dataset.item
      this.triggerEvent('choiceServicer', serviceInfo)
    }
  }
})