|
@@ -74,9 +74,9 @@ const changeLoginType=(type)=>{
|
|
|
passwordConfirm:'',
|
|
|
verificationCode:''
|
|
|
}
|
|
|
+ clearInterval(codeTimer)
|
|
|
codeInfo.timeout=60
|
|
|
codeInfo.isRequesting=false
|
|
|
- codeTimer=null
|
|
|
let refTemp;
|
|
|
if(isPhone()){
|
|
|
refTemp=psdMissingMobileRef.value
|
|
@@ -105,7 +105,7 @@ const changeLoginType=(type)=>{
|
|
|
}else{
|
|
|
let params={
|
|
|
Mobile:psdMissing.form.phone,
|
|
|
- Area_num:psdMissing.form.phonePre ||'86'
|
|
|
+ AreaNum:psdMissing.form.phonePre ||'86'
|
|
|
}
|
|
|
resp=await smsCodeSend(params)
|
|
|
}
|
|
@@ -115,8 +115,8 @@ const changeLoginType=(type)=>{
|
|
|
codeTimer=setInterval(()=>{
|
|
|
if(codeInfo.timeout==1){
|
|
|
codeInfo.isRequesting=false
|
|
|
+ clearInterval(codeTimer)
|
|
|
codeInfo.timeout=60
|
|
|
- codeTimer=null
|
|
|
}
|
|
|
codeInfo.timeout--
|
|
|
},1000)
|
|
@@ -158,6 +158,7 @@ const changeLoginType=(type)=>{
|
|
|
})
|
|
|
setTimeout(()=>{
|
|
|
localStorage.removeItem('yben_token')
|
|
|
+ localStorage.removeItem('user_info')
|
|
|
router.replace('/login')
|
|
|
},1000)
|
|
|
}
|