var n=Object.defineProperty,p=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var s=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var o=(e,t,a)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,u=(e,t)=>{for(var a in t||(t={}))h.call(t,a)&&o(e,a,t[a]);if(s)for(var a of s(t))c.call(t,a)&&o(e,a,t[a]);return e},d=(e,t)=>p(e,f(t));import{C as N,a as l}from"./index.5a88d81f.js";import{C}from"./index.fc7d34d1.js";import{r as b,s as i}from"./index.3d95a92c.js";import{d as j,T as x,a as r,aa as y,m,B as A,j as v}from"./vendor.a0144ce9.js";/* empty css               *//* empty css               */const S="_userAuth_1jf99_1",V="_btnGroup_1jf99_6";var _={userAuth:S,btnGroup:V},k=j({name:"UserAuth",props:{onSuccess:{type:Function,default:()=>{}}},data(){return{form:{realName:"",idCardNo:""}}},methods:{async onSubmit(){try{await b.post("/api-auth/user/realNameAuth",{data:d(u({},this.form),{save:!0})}),x("\u5B9E\u540D\u6210\u529F"),i.user.data.realName=this.form.realName,i.user.data.idCardNo=this.form.idCardNo,setTimeout(()=>{this.onSuccess()},500)}catch{}}},render(){return r(y,{class:_.userAuth,onSubmit:this.onSubmit},{default:()=>[r(C,{title:"\u5B9E\u540D\u8BA4\u8BC1"},null),r(N,{style:{marginTop:"15px"}},{default:()=>[r(l,{title:"\u59D3\u540D",required:!0},{default:()=>[r(m,{name:"lessonName",maxlength:20,modelValue:this.form.realName,"onUpdate:modelValue":e=>this.form.realName=e,placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D"}]},null)]}),r(l,{title:"\u8BC1\u4EF6\u53F7\u7801",required:!0},{default:()=>[r(m,{name:"lessonSubjectName",modelValue:this.form.idCardNo,"onUpdate:modelValue":e=>this.form.idCardNo=e,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7"},{pattern:/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7"}],placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7"},null)]})]}),r("div",{class:["btnGroup"]},[r(A,{block:!0,round:!0,type:"primary","native-type":"submit"},{default:()=>[v("\u786E\u5B9A")]})])]})}});export{k as U};
