index-legacy-7e0acc44.js 13 KB

1
  1. !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(q){s=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),c=new E(r||[]);return i(a,"_invoke",{value:S(t,n,c)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(q){return{type:"throw",arg:q}}}n.wrap=f;var h={};function p(){}function m(){}function y(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,w=v&&v(v(O([])));w&&w!==r&&o.call(w,c)&&(g=w);var _=y.prototype=p.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,n){function r(i,a,c,u){var l=d(e[i],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):n.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=L(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function L(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=d(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function O(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:k}}function k(){return{value:void 0,done:!0}}return m.prototype=y,i(_,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:m,configurable:!0}),m.displayName=s(y,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},n.awrap=function(t){return{__await:t}},b(x.prototype),s(x.prototype,u,(function(){return this})),n.AsyncIterator=x,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new x(f(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(_),s(_,l,"Generator"),s(_,c,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}function n(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void n(l)}c.done?e(u):Promise.resolve(u).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}System.register(["./index-legacy-9572cf39.js","./index-legacy-730341a9.js","./index-legacy-870d50da.js","./index-legacy-e0a24453.js"],(function(t,n){"use strict";var i,a,c,u,l,s,f,d,h,p,m,y,g,v,w,_,b,x,S,L,C,j=document.createElement("style");return j.textContent="._imgCode_mq980_1{padding:.42667rem}._imgCode_mq980_1 ._codeTitle_mq980_4{text-align:center;font-size:.42667rem;color:#4f4f4f;margin:0;padding-bottom:.42667rem}._imgCode_mq980_1 ._img_mq980_1{display:flex;align-items:center;justify-content:center}._imgCode_mq980_1 ._imgChange_mq980_16{display:block;color:#aaa;font-size:.32rem;text-align:center;padding-top:.13333rem}._imgCode_mq980_1 ._field_mq980_23{background:#f4f4f4;padding:.26667rem .32rem!important}._imgCodePopup_mq980_27{width:90%;border-radius:.13333rem;overflow:initial}._imgCodePopup_mq980_27 .van-popup__close-icon{top:-.98667rem!important;right:0!important;font-size:.66667rem;color:#fff}\n",document.head.appendChild(j),{setters:[function(t){i=t.aS,a=t.j,c=t.am,u=t.n,l=t.v,s=t.d,f=t.b4,d=t.E,h=t.w,p=t.g,m=t.an,y=t.D,g=t.a,v=t.f,w=t.P,_=t.h,b=t.a9},function(t){x=t.R,S=t.C},function(t){L=t.F},function(t){C=t.I}],execute:function(){var n=o(a("count-down"),2),j=n[0],E=n[1],O={time:c(0),format:u("HH:mm:ss"),autoStart:l,millisecond:Boolean},k=s({name:j,props:O,emits:["change","finish"],setup:function(t,e){var n=e.emit,r=e.slots,o=f({time:+t.time,millisecond:t.millisecond,onChange:function(t){return n("change",t)},onFinish:function(){return n("finish")}}),a=o.start,c=o.pause,u=o.reset,l=o.current,s=d((function(){return function(t,e){var n=e.days,r=e.hours,o=e.minutes,a=e.seconds,c=e.milliseconds;if(t.includes("DD")?t=t.replace("DD",i(n)):r+=24*n,t.includes("HH")?t=t.replace("HH",i(r)):o+=60*r,t.includes("mm")?t=t.replace("mm",i(o)):a+=60*o,t.includes("ss")?t=t.replace("ss",i(a)):c+=1e3*a,t.includes("S")){var u=i(c,3);t=t.includes("SSS")?t.replace("SSS",u):t.includes("SS")?t.replace("SS",u.slice(0,2)):t.replace("S",u.charAt(0))}return t}(t.format,l.value)})),y=function(){u(+t.time),t.autoStart&&a()};return h((function(){return t.time}),y,{immediate:!0}),m({start:a,pause:c,reset:y}),function(){return p("div",{role:"timer",class:E()},[r.default?r.default(l.value):s.value])}}}),q=(t("C",y(k)),"_imgCode_mq980_1"),I="_codeTitle_mq980_4",P="_img_mq980_1",N="_imgChange_mq980_16",T="_field_mq980_23",A="_imgCodePopup_mq980_27";t("I",s({name:"o-img-code",props:{value:Boolean,phone:[String,Number],type:{type:String,default:"LOGIN"}},emits:["close","sendCode"],data:function(){return{isSuffix:"/api-web",showStatus:!1,identifyingCode:window.location.origin+"/api-web/code/getLoginImage?phone="+this.phone,code:""}},mounted:function(){this.showStatus=this.value},watch:{value:function(t){this.showStatus=t},code:function(t){t.length>=4&&this.checkVerifyLoginImage()}},methods:{updateIdentifyingCode:function(){var t=this;return r(e().mark((function n(){var r;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=window.location.origin,t.identifyingCode="".concat(r,"/api-web/code/getLoginImage?phone=").concat(t.phone,"&token=").concat(Math.random());case 2:case"end":return e.stop()}}),n)})))()},checkVerifyLoginImage:function(){var t=this;return r(e().mark((function n(){return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t.code.length<4)){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,g.post("".concat(t.isSuffix,"/code/sendSmsCode"),{requestType:"form",hideLoading:!0,data:{mobile:t.phone,code:t.code}});case 5:setTimeout((function(){v("验证码已发送")}),100),t.$emit("close"),t.$emit("sendCode"),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),t.code="",t.updateIdentifyingCode();case 14:case"end":return e.stop()}}),n,null,[[0,10]])})))()}},render:function(){var t=this;return p(w,{show:this.showStatus,class:A,closeOnClickOverlay:!1,onClose:function(){t.$emit("close")},closeable:!0,closeIcon:"close"},{default:function(){return[p("div",{class:q},[p("p",{class:I},[_("输入图形验证码")]),p(x,null,{default:function(){return[p(S,{span:"14"},{default:function(){return[p(L,{placeholder:"请输入验证码",modelValue:t.code,"onUpdate:modelValue":function(e){return t.code=e},class:T,autocomplete:"off",maxlength:4},null)]}}),p(S,{span:"10",class:P},{default:function(){return[p(C,{src:t.identifyingCode,onClick:function(){return t.updateIdentifyingCode()}},{loading:function(){return p(b,{type:"spinner",size:"20"},null)}})]}})]}}),p(x,{style:{display:"flex",justifyContent:"end"}},{default:function(){return[p(S,{span:"10"},{default:function(){return[p("span",{class:N,onClick:function(){return t.updateIdentifyingCode()}},[_("看不清?换一换")])]}})]}})])]}})}}))}}}))}();