guhongwei 2 년 전
부모
커밋
d2b41a6602
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      pages/setting/basic.js

+ 2 - 3
pages/setting/basic.js

@@ -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', })