Authored by shijian

三个问题修改

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