调试一键登录安卓版

This commit is contained in:
zhangmanman
2021-10-11 18:13:02 +08:00
parent 0c19bec510
commit 992be56ee9
15 changed files with 9722 additions and 9876 deletions

View File

@@ -52,14 +52,14 @@ class userAuth {
}
// 预登录
Login(){
return new Promise((resolve, reject) => {
return new Promise((resolve, reject) => {
uni.showLoading({
title: '加载中',
mask : true
})
uni.preLogin({
provider: 'univerify',
success : res=> {
uni.preLogin({
provider: 'univerify',
success : res=> {
this.keyLogin().then(() => {
resolve({
auth: true
@@ -68,20 +68,11 @@ class userAuth {
reject(errMsg)
})
},
fail : err=> {
uni.showToast({
title: err,
icon : 'none'
})
// router.push({name: 'Login'})
fail : err=> {
router.push({name: 'Login'})
},
complete: comp=> {
uni.showToast({
title: comp,
icon : 'none'
})
// uni.hideLoading()
complete() {
uni.hideLoading()
}
})
})