share.js 645 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // compontents/share/share.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. },
  8. /**
  9. * 组件的初始数据
  10. */
  11. data: {
  12. <<<<<<< HEAD
  13. flag: true,
  14. postId: '',
  15. =======
  16. >>>>>>> d311ba85855d9833139d43ef0f7038e08d5d9599
  17. },
  18. /**
  19. * 组件的方法列表
  20. */
  21. methods: {
  22. <<<<<<< HEAD
  23. //隐藏分享框
  24. hidePopup: function () {
  25. this.setData({
  26. flag: !this.data.flag
  27. })
  28. },
  29. //展示分享框
  30. showPopup (postId) {
  31. this.setData({
  32. flag: !this.data.flag,
  33. postId
  34. })
  35. },
  36. }
  37. =======
  38. }
  39. >>>>>>> d311ba85855d9833139d43ef0f7038e08d5d9599
  40. })