@@ -73,9 +73,8 @@ Page({
wx.getStorage({
key: 'user',
success: async res => {
- that.setData({ form: res.data })
- // const arr = await app.$get(`/newCourt/api/user/${res.data.openid}`);
- // if (arr.errcode == '0') { that.setData({ form: arr.data }) }
+ const arr = await app.$get(`/newCourt/api/user/${res.data.openid}`);
+ if (arr.errcode == '0') { that.setData({ form: arr.data }) }
},
fail: res => {
wx.redirectTo({ url: '/pages/index/index', })