Compare commits

..

No commits in common. "661aa6cea7db72a259148b4256c3c1684ccf2c02" and "7158402e0dcac0eb1a8ee74f37bb91f015c38def" have entirely different histories.

1 changed files with 1 additions and 19 deletions

View File

@ -152,7 +152,7 @@ export default {
if(response.data.code === '200'){
console.log('验证码发送成功:', response.data);
startCountdown(); //
}else{
}else{
console.log('验证码发送失败:', response.data);
phoneError.value = response.data.message;
}
@ -169,24 +169,6 @@ export default {
verificationCodeError.value = '请输入验证码';
return false;
}
axios.post('https://api.sso.ycymedu.com/api/syswechat/smslogin', {
phoneNumber: phone.value,
code:verificationCode.value,
redirect_uri:referer.value
})
.then(response => {
if(response.data.code === '200'){
console.log('验证码发送成功:', response.data);
startCountdown(); //
}else{
console.log('验证码发送失败:', response.data);
phoneError.value = response.data.message;
}
})
.catch(error => {
console.error('发送验证码失败:', error);
phoneError.value = '发送验证码失败,请稍后再试';
});
verificationCodeError.value = ''; //
return true;
});