Register-DBW-VHQ_.js 1.3 KB

1
  1. import{_ as c}from"./login-VH6pjdPe.js";import{_ as m,d as g,f as _,o as f,c as h,b as s,g as i,r as d,i as w,p as v,l as V}from"./index-hbBc2Ld-.js";const $=g({components:{},props:[],setup(){const{ajax:e,helper:o}=w("$global"),l=d(""),r=d("");return{register:async()=>{const a=await e.user.register(l.value,r.value);a&&(o.write("userName",String(a.username)),o.goLink("/login"))},username:l,password:r}}}),t=e=>(v("data-v-c7657004"),e=e(),V(),e),k=t(()=>s("header",null,[s("img",{src:c}),s("p",null,"欢迎使用")],-1)),y=t(()=>s("p",null,"账号注册",-1)),I=t(()=>s("p",null,"账号",-1)),S=t(()=>s("p",null,"密码",-1));function B(e,o,l,r,u,a){const p=_("a-input");return f(),h("main",null,[s("section",null,[k,y,s("section",null,[I,s("div",null,[i(p,{placeholder:"请输入账号",style:{width:"250px",height:"40px"},modelValue:e.username,"onUpdate:modelValue":o[0]||(o[0]=n=>e.username=n)},null,8,["modelValue"])])]),s("section",null,[S,s("div",null,[i(p,{type:"password",placeholder:"请输入密码",style:{width:"250px",height:"40px"},modelValue:e.password,"onUpdate:modelValue":o[1]||(o[1]=n=>e.password=n)},null,8,["modelValue"])])]),s("div",{onClick:o[2]||(o[2]=(...n)=>e.register&&e.register(...n))},"注册")])])}const b=m($,[["render",B],["__scopeId","data-v-c7657004"]]);export{b as default};