// components/invite-modal-card/invite-modal-card.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    house: Object,
    customer: Object
  },

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

  },

  /**
   * 组件的方法列表
   */
  methods: {
    cancle () {
      this.triggerEvent('cancle')
    },
    submit () {
      wx.showToast({
        title: '发送成功',
        success: () => {
          this.triggerEvent('submit', this.input)
          setTimeout(() => {
            wx.switchTab({
              url: '/pages/chat-list/chat-list',
            })
          }, 1500)
        }
      })
    },
    bindinput (e) {
      const { value } = e.detail
      this.input = value
    }
  }
})
