my.js 538 B

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