sharecontent.js 557 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // miniprogram/sharecontent.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. nowflag: {
  8. type: Boolean,
  9. value:false
  10. },
  11. },
  12. /**
  13. * 组件的初始数据
  14. */
  15. data: {
  16. },
  17. /**
  18. * 组件的方法列表
  19. */
  20. methods: {
  21. sharetap:function(){
  22. var that=this;
  23. that.triggerEvent("run", '')
  24. },
  25. sharelogtap:function(){
  26. var that=this;
  27. that.triggerEvent("sharealert", '')
  28. },
  29. closesharetap:function(){
  30. this.setData({
  31. nowflag:false
  32. })
  33. }
  34. }
  35. })