avatar.js 373 B

1234567891011121314151617181920212223242526272829
  1. // myComponents/avatar/avatar.js
  2. const app = getApp()
  3. Component({
  4. /**
  5. * 组件的属性列表
  6. */
  7. properties: {
  8. },
  9. /**
  10. * 组件的初始数据
  11. */
  12. data: {
  13. phone:app.globalData.phone,
  14. },
  15. /**
  16. * 组件的方法列表
  17. */
  18. methods: {
  19. makePhoneCall(){
  20. wx.makePhoneCall({
  21. phoneNumber: this.data.phone
  22. })
  23. },
  24. }
  25. })