invite-modal-card.js 730 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // components/invite-modal-card/invite-modal-card.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. house: Object,
  8. customer: Object
  9. },
  10. /**
  11. * 组件的初始数据
  12. */
  13. data: {
  14. },
  15. /**
  16. * 组件的方法列表
  17. */
  18. methods: {
  19. cancle () {
  20. this.triggerEvent('cancle')
  21. },
  22. submit () {
  23. wx.showToast({
  24. title: '发送成功',
  25. success: () => {
  26. this.triggerEvent('submit', this.input)
  27. setTimeout(() => {
  28. wx.switchTab({
  29. url: '/pages/chat-list/chat-list',
  30. })
  31. }, 1500)
  32. }
  33. })
  34. },
  35. bindinput (e) {
  36. const { value } = e.detail
  37. this.input = value
  38. }
  39. }
  40. })