...
|
...
|
@@ -198,13 +198,10 @@ function validateSMSCaptchaAsync() { |
|
|
return false;
|
|
|
}
|
|
|
|
|
|
switch (data.code) {
|
|
|
case 200:
|
|
|
if (data.code === 200) {
|
|
|
return true;
|
|
|
case 400:
|
|
|
errTip($smsCaptchaInput, '短信验证码错误');
|
|
|
return false;
|
|
|
default:
|
|
|
} else {
|
|
|
errTip($smsCaptchaInput, data.message);
|
|
|
return false;
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -583,7 +580,12 @@ exports.init = function() { |
|
|
|
|
|
sendSMSCaptcha().then((data)=>{
|
|
|
if (data.code !== 200) {
|
|
|
if (data.code === 404) {
|
|
|
errTip($phoneNumInput, data.message);
|
|
|
} else {
|
|
|
errTip($imgCaptchaInput, data.message);
|
|
|
}
|
|
|
|
|
|
refreshImgCaptcha();
|
|
|
} else {
|
|
|
hideTip($smsCaptchaInput);
|
...
|
...
|
|