index.js 412 B

12345678910111213141516171819202122232425262728
  1. var app = getApp()
  2. Component({
  3. properties: {
  4. sharePacket: {
  5. type: Object,
  6. value: {
  7. isState: true,
  8. priceName: ''
  9. }
  10. }
  11. },
  12. data: {},
  13. attached: function () {},
  14. methods: {
  15. closeShare: function () {
  16. this.setData({
  17. 'sharePacket.isState': true
  18. })
  19. },
  20. goShare: function () {
  21. this.triggerEvent('listenerActionSheet')
  22. }
  23. }
  24. })