zhaoxiaohai 3 年之前
父节点
当前提交
2948eb5c5e
共有 2 个文件被更改,包括 2 次插入5 次删除
  1. 0 3
      pages/login/modules/login.js
  2. 2 2
      pages/login/phone.js

+ 0 - 3
pages/login/modules/login.js

@@ -4,9 +4,6 @@ function loginMsg(res) {
     wx.setStorageSync('account_list', res.account_list)
     if (res.account_list.length == 1) {
         wx.setStorageSync('userMsg', res.account_list[0])
-        wx.switchTab({
-            url: '/pages/tabbar/home/index'
-        })
         query_userauth();
     } else {
         wx.redirectTo({

+ 2 - 2
pages/login/phone.js

@@ -28,7 +28,7 @@ Page({
         wx.getUserProfile({
             desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
             success: (res) => {
-                console.log("用户信息",res)
+                console.log("用户信息", res)
                 /* this.setData({
                     userInfo: res.userInfo,
                     hasUserInfo: true
@@ -78,10 +78,10 @@ Page({
             "password": md5.hexMD5(this.data.password),
             "systemclient": "wechatsaletool"
         }).then(res => {
-            console.log("登录", res)
             this.setData({
                 loading: false
             })
+            console.log("登录", res)
             if (res.msg != '成功') return wx.showToast({
                 title: res.msg,
                 icon: "none"