(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{73700:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(3537)}])},3537:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return _}});var n=r(85893),a=r(11163),s=r(67294),o=r(67421),l=r(82925),c=r(18253),d=r(9361),i=r(28459),u=r(2338);let h=(e,t)=>({...d.Z.darkAlgorithm(e,t),colorBgBase:"#232734",colorBorder:"#828282",colorBgContainer:"#232734"});var p=function(e){let{children:t}=e,{mode:r,model:a}=(0,s.useContext)(u.p),{i18n:d}=(0,o.$G)();return(0,n.jsx)(i.ZP,{locale:"en"===d.language?c.Z:l.Z,theme:{token:{colorPrimary:"#0069FE",borderRadius:4},algorithm:"dark"===r?h:void 0},children:(0,n.jsx)("div",{className:"w-screen h-screen overflow-hidden",children:t})})},m=r(2453),g=r(4393),x=r(23323),f=r(38289),b=r(14726),w=r(8733);function k(){let e=(0,a.useRouter)();return(0,n.jsx)("div",{style:{backgroundImage:"url(/images/BG.webp)",width:"100%",height:"100%",backgroundRepeat:"no-repeat",backgroundSize:"100% 100%"},children:(0,n.jsxs)(g.Z,{style:{height:"50%",width:"25%",boxShadow:"0 0 20px 2px #ccc",position:"absolute",top:"50%",left:"55%",transform:" translate(0, -50%)",borderRadius:"8px"},styles:{body:{padding:"0 40px"}},children:[(0,n.jsx)("div",{style:{textAlign:"center",fontSize:"2em",fontWeight:"bold"},className:" mb-8 mt-8",children:"账号登录"}),(0,n.jsxs)(x.Z,{name:"basic",wrapperCol:{span:24},onFinish:t=>{let{telephone:r,password:n}=t;(0,w.x4)(t,{headers:{"access-control-allow-credentials":"include"}}).then(t=>{console.log(t),200===t.data.code?(localStorage.setItem("token","".concat(t.data.data.token_type," ").concat(t.data.data.access_token)),m.ZP.success(t.data.message),e.push("/")):m.ZP.error(t.data.message)})},children:[(0,n.jsx)(x.Z.Item,{name:"telephone",rules:[{required:!0,message:"Please input your telephone!"}],children:(0,n.jsx)(f.default,{placeholder:"手机号码"})}),(0,n.jsx)(x.Z.Item,{name:"password",rules:[{required:!0,message:"Please input your password!"}],className:"mb-20",children:(0,n.jsx)(f.default.Password,{placeholder:"输入密码"})}),(0,n.jsx)(x.Z.Item,{children:(0,n.jsx)(b.ZP,{type:"primary",htmlType:"submit",block:!0,children:"登录"})})]})]})})}k.getLayout=function(e){return(0,n.jsx)(p,{children:e})};var _=k}},function(e){e.O(0,[6088,9341,5734,3323,8791,2398,4393,9774,2888,179],function(){return e(e.s=73700)}),_N_E=e.O()}]);