|
@@ -61,6 +61,8 @@ import Verify from '@/components/Verifition'
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
import { checkPersonBaseInfo } from '@/utils/check'
|
|
|
import dialogExtend from '@/plugins/dialogExtend'
|
|
|
+import Confirm from '@/plugins/confirm'
|
|
|
+import { useRouter } from 'vue-router'; const router = useRouter()
|
|
|
|
|
|
const emit = defineEmits(['loginSuccess', 'close'])
|
|
|
|
|
@@ -115,6 +117,15 @@ const handleLogin = async () => {
|
|
|
phoneRef.value && phoneRef.value.clearCaptcha() // 清空人机验证
|
|
|
console.error('error', error)
|
|
|
loginLoading.value = false
|
|
|
+
|
|
|
+ // 登录未注册过的账号跳转注册
|
|
|
+ if (error.code === 1100016002) {
|
|
|
+ Confirm('系统提示', `您的手机号还未注册过,去注册?`, {
|
|
|
+ cancelCallback: true
|
|
|
+ }).then(() => {
|
|
|
+ router.push('/register/person?type=noLoginToRegister')
|
|
|
+ }).catch(() => {})
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|