|
@@ -39,7 +39,7 @@ App({ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
console.log("req", res); |
|
|
|
|
|
|
|
|
console.log("userlogin", res); |
|
|
that.globalData.token = res.data.token; |
|
|
that.globalData.token = res.data.token; |
|
|
Http.setToken(res.data.token); |
|
|
Http.setToken(res.data.token); |
|
|
that.checkUserCarStatus(); |
|
|
that.checkUserCarStatus(); |
|
@@ -55,9 +55,11 @@ App({ |
|
|
data: {} |
|
|
data: {} |
|
|
}); |
|
|
}); |
|
|
}) |
|
|
}) |
|
|
.then(res => {}) |
|
|
|
|
|
|
|
|
.then(res => { |
|
|
|
|
|
console.log("checkUserStatus", res); |
|
|
|
|
|
}) |
|
|
.catch(err => { |
|
|
.catch(err => { |
|
|
console.log(err); |
|
|
|
|
|
|
|
|
console.log("checkUserStatus:err", err); |
|
|
if (err.code == 11004) { |
|
|
if (err.code == 11004) { |
|
|
// 用户昵称未授权 |
|
|
// 用户昵称未授权 |
|
|
wx.redirectTo({ |
|
|
wx.redirectTo({ |
|
|