list.js 571 B

123456789101112131415161718192021222324252627
  1. Component({
  2. properties: {
  3. list: {
  4. type: Array
  5. },
  6. allot: {
  7. type: Boolean
  8. }
  9. },
  10. options: {
  11. addGlobalClass: true
  12. },
  13. lifetimes: {
  14. attached: function () {
  15. getApp().globalData.Language.getLanguagePackage(this)
  16. }
  17. },
  18. methods: {
  19. distribution({
  20. currentTarget
  21. }) {
  22. wx.navigateTo({
  23. url: `/packageA/publicClue/distribution?data=${JSON.stringify(currentTarget.dataset.item)}`,
  24. })
  25. }
  26. }
  27. })