list.js 589 B

1234567891011121314151617181920212223242526272829303132333435
  1. // pages/threadedTree/modules/list/list.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. list: {
  8. type: Array
  9. },
  10. tagColor: {
  11. type: String,
  12. value: "#FA8C16"
  13. }
  14. },
  15. options: {
  16. addGlobalClass: true
  17. },
  18. /**
  19. * 组件的初始数据
  20. */
  21. data: {
  22. },
  23. /**
  24. * 组件的方法列表
  25. */
  26. methods: {
  27. callOut(e) {
  28. wx.makePhoneCall({
  29. phoneNumber: e.currentTarget.dataset.phonenumber
  30. })
  31. },
  32. }
  33. })