list.js 467 B

12345678910111213141516171819202122
  1. // packageA/activity/modules/list/index.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. list: Array,
  8. allot: Boolean
  9. },
  10. options: {
  11. addGlobalClass: true
  12. },
  13. methods: {
  14. distribution({
  15. currentTarget
  16. }) {
  17. wx.navigateTo({
  18. url: `/packageA/publicClue/distribution?data=${JSON.stringify(currentTarget.dataset.item)}`,
  19. })
  20. }
  21. }
  22. })