C端小程序
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

36 lignes
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. });