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