import{g as f}from"./image-e1abec51.js";import{u as w}from"./index-04db8a5f.js";import{d as h,f as n,c as a,j as l,aS as s,aw as u,aE as v}from"./main-74e469cd.js";import{F as o}from"./Form-a6112802.js";import"./useFlexGapSupport-72f2e7e7.js";import"./Col-b8673fb6.js";import"./collapseMotion-2778245c.js";const y={wrapperCol:{span:24}},F={wrapperCol:{span:24}},P=h({setup(){const c=w(),d=n({loading:!1,loginType:"default"}),t=n({account:"",password:""}),i=n({account:[{required:!0,message:"请输入正确的账号",trigger:"change"}],password:[{required:!0,message:"请输入正确的密码",trigger:"change"}]}),{validate:p,validateInfos:r}=o.useForm(t,i);async function m(){p().then(e=>{const g={password:e.password,key:"cr-svc",phone:e.account};c.passwordLogin(g)})}return()=>a("div",{class:b},[a("div",{class:"content"},[a("div",{class:"logo"},[a("img",{src:f("logo.png")},null)]),a("div",{class:"title"},[l("后台管理系统")]),a(o,s(y,{name:"basic"}),{default:()=>[a(o.Item,s({name:"account"},r.account),{default:()=>[a(u,{placeholder:"请输入账号",value:t.account,"onUpdate:value":e=>t.account=e,maxlength:30},null)]}),a(o.Item,s({name:"password"},r.password),{default:()=>[a(u.Password,{placeholder:"请输入密码",value:t.password,"onUpdate:value":e=>t.password=e,maxlength:18},null)]}),a(o.Item,s(F,{style:{marginBottom:0}}),{default:()=>[a(v,{htmlType:"submit",block:!0,class:"login_btn",size:"large",loading:d.loading,onClick:m},{default:()=>[l("登录")]})]})]})])])}}),b="p1fwmfaj";export{P as default};
