client-item.js 729 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // components/house-item/house-item.js
  2. const app = getApp();
  3. Component({
  4. /**
  5. * 组件的属性列表
  6. */
  7. properties: {
  8. client: Object
  9. },
  10. /**
  11. * 组件的初始数据
  12. */
  13. data: {
  14. },
  15. /**
  16. * 组件的方法列表
  17. */
  18. methods: {
  19. toDetail () {
  20. wx.navigateTo({
  21. url: `/pages/client-detail/client-detail?agency_user_id=${this.properties.client.agency_user_id}&user_id=${this.properties.client.user_id}`
  22. })
  23. },
  24. makePhoneCall(){
  25. app.makePhoneCall(this.properties.client.user_phone);
  26. },
  27. toChat () {
  28. wx.navigateTo({
  29. url: `/pages/chat/chat?toId=${this.properties.client.user_id}&toName=${this.properties.client.user_name}`,
  30. })
  31. }
  32. }
  33. })