|
@@ -38,6 +38,8 @@ const isMobileCountDown = computed(()=>{
|
|
return codeCountDown.value<60&&codeCountDown.value>0
|
|
return codeCountDown.value<60&&codeCountDown.value>0
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+let isGetNewCode = ref(false)
|
|
|
|
+
|
|
//区号相关
|
|
//区号相关
|
|
let mobileTelAreaCode=ref('86')
|
|
let mobileTelAreaCode=ref('86')
|
|
let showMobilePicker = ref(false)
|
|
let showMobilePicker = ref(false)
|
|
@@ -55,10 +57,13 @@ getTelAreaCode()
|
|
function checkForm(){
|
|
function checkForm(){
|
|
if(isMobileCountDown.value) return
|
|
if(isMobileCountDown.value) return
|
|
//是否是重新获取验证码
|
|
//是否是重新获取验证码
|
|
- if(codeStr.value==='重新获取'){
|
|
|
|
|
|
+ if(codeStr.value==='重新获取'&&!isGetNewCode.value){
|
|
//清空图形验证码输入框,引导用户重新输入
|
|
//清空图形验证码输入框,引导用户重新输入
|
|
|
|
+ showToast("重新获取需再次输入图形验证码")
|
|
getPicCode()
|
|
getPicCode()
|
|
mobilePicCode.value = ''
|
|
mobilePicCode.value = ''
|
|
|
|
+ isGetNewCode.value = true
|
|
|
|
+ return
|
|
}
|
|
}
|
|
//检查手机号和图形验证码是否正确
|
|
//检查手机号和图形验证码是否正确
|
|
if(!mobilePicCode.value.length){
|
|
if(!mobilePicCode.value.length){
|
|
@@ -77,6 +82,7 @@ function checkForm(){
|
|
areaCode:mobileTelAreaCode.value,
|
|
areaCode:mobileTelAreaCode.value,
|
|
picCode:mobilePicCode.value
|
|
picCode:mobilePicCode.value
|
|
},'mobile',1)
|
|
},'mobile',1)
|
|
|
|
+ isGetNewCode.value = false
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|