Browse Source

fix:手机号bug解决

chenzhen2 1 year ago
parent
commit
14f8fcbf8a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/service/user.js

+ 6 - 0
src/service/user.js

@@ -154,6 +154,12 @@ function wxLogin(type) {
 function getCompanyDataByPhone() {
   return new Promise((resolve, reject) => {
     let userPhone = wx.getStorageSync('userPhone');
+    let userInfo = store.state.user.userInfo;
+
+    console.log("userInfo==",userInfo)
+    if (!userPhone) {
+      userPhone = userInfo.phone
+    }
     let params = {
       phone: userPhone
     }