index.js 638 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. const app = getApp();
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. title: {
  8. type: String,
  9. value: '',
  10. },
  11. address: {
  12. type: String,
  13. value: '',
  14. },
  15. mobile: {
  16. type: String,
  17. value: '',
  18. }
  19. },
  20. /**
  21. * 组件的初始数据
  22. */
  23. data: {
  24. },
  25. /**
  26. * 组件的方法列表
  27. */
  28. methods: {
  29. phonecall(){
  30. if (this.data.mobile == '') {
  31. app.msg('暂无联系方式!');
  32. return false;
  33. }
  34. wx.makePhoneCall({
  35. phoneNumber: this.data.mobile
  36. })
  37. },
  38. nav() {
  39. this.triggerEvent('nav');
  40. }
  41. }
  42. })