Authored by 郭成尧

loading

... ... @@ -6,6 +6,9 @@
let $ = require('yoho-jquery'),
ImgCheck = require('plugin/img-check'),
tip = require('plugin/tip');
let loading = require('plugin/loading');
const validType = {
IMG_CHECK: 1,
GEETEST: 2
... ... @@ -94,7 +97,9 @@ class Validate {
}
return Promise.resolve({captcha});
} else {
loading.showLoadingMask();
return new Promise((resolve) => {
loading.hideLoadingMask();
this.$container.removeClass('hide');
this.captchaObj.onSuccess(() => {
resolve(this.captchaObj.getValidate());
... ...