| 1 |
- import{_ as m}from"./login-VH6pjdPe.js";import{_ as c,d as _,f as g,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-CDNvpvDG.js";const $=_({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("/"))},username:l,password:r}}}),n=e=>(v("data-v-83868729"),e=e(),V(),e),k=n(()=>s("header",null,[s("img",{src:m}),s("p",null,"欢迎使用")],-1)),y=n(()=>s("p",null,"账号注册",-1)),I=n(()=>s("p",null,"账号",-1)),S=n(()=>s("p",null,"密码",-1));function B(e,o,l,r,u,a){const p=g("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]=t=>e.username=t)},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]=t=>e.password=t)},null,8,["modelValue"])])]),s("div",{onClick:o[2]||(o[2]=(...t)=>e.register&&e.register(...t))},"注册")])])}const b=c($,[["render",B],["__scopeId","data-v-83868729"]]);export{b as default};
|