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.

36 rivejä
856 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. methods: {
  19. gotoDetail(e) {
  20. let couponId = e.currentTarget.dataset.couponid;
  21. let title = e.currentTarget.dataset.title;
  22. let id = e.currentTarget.dataset.id;
  23. let targetAd = e.currentTarget.dataset.targetad;
  24. if (id && targetAd != 7) {
  25. wx.navigateTo({
  26. url: `/pages/coupon/detail/index?couponChannelId=${id}&couponId=${couponId}&title=${title}`,
  27. })
  28. } else if (targetAd == 7) {
  29. wx.navigateTo({
  30. url: `/pages/spellGroup/mySpellGroup/index?couponChannelId=${id}&couponId=${couponId}&title=${title}`,
  31. })
  32. }
  33. }
  34. }
  35. });