抖音c端
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

68 linhas
1.3 KiB

  1. // components/optimization/optimization.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. businessList: {
  8. type: Array,
  9. value: []
  10. },
  11. businessData: {
  12. type: Array,
  13. value: []
  14. },
  15. },
  16. /**
  17. * 组件的初始数据
  18. */
  19. data: {
  20. classIndex: 0
  21. },
  22. /**
  23. * 组件的方法列表
  24. */
  25. methods: {
  26. goDetail(e) {
  27. let couponChannelId = e.currentTarget.dataset.id
  28. let couponId = e.currentTarget.dataset.couponid
  29. let mallTenantId = e.currentTarget.dataset.malltenantid
  30. const data = {
  31. couponChannelId,
  32. couponId,
  33. mallTenantId
  34. }
  35. // const path = `/pages/coupon/detail/index?couponChannelId=${couponChannelId}&couponId=${couponId}&mallTenantId=${mallTenantId}`
  36. const path = `/pages/coupon/detail/index?params=${JSON.stringify(data)}`
  37. console.log(path, 'path');
  38. tt.navigateTo({
  39. url: path,
  40. })
  41. },
  42. setIndex(e) {
  43. let index = e.currentTarget.dataset.index
  44. let id = e.currentTarget.dataset.id
  45. this.triggerEvent('businessid', id)
  46. this.setData({
  47. classIndex: index
  48. })
  49. },
  50. goLsit() {
  51. tt.navigateTo({
  52. url: '/pages/liveLsit/liveLsit',
  53. success: (res) => {
  54. },
  55. fail: (res) => {
  56. },
  57. });
  58. }
  59. }
  60. })