This commit is contained in:
xiaozhiyong
2023-08-31 09:35:30 +08:00
parent 7028fde296
commit 20728f6e13
10 changed files with 31 additions and 56 deletions

View File

@@ -146,11 +146,10 @@
success: (loginRes) => {
const code = loginRes.code
this.onceCode = code
console.log('这里是code')
console.log(this.onceCode)
oilIdentityApi.sendCode(this.onceCode).then(res => {
if (res.code === 20000) {
console.log('这里是sendCode',res)
this.sessionKey = res.data.sessionKey
uni.setStorageSync('openid', res.data.openId)
uni.setStorageSync('unionid', res.data.unionId)
@@ -223,7 +222,7 @@
},
autoLogin() {
let url = 'loginCompany'
console.log('这里是自动登录')
// let url = 'loginPersonal'
oilIdentityApi.autoLogin({
unionId: uni.getStorageSync('unionid')
@@ -274,7 +273,7 @@
this.TabCur = e;
},
OtherloginSuccess(res){
console.log('这里是OtherloginSuccess',res)
let resData = res.data
if (resData.authTokenDTO.loginFlag) {
uni.setStorageSync('Authorization', resData.authTokenDTO.accessToken)