!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/asset/",r(r.s=277)}({277:function(e,t,r){var n=r(5);window.api.commonVerify=function(e){var t=n.extend({generateServer:"",selectorTarget:"",selectorGenerate:"",selectorCountdown:"",selectorRegenerate:"",selectorCaptcha:"",selectorCaptchaImg:"",interval:60,tipError:function(e){window.api.dialog.tipError(e)},sendError:function(e){window.api.dialog.tipError(e)}},e),r=0,o=function(){var e=n(t.selectorCountdown);e.is("input")?e.val(r+" s"):e.html(r+" s"),r>0?(r--,setTimeout(o,1e3),n(t.selectorCountdown).show(),n(t.selectorRegenerate).hide()):(e.hide(),n(t.selectorCountdown).hide(),n(t.selectorRegenerate).show())},a=!1,i=function(){var e=n(t.selectorTarget).val(),i=null;return t.selectorCaptcha&&!(i=n(t.selectorCaptcha).val())?(t.tipError("图片验证码为空"),!1):(a||(a=!0,window.api.dialog.loadingOn(),window.api.base.post(t.generateServer,{target:e,captcha:i},(function(e){window.api.dialog.loadingOff(),a=!1,window.api.base.defaultFormCallback(e,{success:function(e){e.data&&alert(e.data),n(t.selectorGenerate).hide(),r=t.interval,o(r)},error:function(e){n(t.selectorCaptchaImg).click(),e.data&&alert(e.data),t.sendError(e.msg)}})}))),!1)};n(t.selectorGenerate).on("click",i),n(t.selectorRegenerate).on("click",i)}},5:function(e,t){e.exports=window.$}});