Index-legacy-ec1270fe.js 8.8 KB

1
  1. !function(){function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(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 n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,n,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function u(t,o,i,a){var u=o&&o.prototype instanceof c?o:c,f=Object.create(u.prototype);return r(f,"_invoke",function(t,r,o){var i,a,u,c=0,f=o||[],s=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(n,t){return i=n,a=0,u=e,p.n=t,l}};function d(t,r){for(a=t,u=r,n=0;!s&&c&&!o&&n<f.length;n++){var o,i=f[n],d=p.p,v=i[2];t>3?(o=v===r)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=t<2&&d<i[1])?(a=0,p.v=r,p.n=i[1]):d<v&&(o=t<3||i[0]>r||r>v)&&(i[4]=t,i[5]=r,p.n=v,a=0))}if(o||t>1)return l;throw s=!0,r}return function(o,f,v){if(c>1)throw TypeError("Generator is already running");for(s&&1===f&&d(f,v),a=f,u=v;(n=a<2?e:u)||!s;){i||(a?a<3?(a>1&&(p.n=-1),d(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),n=i[o]){if(!(n=n.call(i,u)))throw TypeError("iterator result is not an object");if(!n.done)return n;u=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((n=(s=p.n<0)?u:t.call(r,p))!==l)break}catch(n){i=e,a=1,u=n}finally{c=1}}return{value:n,done:s}}}(t,i,a),!0),f}var l={};function c(){}function f(){}function s(){}n=Object.getPrototypeOf;var p=[][i]?n(n([][i]())):(r(n={},i,function(){return this}),n),d=s.prototype=c.prototype=Object.create(p);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,r(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return f.prototype=s,r(d,"constructor",s),r(s,"constructor",f),f.displayName="GeneratorFunction",r(s,a,"GeneratorFunction"),r(d),r(d,a,"Generator"),r(d,i,function(){return this}),r(d,"toString",function(){return"[object Generator]"}),(t=function(){return{w:u,m:v}})()}function r(e,n,t,o){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}r=function(e,n,t,o){function a(n,t){r(e,n,function(e){return this._invoke(n,t,e)})}n?i?i(e,n,{value:t,enumerable:!o,configurable:!o,writable:!o}):e[n]=t:(a("next",0),a("throw",1),a("return",2))},r(e,n,t,o)}function o(e,n,t,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void t(e)}u.done?n(l):Promise.resolve(l).then(r,o)}System.register(["./index-legacy-7f6656e1.js","./index-legacy-c2eb0980.js"],function(n,r){"use strict";var i,a,u,l,c,f,s,p,d,v,g,m,y,h;return{setters:[function(e){i=e.d,a=e.a,u=e.v,l=e.i,c=e.k,f=e.o,s=e.p,p=e.e,d=e.c,v=e.w,g=e.r,m=e.s,y=e._},function(e){h=e.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 b={style:{background:"#E9EDF3",height:"100vh",display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},x={style:{width:"1200px",height:"740px",display:"flex","background-color":"#fff"}},w={style:{width:"0px","flex-grow":"2",padding:"20px 0px 0px 20px"}},_={style:{height:"35px"}},k={style:{width:"0px","flex-grow":"3",padding:"70px 70px 20px 70px"}},S={style:{"margin-top":"70px"}},C={key:1,style:{background:"#0058FF",height:"100%",width:"120px",padding:"0px 10px","font-size":"14px","margin-top":"-1px","margin-bottom":"-1px","line-height":"38px"}},F=i({__name:"Index",setup:function(n){var r=a(),i=u({mobile:"",username:"",password:"",veryfyCode:"",isAgree:!1}),y=function(e){console.log(e),console.log(i),h({url:"/user/register",data:i},function(e){console.log(e),r.replace("/login")})},F=function(e){console.log(e)},j=function(){var e,n=(e=t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:if(!i.isAgree){e.n=1;break}return e.a(2,Promise.resolve());case 1:return e.a(2,Promise.reject("请勾选“我同意”"));case 2:return e.a(2)}},e)}),function(){var n=this,t=arguments;return new Promise(function(r,i){var a=e.apply(n,t);function u(e){o(a,r,i,u,l,"next",e)}function l(e){o(a,r,i,u,l,"throw",e)}u(void 0)})});return function(){return n.apply(this,arguments)}}(),A=l(null),P=function(e){var n;console.log(e),null===(n=A.value)||void 0===n||n.validateFields(["mobile"]).then(function(e){console.log(e);var n=new URLSearchParams;n.append("mobile",i.mobile),h({url:"/open/sendVeryCode",data:n},function(e){console.log(e)})}).catch(function(e){console.log(e)})},O=function(){r.push("/login")},z=l(!1),U=l(""),E=function(){z.value=!1},T=function(){U.value="用户协议",z.value=!0},G=function(){U.value="隐私政策",z.value=!0};return c(function(){}),function(n,t){var r=g("a-image"),o=g("a-input"),a=g("a-form-item"),u=g("a-input-search"),l=g("a-input-password"),c=g("a-checkbox"),h=g("a-button"),q=g("a-form"),I=g("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"}},[t[6]||(t[6]=p("span",null,"已有账号,",-1)),p("a",{onClick:O},"立即登录")])]),p("div",x,[p("div",w,[p("div",_,[d(r,{preview:!1,height:"100%",src:"/static/images/logo3.png"})])]),p("div",k,[t[11]||(t[11]=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)),p("div",S,[d(q,{ref_key:"formRef",ref:A,model:i,name:"basic","label-align":"left","label-col":{span:4},"wrapper-col":{span:20},autocomplete:"off",onFinish:y,onFinishFailed:F,layout:"vertical"},{default:v(function(){return[d(a,{"wrapper-col":{offset:0,span:24},label:"用户名",name:"username",rules:[{required:!0,message:"请输入账号!"}]},{default:v(function(){return[d(o,{size:"large",value:i.username,"onUpdate:value":t[0]||(t[0]=function(e){return i.username=e})},null,8,["value"])]}),_:1}),d(a,{"wrapper-col":{offset:0,span:24},label:"手机号",name:"mobile",rules:[{required:!0,message:"请输入正确的手机号!",pattern:/^1[3-9]\d{9}$/}]},{default:v(function(){return[d(o,{size:"large",value:i.mobile,"onUpdate:value":t[1]||(t[1]=function(e){return i.mobile=e})},null,8,["value"])]}),_:1}),d(a,{"wrapper-col":{offset:0,span:24},label:"验证码",name:"veryfyCode",rules:[{required:!0,message:"请输入验证码"}]},{default:v(function(){return[d(u,{value:i.veryfyCode,"onUpdate:value":t[2]||(t[2]=function(e){return i.veryfyCode=e}),placeholder:"请输入验证码",size:"large",onSearch:P},{enterButton:v(function(){return[(f(),s("div",C,e(t[8]||(t[8]=[p("div",null,"获取验证码",-1)]))))]}),_:1},8,["value"])]}),_:1}),d(a,{style:{"margin-bottom":"12px"},"wrapper-col":{offset:0,span:24},label:"密码",name:"password",rules:[{required:!0,message:"请输入密码!"}]},{default:v(function(){return[d(l,{size:"large",value:i.password,"onUpdate:value":t[3]||(t[3]=function(e){return i.password=e})},null,8,["value"])]}),_:1}),d(a,{"wrapper-col":{offset:0,span:24},name:"isAgree",rules:[{required:!0,validator:j}]},{default:v(function(){return[p("div",null,[d(c,{checked:i.isAgree,"onUpdate:checked":t[4]||(t[4]=function(e){return i.isAgree=e})},{default:v(function(){return e(t[9]||(t[9]=[p("span",null,"我同意",-1)]))}),_:1},8,["checked"]),p("a",{onClick:T},"《用户协议》"),p("a",{onClick:G},"《隐私政策》")])]}),_:1},8,["rules"]),d(a,{"wrapper-col":{offset:0,span:24}},{default:v(function(){return[d(h,{style:{background:"#0058FF"},size:"large",block:"",type:"primary","html-type":"submit"},{default:v(function(){return e(t[10]||(t[10]=[m("立即注册",-1)]))}),_:1})]}),_:1})]}),_:1},8,["model"])])]),t[12]||(t[12]=p("div",{style:{width:"0px","flex-grow":"2"}},null,-1))]),d(I,{visible:z.value,"onUpdate:visible":t[5]||(t[5]=function(e){return z.value=e}),title:U.value},{footer:v(function(){return[d(h,{type:"primary",onClick:E},{default:v(function(){return e(t[13]||(t[13]=[m("知道了",-1)]))}),_:1})]}),default:v(function(){return[t[14]||(t[14]=p("p",null,"Some contents...",-1)),t[15]||(t[15]=p("p",null,"Some contents...",-1)),t[16]||(t[16]=p("p",null,"Some contents...",-1))]}),_:1},8,["visible","title"])])}}});n("default",y(F,[["__scopeId","data-v-100e9f21"]]))}}})}();