index.js 517 B

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