...
|
...
|
@@ -128,6 +128,7 @@ const oneClickLoginHandler = () => { |
|
|
async success(res) {
|
|
|
uni.getCheckBoxState({
|
|
|
async success(re) {
|
|
|
console.log(re, '成功re')
|
|
|
if (re.state) {
|
|
|
// 登录成功
|
|
|
console.log(res, '成功')
|
...
|
...
|
@@ -152,6 +153,7 @@ const oneClickLoginHandler = () => { |
|
|
uni.reLaunch({ url: '/pages/index/index' })
|
|
|
// }, 800)
|
|
|
} catch (error) {
|
|
|
console.log('re==error',error);
|
|
|
uni.$u.toast(error)
|
|
|
setTimeout(() => {
|
|
|
uni.closeAuthView()
|
...
|
...
|
@@ -160,16 +162,15 @@ const oneClickLoginHandler = () => { |
|
|
} else {
|
|
|
uni.$u.toast('请先同意阅读隐私协议')
|
|
|
}
|
|
|
console.log(res) // Boolean 用户是否勾选了选框
|
|
|
console.log('Boolean',res) // Boolean 用户是否勾选了选框
|
|
|
},
|
|
|
fail(res) {
|
|
|
console.log(res)
|
|
|
console.log('getCheckBoxState==fail',res)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
fail(res) {
|
|
|
console.log(res, '失败')
|
|
|
console.log(res.errMsg)
|
|
|
}
|
|
|
})
|
|
|
}
|
...
|
...
|
|