|
@@ -480,14 +480,13 @@ export default {
|
|
|
fail(res){
|
|
fail(res){
|
|
|
//关闭一键登录弹出窗口
|
|
//关闭一键登录弹出窗口
|
|
|
uni.closeAuthView()
|
|
uni.closeAuthView()
|
|
|
- uni.showModal({
|
|
|
|
|
|
|
+ that.$util.confirmModal({
|
|
|
title: '登录失败',
|
|
title: '登录失败',
|
|
|
- content: '一键登录失败或已取消,是否使用短信验证码登录?',
|
|
|
|
|
- success: (confirmRes) => {
|
|
|
|
|
- if (confirmRes.confirm) {
|
|
|
|
|
- that.useSms()
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ content: '一键登录失败,是否使用短信验证码登录?',
|
|
|
|
|
+ okText: '确定',
|
|
|
|
|
+ cancelText: '取消'
|
|
|
|
|
+ }, () => {
|
|
|
|
|
+ that.useSms()
|
|
|
})
|
|
})
|
|
|
console.log(res)
|
|
console.log(res)
|
|
|
},
|
|
},
|
|
@@ -501,18 +500,17 @@ export default {
|
|
|
//如果手机没有插入有效的sim卡,或者手机蜂窝数据网络关闭,都有可能造成预登录校验失败
|
|
//如果手机没有插入有效的sim卡,或者手机蜂窝数据网络关闭,都有可能造成预登录校验失败
|
|
|
if (res.code == 30005) {
|
|
if (res.code == 30005) {
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
- uni.showModal({
|
|
|
|
|
- title: '一键登录失败',
|
|
|
|
|
- content: '无法获取本机号码,是否使用短信验证码登录?',
|
|
|
|
|
- success: (confirmRes) => {
|
|
|
|
|
- if (confirmRes.confirm) {
|
|
|
|
|
- that.useSms()
|
|
|
|
|
- } else {
|
|
|
|
|
- that.$util.confirmModal({content:'请看视频操作后再试'},() => {
|
|
|
|
|
- that.pageTo({url: '/admin/home/appLoginRemind'})
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ that.$util.confirmModal({
|
|
|
|
|
+ title: '登录失败',
|
|
|
|
|
+ content: '一键登录失败,是否使用短信验证码登录?',
|
|
|
|
|
+ okText: '确定',
|
|
|
|
|
+ cancelText: '取消'
|
|
|
|
|
+ }, () => {
|
|
|
|
|
+ that.useSms()
|
|
|
|
|
+ }, () => {
|
|
|
|
|
+ that.$util.confirmModal({content:'请看视频操作后再试'},() => {
|
|
|
|
|
+ that.pageTo({url: '/admin/home/appLoginRemind'})
|
|
|
|
|
+ })
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
@@ -522,14 +520,13 @@ export default {
|
|
|
} else if(res.code == 40004) {
|
|
} else if(res.code == 40004) {
|
|
|
msg = '即将开通...'
|
|
msg = '即将开通...'
|
|
|
}
|
|
}
|
|
|
- uni.showModal({
|
|
|
|
|
- title: '一键登录失败',
|
|
|
|
|
- content: msg + ',是否使用短信验证码登录?',
|
|
|
|
|
- success: (confirmRes) => {
|
|
|
|
|
- if (confirmRes.confirm) {
|
|
|
|
|
- that.useSms()
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ that.$util.confirmModal({
|
|
|
|
|
+ title: '登录失败',
|
|
|
|
|
+ content: '一键登录失败,是否使用短信验证码登录?',
|
|
|
|
|
+ okText: '确定',
|
|
|
|
|
+ cancelText: '取消'
|
|
|
|
|
+ }, () => {
|
|
|
|
|
+ that.useSms()
|
|
|
})
|
|
})
|
|
|
console.log(res)
|
|
console.log(res)
|
|
|
}
|
|
}
|