Index-legacy-15227177.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 r};var n,r={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.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(n){s=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),u=new z(r||[]);return a(i,"_invoke",{value:F(t,n,u)}),i}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var d="suspendedStart",v="suspendedYield",y="executing",g="completed",m={};function w(){}function x(){}function b(){}var _={};s(_,l,(function(){return this}));var L=Object.getPrototypeOf,k=L&&L(L(A([])));k&&k!==o&&i.call(k,l)&&(_=k);var E=b.prototype=w.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(e,n){function r(o,a,u,l){var c=h(e[o],e,a);if("throw"!==c.type){var f=c.arg,s=f.value;return s&&"object"==t(s)&&i.call(s,"__await")?n.resolve(s.__await).then((function(t){r("next",t,u,l)}),(function(t){r("throw",t,u,l)})):n.resolve(s).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,l)}))}l(c.arg)}var o;a(this,"_invoke",{value:function(t,e){function i(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(i,i):i()}})}function F(t,e,r){var o=d;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:n,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var l=P(u,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var c=h(t,e,r);if("normal"===c.type){if(o=r.done?g:v,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=g,r.method="throw",r.arg=c.arg)}}}function P(t,e){var r=e.method,o=t.iterator[r];if(o===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=n,P(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=h(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function z(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return a.next=a}}throw new TypeError(t(e)+" is not iterable")}return x.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:x,configurable:!0}),x.displayName=s(b,f,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},r.awrap=function(t){return{__await:t}},S(j.prototype),s(j.prototype,c,(function(){return this})),r.AsyncIterator=j,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new j(p(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),s(E,f,"Generator"),s(E,l,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),r.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}},r.values=A,z.prototype={constructor:z,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},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 r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.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&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):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),m},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),O(n),m}},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;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}},r}function n(t,e,n,r,o,i,a){try{var u=t[i](a),l=u.value}catch(c){return void n(c)}u.done?e(l):Promise.resolve(l).then(r,o)}System.register(["./index-legacy-f44ab23b.js","./index-legacy-db54d967.js"],(function(t,r){"use strict";var o,i,a,u,l,c,f,s,p,h,d,v,y,g,m,w;return{setters:[function(t){o=t.d,i=t.a,a=t.y,u=t.i,l=t.l,c=t.r,f=t.o,s=t.s,p=t.e,h=t.c,d=t.w,v=t.x,y=t.p,g=t.j,m=t._},function(t){w=t.p}],execute:function(){var r=document.createElement("style");r.textContent="[data-v-100e9f21] .ant-input-group-addon .ant-btn-primary{background:none;border:none;padding:0}\n",document.head.appendChild(r);var x=function(t){return y("data-v-100e9f21"),t=t(),g(),t},b={style:{background:"#E9EDF3",height:"100vh",display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},_=x((function(){return p("span",null,"已有账号,",-1)})),L={style:{width:"1200px",height:"740px",display:"flex","background-color":"#fff"}},k={style:{width:"0px","flex-grow":"2",padding:"20px 0px 0px 20px"}},E={style:{height:"35px"}},S={style:{width:"0px","flex-grow":"3",padding:"70px 70px 20px 70px"}},j=x((function(){return p("div",{style:{"font-family":"PingFangSC, PingFang SC","font-weight":"600","font-size":"38px",color:"#000829","line-height":"28px","text-align":"left","font-style":"normal"}},[p("span",null,"注册账号")],-1)})),F={style:{"margin-top":"70px"}},P={key:1,style:{background:"#0058FF",height:"100%",width:"120px",padding:"0px 10px","font-size":"14px","margin-top":"-1px","margin-bottom":"-1px","line-height":"38px"}},C=[x((function(){return p("div",null,"获取验证码",-1)}))],O=x((function(){return p("span",null,"我同意",-1)})),z=x((function(){return p("div",{style:{width:"0px","flex-grow":"2"}},null,-1)})),A=x((function(){return p("p",null,"Some contents...",-1)})),G=x((function(){return p("p",null,"Some contents...",-1)})),N=x((function(){return p("p",null,"Some contents...",-1)})),U=o({__name:"Index",setup:function(t){var r=i(),o=a({mobile:"",username:"",password:"",veryfyCode:"",isAgree:!1}),y=function(t){console.log(t),console.log(o),w({url:"/user/register",data:o},(function(t){console.log(t),r.replace("/login")}))},g=function(t){console.log(t)},m=function(){var t,r=(t=e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o.isAgree){t.next=4;break}return t.abrupt("return",Promise.resolve());case 4:return t.abrupt("return",Promise.reject("请勾选“我同意”"));case 5:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,l,"next",t)}function l(t){n(a,o,i,u,l,"throw",t)}u(void 0)}))});return function(){return r.apply(this,arguments)}}(),x=u(null),U=function(t){var e;console.log(t),null===(e=x.value)||void 0===e||e.validateFields(["mobile"]).then((function(t){console.log(t);var e=new URLSearchParams;e.append("mobile",o.mobile),w({url:"/open/sendVeryCode",data:e},(function(t){console.log(t)}))})).catch((function(t){console.log(t)}))},T=function(){r.push("/login")},q=u(!1),I=u(""),R=function(){q.value=!1},Y=function(){I.value="用户协议",q.value=!0},B=function(){I.value="隐私政策",q.value=!0};return l((function(){})),function(t,e){var n=c("a-image"),r=c("a-input"),i=c("a-form-item"),a=c("a-input-search"),u=c("a-input-password"),l=c("a-checkbox"),w=c("a-button"),D=c("a-form"),V=c("a-modal");return f(),s("div",b,[p("div",{style:{height:"0px",width:"1200px",position:"relative"}},[p("div",{style:{position:"absolute",right:"0",bottom:"20px","font-family":"PingFangSC, PingFang SC","font-weight":"400","font-size":"14px",color:"#666A78"}},[_,p("a",{onClick:T},"立即登录")])]),p("div",L,[p("div",k,[p("div",E,[h(n,{preview:!1,height:"100%",src:"/static/images/logo3.png"})])]),p("div",S,[j,p("div",F,[h(D,{ref_key:"formRef",ref:x,model:o,name:"basic","label-align":"left","label-col":{span:4},"wrapper-col":{span:20},autocomplete:"off",onFinish:y,onFinishFailed:g,layout:"vertical"},{default:d((function(){return[h(i,{"wrapper-col":{offset:0,span:24},label:"用户名",name:"username",rules:[{required:!0,message:"请输入账号!"}]},{default:d((function(){return[h(r,{size:"large",value:o.username,"onUpdate:value":e[0]||(e[0]=function(t){return o.username=t})},null,8,["value"])]})),_:1}),h(i,{"wrapper-col":{offset:0,span:24},label:"手机号",name:"mobile",rules:[{required:!0,message:"请输入正确的手机号!",pattern:/^1[3-9]\d{9}$/}]},{default:d((function(){return[h(r,{size:"large",value:o.mobile,"onUpdate:value":e[1]||(e[1]=function(t){return o.mobile=t})},null,8,["value"])]})),_:1}),h(i,{"wrapper-col":{offset:0,span:24},label:"验证码",name:"veryfyCode",rules:[{required:!0,message:"请输入验证码"}]},{default:d((function(){return[h(a,{value:o.veryfyCode,"onUpdate:value":e[2]||(e[2]=function(t){return o.veryfyCode=t}),placeholder:"请输入验证码",size:"large",onSearch:U},{enterButton:d((function(){return[(f(),s("div",P,C))]})),_:1},8,["value"])]})),_:1}),h(i,{style:{"margin-bottom":"12px"},"wrapper-col":{offset:0,span:24},label:"密码",name:"password",rules:[{required:!0,message:"请输入密码!"}]},{default:d((function(){return[h(u,{size:"large",value:o.password,"onUpdate:value":e[3]||(e[3]=function(t){return o.password=t})},null,8,["value"])]})),_:1}),h(i,{"wrapper-col":{offset:0,span:24},name:"isAgree",rules:[{required:!0,validator:m}]},{default:d((function(){return[p("div",null,[h(l,{checked:o.isAgree,"onUpdate:checked":e[4]||(e[4]=function(t){return o.isAgree=t})},{default:d((function(){return[O]})),_:1},8,["checked"]),p("a",{onClick:Y},"《用户协议》"),p("a",{onClick:B},"《隐私政策》")])]})),_:1},8,["rules"]),h(i,{"wrapper-col":{offset:0,span:24}},{default:d((function(){return[h(w,{style:{background:"#0058FF"},size:"large",block:"",type:"primary","html-type":"submit"},{default:d((function(){return[v("立即注册")]})),_:1})]})),_:1})]})),_:1},8,["model"])])]),z]),h(V,{visible:q.value,"onUpdate:visible":e[5]||(e[5]=function(t){return q.value=t}),title:I.value},{footer:d((function(){return[h(w,{type:"primary",onClick:R},{default:d((function(){return[v("知道了")]})),_:1})]})),default:d((function(){return[A,G,N]})),_:1},8,["visible","title"])])}}});t("default",m(U,[["__scopeId","data-v-100e9f21"]]))}}}))}();