import{_ as C}from"./logo.d8120db8.js";import{_ as p}from"./camera-icon.119ae7b3.js";import{az as v,d as g,b as h,c as m,e as D,f as V,g as e,h as d,i as b,u as r,E as a,R as w,S as A,m as x,jp as E,_ as y}from"./index.0308b213.js";const z=l=>v({url:"api/manage.auth.user/register",method:"POST",params:l}),n=l=>(w("data-v-c4546c91"),l=l(),A(),l),I={class:"register"},S=n(()=>e("div",{class:"logo"},[e("img",{src:C,alt:""})],-1)),k={class:"from-box"},U={class:"input-box"},Z=n(()=>e("img",{src:p,alt:""},null,-1)),N={class:"input-box"},P=n(()=>e("img",{src:p,alt:""},null,-1)),M={class:"input-box"},R=n(()=>e("img",{src:p,alt:""},null,-1)),T={class:"input-box"},j=n(()=>e("img",{src:p,alt:""},null,-1)),q=n(()=>e("div",{class:"tips"},[e("span",null,[x("\u5DF2\u6709\u8D26\u53F7\uFF1F"),e("span",{class:"blue"},"\u7ACB\u5373\u767B\u5F55")])],-1)),O=g({setup(l){const u=h({uniacid:1,openid:"",nickname:"",avatar:"",mobile:"",password:"",repassword:"",code:"",title:""}),f=()=>{const{openid:i,mobile:s,password:o,repassword:c,title:t}=u;if(!s)return a.error("\u8BF7\u8F93\u5165\u624B\u673A\u53F7"),!1;if(!E(s))return a.error("\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF"),!1;if(o){var _=o.length;if(_<8||_>20)return a.error("\u8BF7\u8F93\u51658-20\u4F4D\u5BC6\u7801"),!1;var B=/[0-9]+[a-zA-Z]+[0-9a-zA-Z]*|[a-zA-Z]+[0-9]+[0-9a-zA-Z]*/;if(!B.test(o))return a.error("\u5BC6\u7801\u5FC5\u987B\u7531\u6570\u5B57\u548C\u5B57\u6BCD\u7EC4\u5408"),!1}else return a.error("\u8BF7\u8F93\u5165\u5BC6\u7801"),!1;return c?o!=c?(a.error("\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4"),!1):t?!0:(a.error("\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A"),!1):(a.error("\u8BF7\u91CD\u590D\u8F93\u5165\u5BC6\u7801"),!1)},F=async()=>{if(f()){const i=await z({...u});i&&i.st===1&&a.success(i.msg)}};return(i,s)=>{const o=m("el-input"),c=m("el-form");return D(),V("div",I,[S,e("div",k,[d(c,{class:"from",model:r(u)},{default:b(()=>[e("div",U,[Z,d(o,{modelValue:r(u).mobile,"onUpdate:modelValue":s[0]||(s[0]=t=>r(u).mobile=t),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"},null,8,["modelValue"])]),e("div",N,[P,d(o,{type:"password",modelValue:r(u).password,"onUpdate:modelValue":s[1]||(s[1]=t=>r(u).password=t),placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801"},null,8,["modelValue"])]),e("div",M,[R,d(o,{type:"password",modelValue:r(u).repassword,"onUpdate:modelValue":s[2]||(s[2]=t=>r(u).repassword=t),placeholder:"\u8BF7\u91CD\u590D\u8F93\u5165\u5BC6\u7801"},null,8,["modelValue"])]),e("div",T,[j,d(o,{modelValue:r(u).title,"onUpdate:modelValue":s[3]||(s[3]=t=>r(u).title=t),placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u59D3\u540D"},null,8,["modelValue"])])]),_:1},8,["model"])]),e("button",{class:"btn",onClick:F},"\u7ACB\u5373\u6CE8\u518C"),q])}}});const J=y(O,[["__scopeId","data-v-c4546c91"]]);export{J as default};
