C端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
594 B

  1. // pages/index/sw/index.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. paramAtoB: String,
  8. from: String,
  9. data: {
  10. value: {},
  11. type: Object
  12. },
  13. },
  14. /**
  15. * 组件的初始数据
  16. */
  17. data: {
  18. isshare: true,
  19. },
  20. methods: {
  21. /**
  22. * 隐藏分享弹框
  23. */
  24. hidemodal: function() {
  25. this.setData({
  26. isshare: false,
  27. })
  28. },
  29. /**
  30. * 显示分享海报
  31. */
  32. showPoster: function() {
  33. //跳转到海报生成页
  34. wx.navigateTo({
  35. url: `/pages/canvas/index?merchantId=${this.data.id}`
  36. })
  37. },
  38. }
  39. });