修改BUG:登录页面行为验证码抛异常 closed #IVAUH

#Issue
https://gitee.com/LongbowEnterprise/dashboard/issues?id=IVAUH
This commit is contained in:
Argo Zhang 2019-04-12 11:47:04 +08:00
parent d43a993ce8
commit b79b8b8d57
2 changed files with 6 additions and 6 deletions

View File

@ -98,8 +98,8 @@
return 'http://pocoafrro.bkt.clouddn.com/Pic' + Math.round(Math.random() * 136) + '.jpg'; return 'http://pocoafrro.bkt.clouddn.com/Pic' + Math.round(Math.random() * 136) + '.jpg';
}, },
onSuccess: function () { onSuccess: function () {
var parent = this.$element.parents('.slidercaptcha').removeClass('d-block'); var parent = this.parents('.slidercaptcha').removeClass('d-block');
this.reset(); this.sliderCaptcha('reset');
if (parent.hasClass('reg')) { if (parent.hasClass('reg')) {
$.capRegSuccess(); $.capRegSuccess();
} }

View File

@ -86,7 +86,7 @@
Object.assign(this, { Object.assign(this, {
canvas, canvas,
block, block,
sliderContainer : $(sliderContainer), sliderContainer: $(sliderContainer),
refreshIcon, refreshIcon,
slider, slider,
sliderMask, sliderMask,
@ -250,7 +250,7 @@
setTimeout(() => { setTimeout(() => {
that.text.text(that.options.failedText); that.text.text(that.options.failedText);
that.reset(); that.reset();
}, 1000) }, 1000);
} }
}; };
@ -261,8 +261,8 @@
document.addEventListener('mouseup', handleDragEnd); document.addEventListener('mouseup', handleDragEnd);
document.addEventListener('touchend', handleDragEnd); document.addEventListener('touchend', handleDragEnd);
document.addEventListener('mousedown', function() { return false; }); document.addEventListener('mousedown', function () { return false; });
document.addEventListener('touchstart', function() { return false; }); document.addEventListener('touchstart', function () { return false; });
}; };
_proto.verify = function () { _proto.verify = function () {