1 |
- import{g as f}from"./image-f8ae0dd4.js";import{d as w,k as h,D as n,c as a,l,b4 as o,aB as u,aG as v}from"./index-37ba1160.js";import{F as s}from"./Form-83c274f3.js";import"./useFlexGapSupport-b2497e29.js";const b={wrapperCol:{span:24}},y={wrapperCol:{span:24}},k=w({setup(){const c=h(),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}=s.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:F},[a("div",{class:"content"},[a("div",{class:"logo"},[a("img",{src:f("logo.png")},null)]),a("div",{class:"title"},[l("后台管理系统")]),a(s,o(b,{name:"basic"}),{default:()=>[a(s.Item,o({name:"account"},r.account),{default:()=>[a(u,{placeholder:"请输入账号",value:t.account,"onUpdate:value":e=>t.account=e,maxlength:30},null)]}),a(s.Item,o({name:"password"},r.password),{default:()=>[a(u.Password,{placeholder:"请输入密码",value:t.password,"onUpdate:value":e=>t.password=e,maxlength:18},null)]}),a(s.Item,o(y,{style:{marginBottom:0}}),{default:()=>[a(v,{htmlType:"submit",block:!0,class:"login_btn",size:"large",loading:d.loading,onClick:m},{default:()=>[l("登录")]})]})]})])])}}),F="p1fwmfaj";export{k as default};
|