productList.js 698 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // pages/promotional/modules/productList.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. total: {
  8. type: String,
  9. value: "0"
  10. },
  11. list: {
  12. type: Array,
  13. value: []
  14. }
  15. },
  16. options: {
  17. addGlobalClass: true
  18. },
  19. /**
  20. * 组件的初始数据
  21. */
  22. data: {},
  23. /**
  24. * 组件的方法列表
  25. */
  26. methods: {
  27. toDetail(e) {
  28. const {
  29. item
  30. } = e.currentTarget.dataset;
  31. wx.navigateTo({
  32. url: `/pages/promotional/details?id=${item.sat_sharematerialid}`,
  33. })
  34. }
  35. }
  36. })