popup.js 854 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // component/popup/popup.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. typeOf: {
  8. type: "String",
  9. value: ''
  10. },
  11. title: {
  12. type: "String",
  13. value: ''
  14. },
  15. headTextOne: {
  16. type: "String",
  17. value: ''
  18. },
  19. headTextTwo: {
  20. type: "String",
  21. value: ''
  22. },
  23. content: {
  24. type: "Array",
  25. value: ''
  26. },
  27. btnContent: {
  28. type: "String",
  29. value: ''
  30. }
  31. },
  32. /**
  33. * 组件的初始数据
  34. */
  35. data: {
  36. flag: true
  37. },
  38. /**
  39. * 组件的方法列表
  40. */
  41. methods: {
  42. touchMove: function () {
  43. return false;
  44. },
  45. close: function () {
  46. this.setData({
  47. flag: !this.data.flag
  48. })
  49. this.triggerEvent('Close', {})
  50. },
  51. launchGroup: function () {
  52. this.triggerEvent('Group', {})
  53. }
  54. }
  55. })