client-item.js 815 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. url: `/pages/client-detail/client-detail?id=${this.properties.client.id}`
  23. })
  24. },
  25. makePhoneCall(){
  26. app.makePhoneCall(this.properties.client.user_phone);
  27. },
  28. toChat () {
  29. wx.navigateTo({
  30. url: `/pages/chat/chat?toId=${this.properties.client.user_id}&toName=${this.properties.client.user_name}`,
  31. })
  32. }
  33. }
  34. })