抖音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.

index.js 1.2 KiB

il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. const app = getApp()
  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. mouldType: 0,
  19. },
  20. attached: function () {
  21. // 在组件实例进入页面节点树时执行
  22. if (app.globalData.mouldType) {
  23. this.setData({
  24. mouldType: app.globalData.mouldType
  25. })
  26. }
  27. },
  28. methods: {
  29. gotoDetail(e) {
  30. console.log(e, 'e');
  31. let couponId = e.currentTarget.dataset.couponid;
  32. let title = e.currentTarget.dataset.title;
  33. let id = e.currentTarget.dataset.id;
  34. let targetAd = e.currentTarget.dataset.targetad;
  35. let mallTenantId = e.currentTarget.dataset.malltenantid;
  36. if (id && targetAd != 7) {
  37. tt.navigateTo({
  38. url: `/pages/coupon/detail/index?couponChannelId=${id}&couponId=${couponId}&title=${title}&mallTenantId=${mallTenantId}`,
  39. })
  40. } else if (targetAd == 7) {
  41. tt.navigateTo({
  42. url: `/pages/spellGroup/mySpellGroup/index?couponChannelId=${id}&couponId=${couponId}&title=${title}`,
  43. })
  44. }
  45. }
  46. }
  47. });