1234567891011121314151617181920212223242526272829303132333435 |
- export const myInit = (that) => {
- that.setData({
- myData: {
- title: '修改资料',
- concern: '我的关注',
- wallet: "我的钱包",
- imgUrl: 'https://developers.weixin.qq.com/miniprogram/dev/image/cat/0.jpg?t=18102320',
- name: 'ABC',
- address:['北京海淀','中关村','三小'],
- playNum: 31549,
- attentionCount: 10254,
- point: 6317,
- flowerNum: 56245
- }
- })
- that.toMyEdit = (e) => {
- let title = e.currentTarget.dataset.title;
- wx.navigateTo({
- url: `../user/myEdit/myEdit?title=${title}`
- });
- },
- that.toMyConcern = e => {
- let title = e.currentTarget.dataset.title;
- wx.navigateTo({
- url: `../user/myconcern/myconcern?title=${title}`
- });
- }
- that.toMyWallet = e => {
- let title = e.currentTarget.dataset.title;
- wx.navigateTo({
- url: `../user/myWallet/myWallet?title=${title}`
- });
- }
- }
|