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

57 line
1.1 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. tt.navigateTo({
  31. url: `/pages/coupon/detail/index?couponChannelId=${couponChannelId}&couponId=${couponId}&mallTenantId=${mallTenantId}`,
  32. })
  33. },
  34. setIndex(e) {
  35. let index = e.currentTarget.dataset.index
  36. let id = e.currentTarget.dataset.id
  37. this.triggerEvent('businessid', id)
  38. this.setData({
  39. classIndex: index
  40. })
  41. },
  42. goLsit() {
  43. tt.navigateTo({
  44. url: '/pages/liveLsit/liveLsit',
  45. success: (res) => {
  46. },
  47. fail: (res) => {
  48. },
  49. });
  50. }
  51. }
  52. })