guhongwei 3 years ago
parent
commit
2753146005
2 changed files with 2 additions and 5 deletions
  1. 1 5
      app.js
  2. 1 0
      pages/login/index.js

+ 1 - 5
app.js

@@ -20,11 +20,7 @@ App({
 
   },
   globalData: {
-    userInfo: {
-      name: '顾红伟',
-      phone: '13174420325',
-      role: '1'
-    },
+    userInfo: {},
     // 微信用户openid,sessionKey
     wxInfo: {},
     client: {},

+ 1 - 0
pages/login/index.js

@@ -39,6 +39,7 @@ Page({
       wx.showToast({ title: `${error.msg}`, icon: 'error', duration: 2000 })
       return false
     } else {
+      params.name = '顾红伟';
       app.globalData.userInfo = params;
       wx.setStorage({ key: "token", data: 'token' })
       wx.setStorage({ key: "role", data: params.role })