index.js 870 B

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