index-legacy.564b8047.js 25 KB

1234567891011121314151617
  1. ;(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 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);});};}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 _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr,i){var _i=arr==null?null:typeof Symbol!=="undefined"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i==null)return;var _arr=[];var _n=true;var _d=false;var _s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e2){throw _e2;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e3){didErr=true;err=_e3;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++){arr2[i]=arr[i];}return arr2;}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}var __vite_style__=document.createElement('style');__vite_style__.innerHTML="._formTitle_opgdl_1{font-size:.42667rem;color:#000;display:flex;align-items:center;justify-content:space-between}._formTitle_opgdl_1 ._col-left_opgdl_8{display:flex;align-items:center}._formTitle_opgdl_1 ._col-left_opgdl_8 .van-icon{margin-right:.13333rem}._formTitle_opgdl_1 ._col-left_opgdl_8 .van-icon>img{vertical-align:middle}._formTitle_opgdl_1 ._col-left_opgdl_8 ._required_opgdl_18{font-style:normal;color:#ff4e19;font-size:.45333rem}._formTitle_opgdl_1 ._col-icon_opgdl_23{display:flex;align-items:center}._col-field_opgdl_27{margin-bottom:.42667rem}._col-field-group_1vk7j_1{margin:0 .37333rem .32rem;border-radius:.26667rem;overflow:hidden;background-color:#fff;padding:.32rem;padding-bottom:0}._col-field-group_1vk7j_1 .van-field{padding-left:0;padding-right:0}._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(['./vendor-legacy.73abbe39.js','./index-legacy.637f3556.js','./index-legacy.dda51a96.js','./index-legacy.4b2d517a.js','./index-legacy.f25f109a2.js','./index-legacy.f25f109a3.js'],function(exports){'use strict';var defineComponent,createVNode,Popup,Col,Icon,createTextVNode,Row,Toast,Field,Button,Form,ColHeader,state,request;return{setters:[function(module){defineComponent=module.d;createVNode=module.b;Popup=module.P;Col=module.C;Icon=module.q;createTextVNode=module.j;Row=module.k;Toast=module.T;Field=module.l;Button=module.B;Form=module.K;},function(){},function(module){ColHeader=module.C;},function(module){state=module.s;request=module.r;},function(){},function(){}],execute:function execute(){var queryString={};var strictUriEncode=function strictUriEncode(str){return encodeURIComponent(str).replace(/[!'()*]/g,function(x){return"%".concat(x.charCodeAt(0).toString(16).toUpperCase());});};var token='%[a-f0-9]{2}';var singleMatcher=new RegExp(token,'gi');var multiMatcher=new RegExp('('+token+')+','gi');function decodeComponents(components,split){try{// Try to decode the entire string first
  2. return decodeURIComponent(components.join(''));}catch(err){// Do nothing
  3. }if(components.length===1){return components;}split=split||1;// Split the array in 2 parts
  4. var left=components.slice(0,split);var right=components.slice(split);return Array.prototype.concat.call([],decodeComponents(left),decodeComponents(right));}function decode(input){try{return decodeURIComponent(input);}catch(err){var tokens=input.match(singleMatcher);for(var i=1;i<tokens.length;i++){input=decodeComponents(tokens,i).join('');tokens=input.match(singleMatcher);}return input;}}function customDecodeURIComponent(input){// Keep track of all the replacements and prefill the map with the `BOM`
  5. var replaceMap={'%FE%FF':"\uFFFD\uFFFD",'%FF%FE':"\uFFFD\uFFFD"};var match=multiMatcher.exec(input);while(match){try{// Decode as big chunks as possible
  6. replaceMap[match[0]]=decodeURIComponent(match[0]);}catch(err){var result=decode(match[0]);if(result!==match[0]){replaceMap[match[0]]=result;}}match=multiMatcher.exec(input);}// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else
  7. replaceMap['%C2']="\uFFFD";var entries=Object.keys(replaceMap);for(var i=0;i<entries.length;i++){// Replace all decoded components
  8. var key=entries[i];input=input.replace(new RegExp(key,'g'),replaceMap[key]);}return input;}var decodeUriComponent=function decodeUriComponent(encodedURI){if(typeof encodedURI!=='string'){throw new TypeError('Expected `encodedURI` to be of type `string`, got `'+_typeof(encodedURI)+'`');}try{encodedURI=encodedURI.replace(/\+/g,' ');// Try the built in decoder first
  9. return decodeURIComponent(encodedURI);}catch(err){// Fallback to a more advanced decoder
  10. return customDecodeURIComponent(encodedURI);}};var splitOnFirst=function splitOnFirst(string,separator){if(!(typeof string==='string'&&typeof separator==='string')){throw new TypeError('Expected the arguments to be of type `string`');}if(separator===''){return[string];}var separatorIndex=string.indexOf(separator);if(separatorIndex===-1){return[string];}return[string.slice(0,separatorIndex),string.slice(separatorIndex+separator.length)];};var filterObj=function filterObj(obj,predicate){var ret={};var keys=Object.keys(obj);var isArr=Array.isArray(predicate);for(var i=0;i<keys.length;i++){var key=keys[i];var val=obj[key];if(isArr?predicate.indexOf(key)!==-1:predicate(key,val,obj)){ret[key]=val;}}return ret;};(function(exports){var strictUriEncode$1=strictUriEncode;var decodeComponent=decodeUriComponent;var splitOnFirst$1=splitOnFirst;var filterObject=filterObj;var isNullOrUndefined=function isNullOrUndefined(value){return value===null||value===undefined;};var encodeFragmentIdentifier=Symbol('encodeFragmentIdentifier');function encoderForArrayFormat(options){switch(options.arrayFormat){case'index':return function(key){return function(result,value){var index=result.length;if(value===undefined||options.skipNull&&value===null||options.skipEmptyString&&value===''){return result;}if(value===null){return[].concat(_toConsumableArray(result),[[encode(key,options),'[',index,']'].join('')]);}return[].concat(_toConsumableArray(result),[[encode(key,options),'[',encode(index,options),']=',encode(value,options)].join('')]);};};case'bracket':return function(key){return function(result,value){if(value===undefined||options.skipNull&&value===null||options.skipEmptyString&&value===''){return result;}if(value===null){return[].concat(_toConsumableArray(result),[[encode(key,options),'[]'].join('')]);}return[].concat(_toConsumableArray(result),[[encode(key,options),'[]=',encode(value,options)].join('')]);};};case'colon-list-separator':return function(key){return function(result,value){if(value===undefined||options.skipNull&&value===null||options.skipEmptyString&&value===''){return result;}if(value===null){return[].concat(_toConsumableArray(result),[[encode(key,options),':list='].join('')]);}return[].concat(_toConsumableArray(result),[[encode(key,options),':list=',encode(value,options)].join('')]);};};case'comma':case'separator':case'bracket-separator':{var keyValueSep=options.arrayFormat==='bracket-separator'?'[]=':'=';return function(key){return function(result,value){if(value===undefined||options.skipNull&&value===null||options.skipEmptyString&&value===''){return result;}// Translate null to an empty string so that it doesn't serialize as 'null'
  11. value=value===null?'':value;if(result.length===0){return[[encode(key,options),keyValueSep,encode(value,options)].join('')];}return[[result,encode(value,options)].join(options.arrayFormatSeparator)];};};}default:return function(key){return function(result,value){if(value===undefined||options.skipNull&&value===null||options.skipEmptyString&&value===''){return result;}if(value===null){return[].concat(_toConsumableArray(result),[encode(key,options)]);}return[].concat(_toConsumableArray(result),[[encode(key,options),'=',encode(value,options)].join('')]);};};}}function parserForArrayFormat(options){var result;switch(options.arrayFormat){case'index':return function(key,value,accumulator){result=/\[(\d*)\]$/.exec(key);key=key.replace(/\[\d*\]$/,'');if(!result){accumulator[key]=value;return;}if(accumulator[key]===undefined){accumulator[key]={};}accumulator[key][result[1]]=value;};case'bracket':return function(key,value,accumulator){result=/(\[\])$/.exec(key);key=key.replace(/\[\]$/,'');if(!result){accumulator[key]=value;return;}if(accumulator[key]===undefined){accumulator[key]=[value];return;}accumulator[key]=[].concat(accumulator[key],value);};case'colon-list-separator':return function(key,value,accumulator){result=/(:list)$/.exec(key);key=key.replace(/:list$/,'');if(!result){accumulator[key]=value;return;}if(accumulator[key]===undefined){accumulator[key]=[value];return;}accumulator[key]=[].concat(accumulator[key],value);};case'comma':case'separator':return function(key,value,accumulator){var isArray=typeof value==='string'&&value.includes(options.arrayFormatSeparator);var isEncodedArray=typeof value==='string'&&!isArray&&decode(value,options).includes(options.arrayFormatSeparator);value=isEncodedArray?decode(value,options):value;var newValue=isArray||isEncodedArray?value.split(options.arrayFormatSeparator).map(function(item){return decode(item,options);}):value===null?value:decode(value,options);accumulator[key]=newValue;};case'bracket-separator':return function(key,value,accumulator){var isArray=/(\[\])$/.test(key);key=key.replace(/\[\]$/,'');if(!isArray){accumulator[key]=value?decode(value,options):value;return;}var arrayValue=value===null?[]:value.split(options.arrayFormatSeparator).map(function(item){return decode(item,options);});if(accumulator[key]===undefined){accumulator[key]=arrayValue;return;}accumulator[key]=[].concat(accumulator[key],arrayValue);};default:return function(key,value,accumulator){if(accumulator[key]===undefined){accumulator[key]=value;return;}accumulator[key]=[].concat(accumulator[key],value);};}}function validateArrayFormatSeparator(value){if(typeof value!=='string'||value.length!==1){throw new TypeError('arrayFormatSeparator must be single character string');}}function encode(value,options){if(options.encode){return options.strict?strictUriEncode$1(value):encodeURIComponent(value);}return value;}function decode(value,options){if(options.decode){return decodeComponent(value);}return value;}function keysSorter(input){if(Array.isArray(input)){return input.sort();}if(_typeof(input)==='object'){return keysSorter(Object.keys(input)).sort(function(a,b){return Number(a)-Number(b);}).map(function(key){return input[key];});}return input;}function removeHash(input){var hashStart=input.indexOf('#');if(hashStart!==-1){input=input.slice(0,hashStart);}return input;}function getHash(url){var hash='';var hashStart=url.indexOf('#');if(hashStart!==-1){hash=url.slice(hashStart);}return hash;}function extract(input){input=removeHash(input);var queryStart=input.indexOf('?');if(queryStart===-1){return'';}return input.slice(queryStart+1);}function parseValue(value,options){if(options.parseNumbers&&!Number.isNaN(Number(value))&&typeof value==='string'&&value.trim()!==''){value=Number(value);}else if(options.parseBooleans&&value!==null&&(value.toLowerCase()==='true'||value.toLowerCase()==='false')){value=value.toLowerCase()==='true';}return value;}function parse(query,options){options=Object.assign({decode:true,sort:true,arrayFormat:'none',arrayFormatSeparator:',',parseNumbers:false,parseBooleans:false},options);validateArrayFormatSeparator(options.arrayFormatSeparator);var formatter=parserForArrayFormat(options);// Create an object with no prototype
  12. var ret=Object.create(null);if(typeof query!=='string'){return ret;}query=query.trim().replace(/^[?#&]/,'');if(!query){return ret;}var _iterator=_createForOfIteratorHelper(query.split('&')),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var param=_step.value;if(param===''){continue;}var _splitOnFirst$=splitOnFirst$1(options.decode?param.replace(/\+/g,' '):param,'='),_splitOnFirst$2=_slicedToArray(_splitOnFirst$,2),_key=_splitOnFirst$2[0],_value=_splitOnFirst$2[1];// Missing `=` should be `null`:
  13. // http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters
  14. _value=_value===undefined?null:['comma','separator','bracket-separator'].includes(options.arrayFormat)?_value:decode(_value,options);formatter(decode(_key,options),_value,ret);}}catch(err){_iterator.e(err);}finally{_iterator.f();}for(var _i=0,_Object$keys=Object.keys(ret);_i<_Object$keys.length;_i++){var key=_Object$keys[_i];var value=ret[key];if(_typeof(value)==='object'&&value!==null){for(var _i2=0,_Object$keys2=Object.keys(value);_i2<_Object$keys2.length;_i2++){var k=_Object$keys2[_i2];value[k]=parseValue(value[k],options);}}else{ret[key]=parseValue(value,options);}}if(options.sort===false){return ret;}return(options.sort===true?Object.keys(ret).sort():Object.keys(ret).sort(options.sort)).reduce(function(result,key){var value=ret[key];if(Boolean(value)&&_typeof(value)==='object'&&!Array.isArray(value)){// Sort object keys, not values
  15. result[key]=keysSorter(value);}else{result[key]=value;}return result;},Object.create(null));}exports.extract=extract;exports.parse=parse;exports.stringify=function(object,options){if(!object){return'';}options=Object.assign({encode:true,strict:true,arrayFormat:'none',arrayFormatSeparator:','},options);validateArrayFormatSeparator(options.arrayFormatSeparator);var shouldFilter=function shouldFilter(key){return options.skipNull&&isNullOrUndefined(object[key])||options.skipEmptyString&&object[key]==='';};var formatter=encoderForArrayFormat(options);var objectCopy={};for(var _i3=0,_Object$keys3=Object.keys(object);_i3<_Object$keys3.length;_i3++){var key=_Object$keys3[_i3];if(!shouldFilter(key)){objectCopy[key]=object[key];}}var keys=Object.keys(objectCopy);if(options.sort!==false){keys.sort(options.sort);}return keys.map(function(key){var value=object[key];if(value===undefined){return'';}if(value===null){return encode(key,options);}if(Array.isArray(value)){if(value.length===0&&options.arrayFormat==='bracket-separator'){return encode(key,options)+'[]';}return value.reduce(formatter(key),[]).join('&');}return encode(key,options)+'='+encode(value,options);}).filter(function(x){return x.length>0;}).join('&');};exports.parseUrl=function(url,options){options=Object.assign({decode:true},options);var _splitOnFirst$3=splitOnFirst$1(url,'#'),_splitOnFirst$4=_slicedToArray(_splitOnFirst$3,2),url_=_splitOnFirst$4[0],hash=_splitOnFirst$4[1];return Object.assign({url:url_.split('?')[0]||'',query:parse(extract(url),options)},options&&options.parseFragmentIdentifier&&hash?{fragmentIdentifier:decode(hash,options)}:{});};exports.stringifyUrl=function(object,options){options=Object.assign(_defineProperty({encode:true,strict:true},encodeFragmentIdentifier,true),options);var url=removeHash(object.url).split('?')[0]||'';var queryFromUrl=exports.extract(object.url);var parsedQueryFromUrl=exports.parse(queryFromUrl,{sort:false});var query=Object.assign(parsedQueryFromUrl,object.query);var queryString=exports.stringify(query,options);if(queryString){queryString="?".concat(queryString);}var hash=getHash(object.url);if(object.fragmentIdentifier){hash="#".concat(options[encodeFragmentIdentifier]?encode(object.fragmentIdentifier,options):object.fragmentIdentifier);}return"".concat(url).concat(queryString).concat(hash);};exports.pick=function(input,filter,options){options=Object.assign(_defineProperty({parseFragmentIdentifier:true},encodeFragmentIdentifier,false),options);var _exports$parseUrl=exports.parseUrl(input,options),url=_exports$parseUrl.url,query=_exports$parseUrl.query,fragmentIdentifier=_exports$parseUrl.fragmentIdentifier;return exports.stringifyUrl({url:url,query:filterObject(query,filter),fragmentIdentifier:fragmentIdentifier},options);};exports.exclude=function(input,filter,options){var exclusionFilter=Array.isArray(filter)?function(key){return!filter.includes(key);}:function(key,value){return!filter(key,value);};return exports.pick(input,exclusionFilter,options);};})(queryString);var qs=queryString;var ColPopup=exports('C',defineComponent({name:'col-popup',props:{height:{type:String,default:'100%'},destroy:{type:Boolean,default:false},modelValue:{type:Boolean,default:false},position:{type:String,default:'bottom'}},data:function data(){return{popupShow:false,isDestroy:false};},watch:{modelValue:function modelValue(val){this.hashState();}},mounted:function mounted(){this.destroy&&(this.isDestroy=false);window.addEventListener('hashchange',this.onHash,false);},unmounted:function unmounted(){window.removeEventListener('hashchange',this.onHash,false);},methods:{onHash:function onHash(){this.$emit('update:modelValue',false);this.isDestroy=false;},onPopupClose:function onPopupClose(val){this.$emit('update:modelValue',val);this.hashState();},hashState:function hashState(){// 打开弹窗
  16. if(this.modelValue){this.isDestroy=false;var splitUrl=window.location.hash.slice(1).split('?');var query=qs.parse(splitUrl[1]);var times=0;for(var key in query){times++;}var origin=window.location.href;var url=times>0?'&cPop='+ +new Date():'?cPop='+ +new Date();history.pushState('','',"".concat(origin).concat(url));}else{var _splitUrl=window.location.hash.slice(1).split('?');var _query=qs.parse(_splitUrl[1]);if(_query.cPop){window.history.go(-1);}}if(this.$refs.protocolPopup){this.$refs.protocolPopup.scrollTop=0;}}},render:function render(){var _this=this;return createVNode(Popup,{"ref":"protocolPopup","show":this.modelValue,"transitionAppear":true,"position":this.position,"style":{height:this.height},"onClosed":function onClosed(){if(_this.destroy){_this.isDestroy=true;}}},{default:function _default(){return[_this.$slots.default&&!_this.isDestroy&&_this.$slots.default()];}});}}));var formTitle="_formTitle_opgdl_1";var required="_required_opgdl_18";var styles$2={formTitle:formTitle,"col-left":"_col-left_opgdl_8",required:required,"col-icon":"_col-icon_opgdl_23","col-field":"_col-field_opgdl_27"};var ColField=defineComponent({name:'col-field',props:{required:{type:Boolean,default:false},title:{type:String},border:{type:Boolean,default:true},iconName:{type:String}},render:function render(){var _this2=this;return createVNode(Row,{"class":styles$2['col-field']},{default:function _default(){return[createVNode(Col,{"span":24,"class":styles$2.formTitle},{default:function _default(){return[createVNode("div",{"class":styles$2['col-left']},[createVNode("div",{"class":styles$2['col-icon']},[_this2.$slots.icon?_this2.$slots.icon():_this2.iconName?createVNode(Icon,{"name":_this2.iconName,"size":"24"},null):null]),_this2.required?createVNode("i",{"class":styles$2.required},[createTextVNode("*")]):null,_this2.$slots.title?_this2.$slots.title():createVNode("div",{"class":styles$2.pdL},[_this2.title])]),createVNode("div",{"class":styles$2['col-right']},[_this2.$slots.right&&_this2.$slots.right()])];}}),createVNode(Col,{"span":24,"class":_this2.border?'van-hairline--bottom':null},{default:function _default(){return[_this2.$slots.default&&_this2.$slots.default()];}})];}});}});var styles$1={"col-field-group":"_col-field-group_1vk7j_1"};var ColFieldGroup=defineComponent({name:"ColFieldGroup",render:function render(){return createVNode("div",{"class":styles$1['col-field-group']},[this.$slots.default&&this.$slots.default()]);}});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:{// 实名成功
  17. type:Function,default:function _default(){}}},computed:{students:function students(){var _state$user$data;var students=((_state$user$data=state.user.data)===null||_state$user$data===void 0?void 0:_state$user$data.student)||{};return students;}},data:function data(){return{form:{id:state.user.data.id,certificateType:'IDENTITY',realName:'',idCardNo:''}};},mounted:function mounted(){this.form.realName=this.students.realName;this.form.idCardNo=this.students.idCardNo;},methods:{onSubmit:function onSubmit(){var _this3=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/update',{requestType:'form',data:_objectSpread({},_this3.form)});case 3:Toast('实名成功');state.user.data.student.realName=_this3.form.realName;state.user.data.student.idCardNo=_this3.form.idCardNo;setTimeout(function(){_this3.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 _this4=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":_this4.form.realName,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.realName=$event;},"placeholder":"请输入真实姓名","rules":[{required:true,message:'请输入真实姓名'}]},null)];}}),createVNode(ColField,{"title":"证件号码","required":true},{default:function _default(){return[createVNode(Field,{"name":"lessonSubjectName","modelValue":_this4.form.idCardNo,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.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")];}})])];}});}}));}};});})();