| 1 |
- !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t=["returnUrl","isRegister"];function n(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return t};var t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(E){s=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),u=new C(r||[]);return o(a,"_invoke",{value:x(e,n,u)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(E){return{type:"throw",arg:E}}}t.wrap=d;var p={};function h(){}function g(){}function m(){}var v={};s(v,u,(function(){return this}));var y=Object.getPrototypeOf,_=y&&y(y(O([])));_&&_!==n&&r.call(_,u)&&(v=_);var w=m.prototype=h.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function A(t,n){function i(o,a,u,l){var c=f(t[o],t,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==e(d)&&r.call(d,"__await")?n.resolve(d.__await).then((function(e){i("next",e,u,l)}),(function(e){i("throw",e,u,l)})):n.resolve(d).then((function(e){s.value=e,u(s)}),(function(e){return i("throw",e,u,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(e,t){function r(){return new n((function(n,r){i(e,t,n,r)}))}return a=a?a.then(r,r):r()}})}function x(e,t,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 T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=P(a,n);if(u){if(u===p)continue;return u}}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 l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function P(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function O(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return g.prototype=m,o(w,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:g,configurable:!0}),g.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},b(A.prototype),s(A.prototype,l,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new A(d(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(w),s(w,c,"Generator"),s(w,u,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,C.prototype={constructor:C,reset:function(e){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(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}function a(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(c){return void n(c)}u.done?t(l):Promise.resolve(l).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function u(e){a(i,r,o,u,l,"next",e)}function l(e){a(i,r,o,u,l,"throw",e)}u(void 0)}))}}function l(t,n,r){return(n=function(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===e(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function c(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(s){c=!0,o=s}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||d(e,t)||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 d(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}System.register(["./index-legacy-6ca08781.js","./index-legacy-e7993e61.js","./index-legacy-79c173dd.js","./index-legacy-dc6d152a.js","./base-legacy-df89df70.js","./index-legacy-7ab835f4.js"],(function(e,r){"use strict";var a,d,f,p,h,g,m,v,y,_,w,b,A,x,P,S,k,C,O,T,E,z,B,L,M,j,D,I,V,F,N,U,K,R,H,G,q,Q,W,J,X,Z,Y,$,ee,te=document.createElement("style");return te.textContent='._login_1id51_1{position:relative;min-height:100vh;background:linear-gradient(139deg,#0090F6 0%,#31D3F8 100%);--van-password-input-background: #F2F4F8;--van-password-input-height: 1.06667rem}._login_1id51_1:before,._login_1id51_1:after{content:" ";position:absolute;left:0;width:100%;height:100%}._login_1id51_1:before{top:0;background:url('+new URL("login-top-bg-af6c2801.png",r.meta.url).href+") no-repeat top center;background-size:contain}._login_1id51_1:after{bottom:0;background:url("+new URL("login-bottom-bg-f299e70b.png",r.meta.url).href+") no-repeat bottom center;background-size:contain}._login_1id51_1 ._arrowLeft_1id51_26{position:absolute;z-index:99;top:.69333rem;left:.48rem;font-weight:700;font-size:.58667rem;color:#333}._login_1id51_1 ._loginContainer_1id51_35{position:relative;z-index:1;padding:2rem .34667rem .53333rem}._login_1id51_1 ._loginContainer_1id51_35 ._container_1id51_40{background:url("+new URL("login-bg-d0b8d797.png",r.meta.url).href+") no-repeat center;background-size:contain;padding:1.84rem .58667rem;min-height:10.53333rem;max-width:9.33333rem;margin:0 auto}._login_1id51_1 ._logo_1id51_48{display:block;width:4.48rem;height:4.56rem;margin:0 auto -1.01333rem}._login_1id51_1 ._input-group_1id51_54{height:1.28rem;background:#F2F4F8;border-radius:.64rem;font-size:.42667rem}._login_1id51_1 ._input-group_1id51_54+._input-group_1id51_54{margin-top:.48rem}._login_1id51_1 ._input-group_1id51_54 ._iconPhone_1id51_63,._login_1id51_1 ._input-group_1id51_54 ._iconPassword_1id51_64{width:.53333rem;height:.53333rem}._login_1id51_1 ._input-group_1id51_54 .van-field__left-icon{display:flex;align-items:center}._login_1id51_1 input::-moz-placeholder{color:#a6afcc}._login_1id51_1 input::placeholder{color:#a6afcc}._login_1id51_1 ._btnGroup_1id51_75{padding-top:.90667rem}._login_1id51_1 ._primaryButton_1id51_78,._login_1id51_1 ._login-change_1id51_79{height:1.28rem;border-radius:1.04rem;font-size:.42667rem;border:none}._login_1id51_1 ._primaryButton_1id51_78{background:linear-gradient(73deg,#5BECFF 0%,#259CFE 100%);font-weight:600;color:#fff}._login_1id51_1 ._protocol_1id51_90{display:flex;align-items:center;justify-content:center;padding-top:.58667rem;font-size:.32rem;color:#999;line-height:.45333rem}._login_1id51_1 ._protocol_1id51_90 ._iconChecked_1id51_99{display:inline-block;width:.4rem;height:.4rem;border-radius:50%;border:.02667rem solid #ccc;margin-right:.08rem}._login_1id51_1 ._protocol_1id51_90 ._iconChecked_1id51_99._active_1id51_107{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAABWVBMVEUAAAAutf8oov4po/8xr/4mn/8vq/9CyP4moP46vv8lnv84uv8lnv82t/9AxP9DyP8+w/83t/8+w/80s/9AxP8tqP87vf8/xP8wqv83v/9Axv8moP8koP81tP5Cx/8rpf4pof5Cx/8wrv9DyP4/wv8vqv8lnP48v/87vf5Cxv8oof5Eyf8uqf9Bxv8ysP4noP86u/0knP0tp/9Dyf8/wv8knf8xr/9Fyf8rpv89vv8knv80sf8kof87vv40s/4xr/4vrP49v/42tv4qpP44uf4uqv4tqP7///86vP41tP4zsf4pov45uf45u/4wrf4rpv4mn/4/w/4ysP43t/9Bxv49wf4sp/4noP5AxP4+wv4rpf4oof4lnf78/v/j9f/w+f7q9/6I1P5Cx/5LvP5Yuv5Quv6z4f51yv5tw/5Ov/7l9f/0+/645v6e2/6P2P6N1/6B0v6Ez/5+zP6Gr3vJAAAAPXRSTlMACaB63G78+eTMx8S/u7WpoZ98c29JOiIiHBQUBP77+fjz8/Hw8PDo5NvZ09PFsauoqKaghYVtZGQ/PzExyyVUlAAAAahJREFUKM+NkldfwkAQxC+IXaQqiNh7711CJMCpiARBekeaXb//g3sFSODFef3/duZ2blFbDuuufnFgZfvwfBr1aNIwI957HiW/Px6e0zm0UDBHvXeAPZIUCITT8nyfmk4N+yh+IuOBeFoOJvaEDl0PPfi8XlHkOCwHM4mRFheG3YCjHEt+wHImoeg4Nt24bwHTcDoeJu5Ktp+9+RlwyOfThmeU7CpdcBywm4QDp9hPw2H8BKg9kgLccZeIu0zdh1wI2ZIptTvBjUKN4uwleCcjBFN3Ft7I4SIJV7JQzkayy72ew4UX9vYDhBZigGG89N6k7r+E8tXGEJqNsfA3nG8C/iGUr6aMILQUo+HuT4zzFbGEcbHa6lWB6a0Yd/8C/kFopzjo1VgGd4JDpRzG+LWqKg5qPQPMV/vOgT/rlX3LNULOQe4Om9drlXZx6WBwE4GOyoDZeNdN0C+zD7bdoVfVTQyxg7AwTNzVFydPICZjkoR3/1r7GoUdVpzm4nSqOzZp3AEP8Fku2zJz52/XQ65GzuM1cKdY1J8KqEeuC8v+6KjBbL1C/9YfpZu4hU3PVWsAAAAASUVORK5CYII=) no-repeat center;background-size:contain;border:none}._login_1id51_1 ._protocol_1id51_90 span{color:#1bacf1}._login_1id51_1 ._login-change_1id51_79{margin-top:.37333rem;background:#F5F7FB;font-weight:500;color:#496aac}._login_1id51_1 ._code-title_1id51_121{text-align:center;font-size:.58667rem;color:#333;line-height:.8rem}._login_1id51_1 ._codePhone_1id51_127{font-size:.42667rem;color:#abb3cf;line-height:.58667rem;text-align:center;padding-top:.74667rem}._login_1id51_1 ._codePhone_1id51_127 span{padding-left:.16rem;color:#086497}._login_1id51_1 .van-password-input{margin:1.06667rem 0 0}._login_1id51_1 .van-password-input__security li{border-radius:.16rem}._login_1id51_1 ._btnWrap_1id51_144{margin-top:1.22667rem;text-align:center}._login_1id51_1 ._btnWrap_1id51_144 ._btnSend_1id51_148{padding:.26667rem .48rem;font-size:.42667rem;font-weight:600;color:#fff;line-height:.58667rem}\n",document.head.appendChild(te),{setters:[function(e){a=e.c,d=e.a,f=e.d,p=e.n,h=e.r,g=e.u,m=e.p,v=e.L,y=e.m,_=e.b,w=e.t,b=e.e,A=e.w,x=e.f,P=e.g,S=e.v,k=e.h,C=e.i,O=e.s,T=e.T,E=e.j,z=e.H,B=e.k,L=e.B,M=e.l,j=e.o,D=e.q,I=e.x,V=e.y,F=e.z,N=e.I,U=e.A,K=e.C,R=e.F,H=e.D,G=e.E,q=e.G,Q=e.J,W=e.K,J=e.M,X=e.N,Z=e.O},function(e){Y=e.O},function(e){$=e.C},function(e){ee=e.F},null,null],execute:function(){var te=s(a("key"),2),ne=te[0],re=te[1],oe=d("svg",{class:re("collapse-icon"),viewBox:"0 0 30 24"},[d("path",{d:"M26 13h-2v2h2v-2zm-8-3h2V8h-2v2zm2-4h2V4h-2v2zm2 4h4V4h-2v4h-2v2zm-7 14 3-3h-6l3 3zM6 13H4v2h2v-2zm16 0H8v2h14v-2zm-12-3h2V8h-2v2zM28 0l1 1 1 1v15l-1 2H1l-1-2V2l1-1 1-1zm0 2H2v15h26V2zM6 4v2H4V4zm10 2h2V4h-2v2zM8 9v1H4V8zm8 0v1h-2V8zm-6-5v2H8V4zm4 0v2h-2V4z",fill:"currentColor"},null)]),ie=d("svg",{class:re("delete-icon"),viewBox:"0 0 32 22"},[d("path",{d:"M28 0a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H10.4a2 2 0 0 1-1.4-.6L1 13.1c-.6-.5-.9-1.3-.9-2 0-1 .3-1.7.9-2.2L9 .6a2 2 0 0 1 1.4-.6zm0 2H10.4l-8.2 8.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7l8.2 8.4H28a2 2 0 0 0 2-2V4c0-1.1-.9-2-2-2zm-5 4a1 1 0 0 1 .7.3 1 1 0 0 1 0 1.4L20.4 11l3.3 3.3c.2.2.3.5.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3L19 12.4l-3.4 3.3a1 1 0 0 1-.6.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.2.1-.5.3-.7l3.3-3.3-3.3-3.3A1 1 0 0 1 14 7c0-.3.1-.5.3-.7A1 1 0 0 1 15 6a1 1 0 0 1 .6.3L19 9.6l3.3-3.3A1 1 0 0 1 23 6z",fill:"currentColor"},null)]),ae=f({name:ne,props:{type:String,text:p,color:String,wider:Boolean,large:Boolean,loading:Boolean},emits:["press"],setup:function(e,t){var n=t.emit,r=t.slots,o=h(!1),i=g(),a=function(e){i.start(e),o.value=!0},u=function(e){i.move(e),i.direction.value&&(o.value=!1)},l=function(t){o.value&&(r.default||m(t),o.value=!1,n("press",e.text,e.type))},c=function(){if(e.loading)return d(v,{class:re("loading-icon")},null);var t=r.default?r.default():e.text;switch(e.type){case"delete":return t||ie;case"extra":return t||oe;default:return t}};return function(){return d("div",{class:re("wrapper",{wider:e.wider}),onTouchstartPassive:a,onTouchmovePassive:u,onTouchend:l,onTouchcancel:l},[d("div",{role:"button",tabindex:0,class:re([e.color,{large:e.large,active:o.value,delete:"delete"===e.type}])},[c()])])}}}),ue=s(a("number-keyboard"),2),le=ue[0],ce=ue[1],se={show:Boolean,title:String,theme:y("default"),zIndex:p,teleport:[String,Object],maxlength:_(1/0),modelValue:y(""),transition:w,blurOnClose:w,showDeleteKey:w,randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,hideOnClickOutside:w,safeAreaInsetBottom:w,extraKey:{type:[String,Array],default:""}};var de=f({name:le,inheritAttrs:!1,props:se,emits:["show","hide","blur","input","close","delete","update:modelValue"],setup:function(e,t){var n=t.emit,r=t.slots,o=t.attrs,i=h(),a=function(){var t=Array(9).fill("").map((function(e,t){return{text:t+1}}));return e.randomKeyOrder&&function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}}(t),t},u=b((function(){return"custom"===e.theme?(t=a(),n=e.extraKey,1===(r=Array.isArray(n)?n:[n]).length?t.push({text:0,wider:!0},{text:r[0],type:"extra"}):2===r.length&&t.push({text:r[0],type:"extra"},{text:0},{text:r[1],type:"extra"}),t):[].concat(c(a()),[{text:e.extraKey,type:"extra"},{text:0},{text:e.showDeleteKey?e.deleteButtonText:"",type:e.showDeleteKey?"delete":""}]);var t,n,r})),l=function(){e.show&&n("blur")},s=function(){n("close"),e.blurOnClose&&l()},f=function(){return n(e.show?"show":"hide")},p=function(t,r){if(""!==t){var o=e.modelValue;"delete"===r?(n("delete"),n("update:modelValue",o.slice(0,o.length-1))):"close"===r?s():o.length<+e.maxlength&&(n("input",t),n("update:modelValue",o+t))}else"extra"===r&&l()},g=function(){if("custom"===e.theme)return d("div",{class:ce("sidebar")},[e.showDeleteKey&&d(ae,{large:!0,text:e.deleteButtonText,type:"delete",onPress:p},{delete:r.delete}),d(ae,{large:!0,text:e.closeButtonText,type:"close",color:"blue",loading:e.closeButtonLoading,onPress:p},null)])};return A((function(){return e.show}),(function(t){e.transition||n(t?"show":"hide")})),e.hideOnClickOutside&&x(i,l,{eventName:"touchstart"}),function(){var t=function(){var t=e.title,n=e.theme,o=e.closeButtonText,i=r["title-left"],a=o&&"default"===n;if(t||a||i)return d("div",{class:ce("header")},[i&&d("span",{class:ce("title-left")},[i()]),t&&d("h2",{class:ce("title")},[t]),a&&d("button",{type:"button",class:[ce("close"),z],onClick:s},[o])])}(),n=d(T,{name:e.transition?"van-slide-up":""},{default:function(){return[P(d("div",k({ref:i,style:C(e.zIndex),class:ce({unfit:!e.safeAreaInsetBottom,"with-title":!!t}),onAnimationend:f,onTouchstartPassive:O},o),[t,d("div",{class:ce("body")},[d("div",{class:ce("keys")},[u.value.map((function(e){var t={};return"delete"===e.type&&(t.default=r.delete),"extra"===e.type&&(t.default=r["extra-key"]),d(ae,{key:e.text,text:e.text,type:e.type,wider:e.wider,color:e.color,onPress:p},t)}))]),g()])]),[[S,e.show]])]}});return e.teleport?d(E,{to:e.teleport},{default:function(){return[n]}}):n}}}),fe=B(de),pe=s(a("password-input"),2),he=pe[0],ge=pe[1],me={info:String,mask:w,value:y(""),gutter:p,length:_(6),focused:Boolean,errorInfo:String},ve=f({name:he,props:me,emits:["focus"],setup:function(e,t){var n=t.emit,r=function(e){e.stopPropagation(),n("focus",e)},o=function(){for(var t=[],n=e.mask,r=e.value,o=e.gutter,i=e.focused,a=+e.length,u=0;u<a;u++){var c=r[u],s=0!==u&&!o,f=i&&u===r.length,p=void 0;0!==u&&o&&(p={marginLeft:j(o)}),t.push(d("li",{class:[l({},M,s),ge("item",{focus:f})],style:p},[n?d("i",{style:{visibility:c?"visible":"hidden"}},null):c,f&&d("div",{class:ge("cursor")},null)]))}return t};return function(){var t=e.errorInfo||e.info;return d("div",{class:ge()},[d("ul",{class:[ge("security"),l({},L,!e.gutter)],onTouchstartPassive:r},[o()]),t&&d("div",{class:ge(e.errorInfo?"error-info":"info")},[t])])}}}),ye=B(ve),_e=""+new URL("login-logo-11b6718f.png",r.meta.url).href,we="_login_1id51_1",be="_arrowLeft_1id51_26",Ae="_loginContainer_1id51_35",xe="_container_1id51_40",Pe="_logo_1id51_48",Se="_input-group_1id51_54",ke="_iconPhone_1id51_63",Ce="_iconPassword_1id51_64",Oe="_btnGroup_1id51_75",Te="_primaryButton_1id51_78",Ee="_login-change_1id51_79",ze="_protocol_1id51_90",Be="_iconChecked_1id51_99",Le="_active_1id51_107",Me="_code-title_1id51_121",je="_codePhone_1id51_127",De="_btnWrap_1id51_144",Ie="_btnSend_1id51_148",Ve=f({name:"layout-code",props:{phone:{type:String,default:""},isRegister:{type:String,default:""}},emits:["close","confirm"],setup:function(e,t){var n=t.emit;D();var r=I({smsCode:"",showKeyboard:!1,countDownStatus:!0,countDownTime:120,countTimer:null}),a=function(){var t=u(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,H.post("/edu-app/open/sendSms",{requestType:"form",data:{clientId:"cooleshow-student",type:e.isRegister?"REGISTER":"LOGIN",mobile:e.phone}});case 3:l(),setTimeout((function(){G("验证码已发送")}),100),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),r.countDownStatus=!0;case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}(),l=function(){r.countDownStatus=!1,r.countTimer=setInterval((function(){r.countDownTime>0?r.countDownTime--:(r.countDownStatus=!0,clearInterval(r.countTimer))}),1e3)},c=function(){var t=u(i().mark((function t(){var a,u,l,c;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a={username:e.phone,client_id:"cooleshow-student",client_secret:"cooleshow-student",password:r.smsCode,grant_type:"password",loginType:"SMS"},t.next=4,H.post("/edu-app/userlogin",{requestType:"form",data:o({},a)});case 4:return u=t.sent,l=u.data,q.set(Q,l.token_type+" "+l.access_token),t.next=9,H.get("/edu-app/user/getUserInfo",{initRequest:!0});case 9:c=t.sent,W(c.data),n("close",!0),t.next=16;break;case 14:t.prev=14,t.t0=t.catch(0);case 16:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(){return t.apply(this,arguments)}}();return A((function(){return r.smsCode}),(function(e){e&&6===e.length&&c()})),V((function(){F(u(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a();case 2:r.showKeyboard=!0;case 3:case"end":return e.stop()}}),e)}))))})),function(){return d("div",{class:[we]},[d(N,{name:"arrow-left",class:be,onClick:function(){return n("close")}},null),d("div",{class:Ae},[d("img",{src:_e,class:Pe},null),d($,{class:xe,border:!1},{default:function(){return[d("h2",{class:Me},[U("输入验证码")]),d("p",{class:je},[U("已发送6位验证码至"),d("span",null,[e.phone])]),d(ye,{value:r.smsCode,onFocus:function(){r.showKeyboard=!0},focused:r.showKeyboard,length:6,gutter:12},null),d(fe,{modelValue:r.smsCode,"onUpdate:modelValue":function(e){return r.smsCode=e},show:r.showKeyboard,maxlength:6,onBlur:function(){r.showKeyboard=!1}},null),d("div",{class:De},[d(K,{type:"primary",round:!0,onClick:a,class:Ie,disabled:!r.countDownStatus},{default:function(){return[U("重新发送"),!r.countDownStatus&&d(R,null,[U("("),r.countDownTime,U(")")])]}})])]}})])])}}});e("default",f({name:"layout-login",data:function(){return{isRegister:this.$route.query.isRegister,loginType:"SMS",username:"",password:"",smsCode:"",countDownStatus:!0,countDownTime:12e4,imgCodeStatus:!1,isAgree:!0}},mounted:function(){q.remove(Q),this.directNext()},methods:{directNext:function(){if("login"===J.user.status||"error"===J.user.status){var e=this.$route.query,r=e.returnUrl,i=(e.isRegister,n(e,t));this.$router.replace({path:r,query:o({},i)})}},onLogin:function(){var e=this;return u(i().mark((function t(){var n,r,a,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,X(e.username)){t.next=3;break}return t.abrupt("return",G("请输入正确的手机号码"));case 3:return n={username:e.username,client_id:"cooleshow-student",client_secret:"cooleshow-student",password:"PWD"===e.loginType?e.password:e.smsCode,grant_type:"password",loginType:"PWD"===e.loginType?"PASSWORD":"SMS"},t.next=6,H.post("/edu-app/userlogin",{requestType:"form",data:o({},n)});case 6:return r=t.sent,a=r.data,q.set(Q,a.token_type+" "+a.access_token),t.next=11,H.get("/edu-app/user/getUserInfo",{initRequest:!0});case 11:u=t.sent,W(u.data),e.directNext(),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0),console.log(t.t0);case 19:case"end":return t.stop()}}),t,null,[[0,16]])})))()},onSendCode:function(){var e=this;return u(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isAgree){t.next=2;break}return t.abrupt("return",G("请阅读并同意以下协议"));case 2:if(X(e.username)){t.next=4;break}return t.abrupt("return",G("请输入正确的手机号码"));case 4:e.imgCodeStatus=!0;case 5:case"end":return t.stop()}}),t)})))()},onChange:function(){"PWD"===this.loginType?this.loginType="SMS":"SMS"===this.loginType&&(this.loginType="PWD")}},render:function(){var e=this;return d("div",{class:[we]},[d("div",{class:Ae},[d("img",{src:_e,class:Pe},null),d($,{class:xe,border:!1},{default:function(){return[d(ee,{modelValue:e.username,"onUpdate:modelValue":function(t){return e.username=t},name:"手机号",placeholder:"请输入您的手机号",type:"tel",class:Se,maxlength:11,autocomplete:"off",border:!1},{"left-icon":function(){return d("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAPFBMVEUAAACnsMylrsymr8ymsMymrsymsMynsM2or8+ms8ynsM2nsM2mr8yosc6nr8ulscyissmkrcimr82mr8xoS1BYAAAAE3RSTlMAqlX5zaSca0wN5MK3cmNBIRyPF9bpcQAAAHRJREFUOMvt1LEOgCAMRVEriKiIKP//r4JlMIK+RCcT7kTDCRttan1H59Ry4yZ/bS6/57PEWoKdz9MlSHwnXThrwUP7AO0xGAxVPA8jhl4SUXAQchVW+AIKQzEJoU6TQnBIk0VwY+kkw0/fFS8AvFLwkvpXO7wRJHHiDd4WAAAAAElFTkSuQmCC",class:ke},null)}}),"PWD"===e.loginType&&d(ee,{modelValue:e.password,"onUpdate:modelValue":function(t){return e.password=t},type:"password",name:"密码",class:Se,placeholder:"请输入密码",autocomplete:"off",border:!1},{"left-icon":function(){return d("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAZlBMVEUAAACmr82mr8ynsMyjssqnr8ymr8yksdKmr8ymr8ynsM2nr8ynsM2lr86qtc2msMyosc6nsc6msdOmsM2msM2nsM2nr82nsM2msMunsMynsc6or8ytrc6nsMymsMylsM2krcqmr8w5Qv39AAAAIXRSTlMArFWqIN6KBvv1oe+lShjWOzQL5bB5cmldWU1GD8SblDU92uELAAAAt0lEQVQ4y+3RyQ6DIBSFYVRAQUHrrLXDef+XbGp0I0NJXHTjv7oJX8gNkKs1Pbwkn9NfLOUZvrHY7+oH9jovTAC0o+pLAL47KyBbz1MJMM+eEuDbriWg3JABdBt7gLuhgNhHBUg3zJDv4x0ozsKa0gyCbo1AS7XNdQJmrDLcDGt5bT6hPWV+nr3YA8tnHgTFQqYgyAi5/Qk2hFRBENNSeKHRScgd8H2EurG6iBhpnkTHiiElVyF9ALhVMzsJy5oXAAAAAElFTkSuQmCC",class:Ce},null)}}),d("div",{class:Oe},[d(K,{round:!0,block:!0,class:Te,onClick:function(){"PWD"===e.loginType?e.onLogin():e.onSendCode()}},{default:function(){return["PWD"===e.loginType?"登录":"获取短信验证码"]}}),d(K,{round:!0,block:!0,type:"default",class:Ee,onClick:e.onChange},{default:function(){return["PWD"===e.loginType?"短信登录":"密码登录"]}})]),"SMS"===e.loginType&&d("div",{class:ze,onClick:function(){return e.isAgree=!e.isAgree}},[d("i",{class:[Be,e.isAgree?Le:""]},null),U("我已阅读并同意"),d("span",{onClick:function(e){e.stopPropagation(),Z.push("/privacy-protocol")}},[U("《隐私政策》")])])]}})]),d(Y,{modelValue:this.imgCodeStatus,"onUpdate:modelValue":function(t){return e.imgCodeStatus=t}},{default:function(){return[d(Ve,{phone:e.username,isRegister:e.isRegister,onClose:function(t){e.imgCodeStatus=!1,t&&requestAnimationFrame((function(){requestAnimationFrame((function(){e.directNext()}))}))},onConfirm:e.directNext},null)]}})])}}))}}}))}();
|