Authored by htoooth

fix

... ... @@ -140,6 +140,11 @@ function sendMessageValidate() {
captcha.show();
}
if (data.code === captcha.errorCode) {
captcha.showTip(data.message);
return;
}
alert(data.message); // eslint-disable-line
});
});
... ...
... ... @@ -251,6 +251,15 @@ function sendMessageValidate() {
verifyCode: captcha2.getResults()
}
}).then(function(data) {
if (data.data && data.data.needCaptcha) {
showCaptchaImg();
}
if (data.code === captcha2.errorCode) {
captcha2.showTip(data.message);
return;
}
if (data.code !== 200) {
alert(data.message); // eslint-disable-line
} else {
... ... @@ -354,7 +363,7 @@ function nextStep() {
success: function(data) {
var winHeight = $(window).height();
if (data.code !== 200 && data.data && data.data.needCaptcha) {
if (data.data && data.data.needCaptcha) {
showCaptchaImg();
}
... ...
... ... @@ -59,6 +59,11 @@ function sendMessageValidate() {
captcha.show();
}
if (data.code === captcha.errorCode) {
captcha.showTip(data.message);
return;
}
if (data.code !== 200) {
alert(data.message); // eslint-disable-line
}
... ... @@ -122,6 +127,7 @@ function actionConfirm() {
function init() {
sendMessageValidate();
actionConfirm();
circleTime();
}
init();
... ...