guhongwei hace 2 años
padre
commit
d2b41a6602
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      pages/setting/basic.js

+ 2 - 3
pages/setting/basic.js

@@ -73,9 +73,8 @@ Page({
         wx.getStorage({
         wx.getStorage({
             key: 'user',
             key: 'user',
             success: async res => {
             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 => {
             fail: res => {
                 wx.redirectTo({ url: '/pages/index/index', })
                 wx.redirectTo({ url: '/pages/index/index', })