Authored by 陈峰

geetest登录回退bug

... ... @@ -120,6 +120,7 @@ $loginBtn.on('touchstart', function() {
success: function(data) {
var res;
validate.type === 2 && validate.refresh();
if (data.code === 200) {
res = data.data;
showErrTip('登录成功');
... ... @@ -129,11 +130,11 @@ $loginBtn.on('touchstart', function() {
location.href = res.href;
}, 1500);
$loginBtn.text('登录成功').off();
$loginBtn.text('登录成功');
showErrTip('登录成功');
} else {
if (data.captchaShow) {
validate.atWorking ? ((data.changeCaptcha || validate.type === 2) && validate.refresh()) : validate.init();
validate.atWorking ? ((data.changeCaptcha || validate.type !== 2) && validate.refresh()) : validate.init();
}
showErrTip(data.message);
... ...
... ... @@ -141,16 +141,16 @@ $loginBtn.on('touchstart', function() {
})
}, true);
}
validate.type === 2 && validate.refresh();
if (data.code === 200) {
res = data.data;
showErrTip('登录成功');
location.href = res.href;
$loginBtn.text('登录成功').off();
$loginBtn.text('登录成功');
} else {
if (data.captchaShow) {
validate.atWorking ? ((data.changeCaptcha || validate.type === 2) && validate.refresh()) : validate.init();
validate.atWorking ? ((data.changeCaptcha || validate.type !== 2) && validate.refresh()) : validate.init();
}
showErrTip(data.message);
... ...
... ... @@ -131,7 +131,7 @@ page = {
.done(function(data) {
if (data.code === 200) {
checkPoint('YB_MOBILE_NEXT_C'); // 埋点
$nextBtn.off();
// $nextBtn.off();
location.href = data.redirect;
} else {
data.changeCaptcha && imgCheck.refresh();
... ...
... ... @@ -87,7 +87,7 @@ page = {
.done(function(res) {
if (res.code === 200) {
checkPoint('YB_SET_PASSWORD_ENSURE_C'); // 埋点
$nextBtn.off();
// $nextBtn.off();
location.href = res.redirect;
return;
}
... ...