;(function(){function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}var __vite_style__=document.createElement('style');__vite_style__.innerHTML="._userAuth_1jf99_1{min-height:100vh;background-color:#f6f8f9;overflow:hidden}._userAuth_1jf99_1 ._btnGroup_1jf99_6{padding:0 .37333rem .4rem}\n";document.head.appendChild(__vite_style__);System.register(['./index-legacy.d70883d8.js','./index-legacy.1bb96d98.js','./index-legacy.1cd7b6bb.js','./vendor-legacy.031e1374.js','./index-legacy.f25f109a2.js','./index-legacy.f25f109a3.js'],function(exports){'use strict';var ColFieldGroup,ColField,ColHeader,request,state,defineComponent,Toast,createVNode,Form,Field,Button,createTextVNode;return{setters:[function(module){ColFieldGroup=module.C;ColField=module.a;},function(module){ColHeader=module.C;},function(module){request=module.r;state=module.s;},function(module){defineComponent=module.d;Toast=module.T;createVNode=module.a;Form=module.aa;Field=module.m;Button=module.B;createTextVNode=module.j;},function(){},function(){}],execute:function execute(){var userAuth="_userAuth_1jf99_1";var btnGroup="_btnGroup_1jf99_6";var styles={userAuth:userAuth,btnGroup:btnGroup};var UserAuth=exports('U',defineComponent({name:'UserAuth',props:{onSuccess:{// 实名成功
type:Function,default:function _default(){}}},data:function data(){return{form:{realName:'',idCardNo:''}};},methods:{onSubmit:function onSubmit(){var _this=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return request.post('/api-auth/user/realNameAuth',{data:_objectSpread(_objectSpread({},_this.form),{},{save:true})});case 3:Toast('实名成功');state.user.data.realName=_this.form.realName;state.user.data.idCardNo=_this.form.idCardNo;setTimeout(function(){_this.onSuccess();},500);_context.next=11;break;case 9:_context.prev=9;_context.t0=_context["catch"](0);case 11:case"end":return _context.stop();}}},_callee,null,[[0,9]]);}))();}},render:function render(){var _this2=this;return createVNode(Form,{"class":styles.userAuth,"onSubmit":this.onSubmit},{default:function _default(){return[createVNode(ColHeader,{"title":"实名认证"},null),createVNode(ColFieldGroup,{"style":{marginTop:'15px'}},{default:function _default(){return[createVNode(ColField,{"title":"姓名","required":true},{default:function _default(){return[createVNode(Field,{"name":"lessonName","maxlength":20,"modelValue":_this2.form.realName,"onUpdate:modelValue":function onUpdateModelValue($event){return _this2.form.realName=$event;},"placeholder":"请输入真实姓名","rules":[{required:true,message:'请输入真实姓名'}]},null)];}}),createVNode(ColField,{"title":"证件号码","required":true},{default:function _default(){return[createVNode(Field,{"name":"lessonSubjectName","modelValue":_this2.form.idCardNo,"onUpdate:modelValue":function onUpdateModelValue($event){return _this2.form.idCardNo=$event;},"rules":[{required:true,message:'请输入身份证号'},{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:'请输入正确的身份证号'}],"placeholder":"请输入身份证号"},null)];}})];}}),createVNode("div",{"class":['btnGroup']},[createVNode(Button,{"block":true,"round":true,"type":"primary","native-type":"submit"},{default:function _default(){return[createTextVNode("\u786E\u5B9A")];}})])];}});}}));}};});})();
