12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import APIClient from '../../utils/httpUtil.js'
- export const myInit = (that) => {
- that.setData({
- myData: {
- title: '修改资料',
- concern: '我的关注',
- schoolCity: '青岛市',
- schoolName: '黄岛区志贤中学',
- playNum: 31549,
- attentionCount: 10254,
- point: 6317,
- flowerNum: 56245,
- user: {}
- }
- })
- 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}`
- });
- }
- that.userInfo = function () {
-
-
-
-
-
-
-
-
-
- APIClient.getOpenidSessionKey(res => {
- console.log(res.data.data.data);
- that.data.myData.user = res.data.data.data;
- that.setData({
- myData: that.data.myData
- },() => {
- console.log(that.data.myData)
- });
- });
- }()
- }
|