my.js 735 B

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