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