index.js 724 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // pages/portal/annunciateList/index.js
  2. Component({
  3. options: {
  4. addGlobalClass: true
  5. },
  6. /**
  7. * 组件的属性列表
  8. */
  9. properties: {
  10. list: {
  11. type: Array
  12. }
  13. },
  14. /**
  15. * 组件的初始数据
  16. */
  17. data: {
  18. },
  19. /**
  20. * 组件的方法列表
  21. */
  22. methods: {
  23. /* 跳转供需详情 */
  24. toDetails(e) {
  25. const {
  26. index
  27. } = e.currentTarget.dataset;
  28. const data = this.data.list[index];
  29. wx.navigateTo({
  30. url: '/pages/portal/details?tagentsid=' + data.tagentsid + '&tsupplyanddemandid=' + data.tsupplyanddemandid,
  31. })
  32. },
  33. }
  34. })