index.js 948 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. const app = require("/vant-aliapp/__antmove/component/classSubdirectory/app.js");
  2. const _my = require("../../__antmove/api/index.js")(my);
  3. const wx = _my; // components/tail_tip/index.js
  4. const myApp = getApp();
  5. Component({
  6. /**
  7. * 组件的属性列表
  8. */
  9. properties: {
  10. item: {
  11. type: Object,
  12. value: null
  13. },
  14. type: {
  15. type: String,
  16. value: ""
  17. }
  18. },
  19. /**
  20. * 组件的初始数据
  21. */
  22. data: {},
  23. /**
  24. * 组件的方法列表 修改1
  25. */
  26. methods: {
  27. godetail(e) {
  28. // let item = JSON.stringify(e.currentTarget.dataset.item);
  29. myApp.data.tranInfo = e.currentTarget.dataset.item
  30. // console.log(myApp.data.tranInfo, 'myApp.data.tranInfo')
  31. wx.navigateTo({
  32. url: '/pages/myTransfer/detail/index?&type=' + e.currentTarget.dataset.type
  33. })
  34. },
  35. antmoveAction: function () {
  36. //执行时动态赋值,请勿删除
  37. }
  38. },
  39. observers: {}
  40. });