my.js 927 B

1234567891011121314151617181920212223242526272829303132333435
  1. export const myInit = (that) => {
  2. that.setData({
  3. myData: {
  4. title: '修改资料',
  5. concern: '我的关注',
  6. wallet: "我的钱包",
  7. imgUrl: 'https://developers.weixin.qq.com/miniprogram/dev/image/cat/0.jpg?t=18102320',
  8. name: 'ABC',
  9. address:['北京海淀','中关村','三小'],
  10. playNum: 31549,
  11. attentionCount: 10254,
  12. point: 6317,
  13. flowerNum: 56245
  14. }
  15. })
  16. that.toMyEdit = (e) => {
  17. let title = e.currentTarget.dataset.title;
  18. wx.navigateTo({
  19. url: `../user/myEdit/myEdit?title=${title}`
  20. });
  21. },
  22. that.toMyConcern = e => {
  23. let title = e.currentTarget.dataset.title;
  24. wx.navigateTo({
  25. url: `../user/myconcern/myconcern?title=${title}`
  26. });
  27. }
  28. that.toMyWallet = e => {
  29. let title = e.currentTarget.dataset.title;
  30. wx.navigateTo({
  31. url: `../user/myWallet/myWallet?title=${title}`
  32. });
  33. }
  34. }