index.js 463 B

123456789101112131415161718192021222324252627282930313233
  1. // compenents/category/index.js
  2. Component({
  3. options: {
  4. addGlobalClass:true
  5. },
  6. /**
  7. * 组件的属性列表
  8. */
  9. properties: {
  10. list:{
  11. type: Array,
  12. value: [],
  13. },
  14. },
  15. /**
  16. * 组件的初始数据
  17. */
  18. data: {
  19. },
  20. /**
  21. * 组件的方法列表
  22. */
  23. methods: {
  24. toDetail(e) {
  25. wx.navigateTo({
  26. url: '/pages/activity/reviewdetail/reviewdetail?id=' + e.currentTarget.dataset.id,
  27. })
  28. },
  29. }
  30. })