1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["SignUpBaseInfo"],{"04cf":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mbutton"},[r("van-button",{attrs:{type:"primary",round:"",block:""},on:{click:t.onClick}},[t._v(t._s(t.text))])],1)},a=[],i={name:"mbutton",props:{text:String,disabled:Boolean},data:function(){return{}},methods:{onClick:function(){this.$emit("click")}}},s=i,o=(r("09c5"),r("2877")),u=Object(o["a"])(s,n,a,!1,null,"26f1a8ea",null);e["a"]=u.exports},"09c5":function(t,e,r){"use strict";var n=r("a6f6"),a=r.n(n);a.a},2558:function(t,e,r){"use strict";var n=r("f0da"),a=r.n(n);a.a},3908:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));r("433b");var n=r("d399");function a(t){t?n["a"].loading({duration:0,forbidClick:!0,message:"加载中..."}):n["a"].clear()}},"5a0c":function(t,e,r){!function(e,r){t.exports=r()}(0,(function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",a="day",i="week",s="month",o="quarter",u="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,d=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},l={s:f,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),a=r%60;return(e<=0?"+":"-")+f(n,2,"0")+":"+f(a,2,"0")},m:function(t,e){var r=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(r,s),a=e-n<0,i=t.clone().add(r+(a?-1:1),s);return Number(-(r+(e-n)/(a?n-i:i-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:s,y:u,w:i,d:a,D:"date",h:n,m:r,s:e,ms:t,Q:o}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m="en",p={};p[m]=h;var v=function(t){return t instanceof _},b=function(t,e,r){var n;if(!t)return m;if("string"==typeof t)p[t]&&(n=t),e&&(p[t]=e,n=t);else{var a=t.name;p[a]=t,n=a}return!r&&n&&(m=n),n||!r&&m},g=function(t,e){if(v(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new _(r)},$=l;$.l=b,$.i=v,$.w=function(t,e){return g(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var _=function(){function f(t){this.$L=this.$L||b(t.locale,null,!0),this.parse(t)}var l=f.prototype;return l.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if($.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(c);if(n)return r?new Date(Date.UTC(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[7]||0)):new Date(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[7]||0)}return new Date(e)}(t),this.init()},l.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},l.$utils=function(){return $},l.isValid=function(){return!("Invalid Date"===this.$d.toString())},l.isSame=function(t,e){var r=g(t);return this.startOf(e)<=r&&r<=this.endOf(e)},l.isAfter=function(t,e){return g(t)<this.startOf(e)},l.isBefore=function(t,e){return this.endOf(e)<g(t)},l.$g=function(t,e,r){return $.u(t)?this[e]:this.set(r,t)},l.year=function(t){return this.$g(t,"$y",u)},l.month=function(t){return this.$g(t,"$M",s)},l.day=function(t){return this.$g(t,"$W",a)},l.date=function(t){return this.$g(t,"$D","date")},l.hour=function(t){return this.$g(t,"$H",n)},l.minute=function(t){return this.$g(t,"$m",r)},l.second=function(t){return this.$g(t,"$s",e)},l.millisecond=function(e){return this.$g(e,"$ms",t)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(t,o){var c=this,d=!!$.u(o)||o,f=$.p(t),l=function(t,e){var r=$.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return d?r:r.endOf(a)},h=function(t,e){return $.w(c.toDate()[t].apply(c.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},m=this.$W,p=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(f){case u:return d?l(1,0):l(31,11);case s:return d?l(1,p):l(0,p+1);case i:var g=this.$locale().weekStart||0,_=(m<g?m+7:m)-g;return l(d?v-_:v+(6-_),p);case a:case"date":return h(b+"Hours",0);case n:return h(b+"Minutes",1);case r:return h(b+"Seconds",2);case e:return h(b+"Milliseconds",3);default:return this.clone()}},l.endOf=function(t){return this.startOf(t,!1)},l.$set=function(i,o){var c,d=$.p(i),f="set"+(this.$u?"UTC":""),l=(c={},c[a]=f+"Date",c.date=f+"Date",c[s]=f+"Month",c[u]=f+"FullYear",c[n]=f+"Hours",c[r]=f+"Minutes",c[e]=f+"Seconds",c[t]=f+"Milliseconds",c)[d],h=d===a?this.$D+(o-this.$W):o;if(d===s||d===u){var m=this.clone().set("date",1);m.$d[l](h),m.init(),this.$d=m.set("date",Math.min(this.$D,m.daysInMonth())).toDate()}else l&&this.$d[l](h);return this.init(),this},l.set=function(t,e){return this.clone().$set(t,e)},l.get=function(t){return this[$.p(t)]()},l.add=function(t,o){var c,d=this;t=Number(t);var f=$.p(o),l=function(e){var r=g(d);return $.w(r.date(r.date()+Math.round(e*t)),d)};if(f===s)return this.set(s,this.$M+t);if(f===u)return this.set(u,this.$y+t);if(f===a)return l(1);if(f===i)return l(7);var h=(c={},c[r]=6e4,c[n]=36e5,c[e]=1e3,c)[f]||1,m=this.$d.getTime()+t*h;return $.w(m,this)},l.subtract=function(t,e){return this.add(-1*t,e)},l.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var r=t||"YYYY-MM-DDTHH:mm:ssZ",n=$.z(this),a=this.$locale(),i=this.$H,s=this.$m,o=this.$M,u=a.weekdays,c=a.months,f=function(t,n,a,i){return t&&(t[n]||t(e,r))||a[n].substr(0,i)},l=function(t){return $.s(i%12||12,t,"0")},h=a.meridiem||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:$.s(o+1,2,"0"),MMM:f(a.monthsShort,o,c,3),MMMM:f(c,o),D:this.$D,DD:$.s(this.$D,2,"0"),d:String(this.$W),dd:f(a.weekdaysMin,this.$W,u,2),ddd:f(a.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:$.s(i,2,"0"),h:l(1),hh:l(2),a:h(i,s,!0),A:h(i,s,!1),m:String(s),mm:$.s(s,2,"0"),s:String(this.$s),ss:$.s(this.$s,2,"0"),SSS:$.s(this.$ms,3,"0"),Z:n};return r.replace(d,(function(t,e){return e||m[t]||n.replace(":","")}))},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(t,c,d){var f,l=$.p(c),h=g(t),m=6e4*(h.utcOffset()-this.utcOffset()),p=this-h,v=$.m(this,h);return v=(f={},f[u]=v/12,f[s]=v,f[o]=v/3,f[i]=(p-m)/6048e5,f[a]=(p-m)/864e5,f[n]=p/36e5,f[r]=p/6e4,f[e]=p/1e3,f)[l]||p,d?v:$.a(v)},l.daysInMonth=function(){return this.endOf(s).$D},l.$locale=function(){return p[this.$L]},l.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=b(t,e,!0);return n&&(r.$L=n),r},l.clone=function(){return $.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},f}();return g.prototype=_.prototype,g.extend=function(t,e){return t(e,_,g),g},g.locale=b,g.isDayjs=v,g.unix=function(t){return g(1e3*t)},g.en=p[m],g.Ls=p,g}))},"5b4f":function(t,e,r){},"6e6e":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mheader"},[r("header",{staticClass:"m-nav-header",class:[{fixed:t.isFixed},{headerColor:t.isColor}]},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:t.$route.meta.description))])],2),r("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},a=[],i={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},isColor:{type:Boolean,default:!1},backUrl:{type:Object,default:function(){return{callBack:null,status:!1,path:"",params:{}}}}},data:function(){return{title:this.name,backUrlParams:this.backUrl}},methods:{goBack:function(){var t=this.backUrlParams;"function"==typeof t.callBack?t.callBack():t.status?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},s=i,o=(r("2558"),r("2877")),u=Object(o["a"])(s,n,a,!1,null,"9865a7b0",null);e["a"]=u.exports},8900:function(t,e,r){"use strict";r.d(e,"n",(function(){return s})),r.d(e,"o",(function(){return o})),r.d(e,"l",(function(){return u})),r.d(e,"c",(function(){return c})),r.d(e,"i",(function(){return d})),r.d(e,"p",(function(){return f})),r.d(e,"k",(function(){return l})),r.d(e,"q",(function(){return h})),r.d(e,"h",(function(){return m})),r.d(e,"f",(function(){return p})),r.d(e,"g",(function(){return v})),r.d(e,"b",(function(){return b})),r.d(e,"j",(function(){return g})),r.d(e,"d",(function(){return $})),r.d(e,"e",(function(){return _})),r.d(e,"m",(function(){return x})),r.d(e,"a",(function(){return y}));var n=r("4328"),a=r.n(n),i=r("981f").default;function s(t){return i({url:"/api-auth/code/sendSms",method:"post",data:a.a.stringify(t)})}function o(t){return i({url:"/api-auth/smsLogin",method:"post",data:a.a.stringify(t)})}function u(t){return i({url:"/api-auth/user/noAuth/queryUserByPhone",method:"get",params:t})}function c(t){return i({url:"/api-user/examinationBasic/getInfo",method:"post",data:a.a.stringify(t)})}function d(t){return i({url:"/api-user/student/getStudent",method:"get",params:t})}function f(t){return i({url:"/api-user/student/updateInfo",method:"post",data:a.a.stringify(t)})}function l(t){return i({url:"/api-user/examRegistration/ocr",method:"post",data:t})}function h(t){return i({url:"/api-user/uploadFile",method:"post",data:t})}function m(t){return i({url:"/api-user/examSubject/getExamSubjects",method:"get",params:t})}function p(t){return i({url:"/api-user/examSubjectSong/getExamSubjectLevel",method:"get",params:t})}function v(t){return i({url:"/api-user/examSubjectSong/getExamSubjectSong",method:"get",params:t})}function b(t){return i({url:"/api-user/examRegistration/add",method:"post",data:t})}function g(t){return i({url:"/api-user/examMusicTheory/getTheoryLevelList",method:"get",params:t})}function $(t){return i({url:"/api-user/examOrder/getExamIngOrder",method:"get",params:t})}function _(t){return i({url:"/api-user/examRegistration/getExamRegistration",method:"get",params:t})}function x(t){return i({url:"/api-user/examRegistration/repay",method:"post",data:a.a.stringify(t)})}function y(t){return i({url:"/api-user/examOrder/closeOrder",method:"post",data:a.a.stringify(t)})}},"9bf4":function(t,e,r){"use strict";var n=r("5b4f"),a=r.n(n);a.a},a34a:function(t,e,r){t.exports=r("96cf")},a6f6:function(t,e,r){},ab6b:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mStep"},[r("div",{staticClass:"step"},t._l(t.imgUrlList,(function(e,n){return r("div",{key:n,staticClass:"step-item"},[t.number>=e.index?r("svg-icon",{key:"oneImg",attrs:{iconClass:e.active}}):r("svg-icon",{key:"oneImg",attrs:{iconClass:e.default}}),r("p",{class:[t.number>=e.index?e.activeClass:""]},[t._v(t._s(e.text))])],1)})),0)])},a=[],i=r("0032"),s={name:"mStep",components:{SvgIcon:i["a"]},props:{number:{type:Number,default:1}},data:function(){return{imgUrlList:[{index:1,default:"",active:"icon_account_active",activeClass:"active",text:"账号"},{index:1.5,default:"icon_right_arrow",active:"icon_right_arrow_active",activeClass:"active",text:""},{index:2,default:"icon_baseInfo",active:"icon_baseInfo_active",activeClass:"active",text:"基本信息"},{index:2.5,default:"icon_right_arrow",active:"icon_right_arrow_active",activeClass:"active",text:""},{index:3,default:"icon_level",active:"icon_level_active",activeClass:"active",text:"考级信息"},{index:3.5,default:"icon_right_arrow",active:"icon_right_arrow_active",activeClass:"active",text:""},{index:4,default:"icon_payment",active:"icon_payment_active",activeClass:"active",text:"支付"}]}},methods:{}},o=s,u=(r("9bf4"),r("2877")),c=Object(u["a"])(o,n,a,!1,null,"f6695e82",null);e["a"]=c.exports},aeaf:function(t,e,r){},aec7:function(t,e,r){"use strict";var n=r("aeaf"),a=r.n(n);a.a},beaf:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"signupBaseInfo"},[r("m-header"),r("m-step",{attrs:{number:2}}),r("div",{staticClass:"title"},[t._v("基本信息")]),r("van-field",{attrs:{readonly:"",required:"",name:"idCardNo",label:"身份证号",placeholder:"请输入身份证号"},scopedSlots:t._u([{key:"button",fn:function(){return[r("van-uploader",{attrs:{"before-read":t.beforeRead2,"after-read":t.afterReadOCR,accept:"image/*","max-count":1}},[r("span",{staticClass:"codeText"},[t._v("上传")])])]},proxy:!0}]),model:{value:t.form.idCardNo,callback:function(e){t.$set(t.form,"idCardNo",e)},expression:"form.idCardNo"}}),r("van-field",{attrs:{readonly:"",required:"",name:"realName",label:"姓名",placeholder:"请输入姓名"},model:{value:t.form.realName,callback:function(e){t.$set(t.form,"realName",e)},expression:"form.realName"}}),r("van-field",{attrs:{name:"radio",required:"",label:"性别"},scopedSlots:t._u([{key:"input",fn:function(){return[r("van-radio-group",{attrs:{direction:"horizontal"},model:{value:t.form.gender,callback:function(e){t.$set(t.form,"gender",e)},expression:"form.gender"}},[r("van-radio",{attrs:{disabled:"","checked-color":"var(--main-color)",name:1}},[t._v("男")]),r("van-radio",{attrs:{disabled:"","checked-color":"var(--main-color)",name:0}},[t._v("女")])],1)]},proxy:!0}])}),r("van-field",{attrs:{readonly:"",required:"",name:"birthdate",label:"生日",placeholder:"请选择"},model:{value:t.form.birthdate,callback:function(e){t.$set(t.form,"birthdate",e)},expression:"form.birthdate"}}),r("van-field",{attrs:{readonly:"",required:"",name:"nation",label:"民族",placeholder:"请选择"},model:{value:t.form.nation,callback:function(e){t.$set(t.form,"nation",e)},expression:"form.nation"}}),r("div",{staticClass:"title"},[t._v("证件照上传")]),r("div",{staticClass:"upload-img"},[r("van-uploader",{attrs:{"before-read":t.beforeRead,"before-delete":t.beforeDelete,"after-read":t.afterRead,accept:"image/*","max-count":1},model:{value:t.certificatePhoto,callback:function(e){t.certificatePhoto=e},expression:"certificatePhoto"}},[r("div",{staticClass:"upload-container"},[r("i",{staticClass:"icon-upload-add"}),r("p",[t._v("点击上传")])])]),t._m(0)],1),r("m-button",{staticClass:"step-btn",attrs:{text:"下一步"},on:{click:t.onSubmit}})],1)},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("p",{staticClass:"upload-tips"},[t._v("须使用免冠证件照,纯底色"),r("br"),t._v("(纯白、纯蓝或纯红)"),r("br"),t._v("(图像预览可能会异常)")])}],i=r("a34a"),s=r.n(i),o=r("6e6e"),u=r("ab6b"),c=r("04cf"),d=r("3908"),f=r("8900"),l=r("5a0c"),h=r.n(l);function m(t,e,r,n,a,i,s){try{var o=t[i](s),u=o.value}catch(c){return void r(c)}o.done?e(u):Promise.resolve(u).then(n,a)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function s(t){m(i,n,a,s,o,"next",t)}function o(t){m(i,n,a,s,o,"throw",t)}s(void 0)}))}}var v={name:"signupBaseInfo",components:{MHeader:o["a"],MStep:u["a"],MButton:c["a"]},data:function(){var t=localStorage.getItem("examId");return{examId:t,certificatePhoto:[],form:{idCardNo:null,realName:null,gender:1,birthdate:null,nation:null,certificatePhoto:null},fileList:[]}},mounted:function(){localStorage.removeItem("examRegistrationParams"),this.__init()},methods:{__init:function(){var t=p(s.a.mark((function t(){var e,r,n,a,i=this;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return Object(d["a"])(!0),t.prev=1,t.next=4,Object(f["i"])();case 4:return e=t.sent,200==e.data.code&&(r=e.data.data,this.form={idCardNo:r.idCardNo,realName:r.realName==r.phone?null:r.realName,gender:r.gender,birthdate:r.birthdate?h()(r.birthdate).format("YYYY-MM-DD"):null,nation:r.nation,certificatePhoto:r.certificatePhoto},r.certificatePhoto&&(this.certificatePhoto=[{url:r.certificatePhoto}])),t.next=8,Object(f["d"])({examinationBasicId:this.examId});case 8:n=t.sent,a=n.data,200==a.code&&a.data&&this.$dialog.confirm({title:"提示",message:"您当前有待支付订单",confirmButtonColor:"#269a93",cancelButtonText:"取消订单",confirmButtonText:"去支付"}).then((function(){i.$router.push({path:"/signUpPayment",query:{orderNo:a.data.orderNo,examRegistrationId:a.data.examRegistrationId}})})).catch((function(){var t=a.data.orderNo;i.$dialog.close(),t&&i.onCloseOrder(t)})),t.next=15;break;case 13:t.prev=13,t.t0=t["catch"](1);case 15:Object(d["a"])(!1);case 16:case"end":return t.stop()}}),t,this,[[1,13]])})));function e(){return t.apply(this,arguments)}return e}(),onCloseOrder:function(){var t=p(s.a.mark((function t(e){return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return Object(d["a"])(!0),t.next=3,Object(f["a"])({orderNo:e});case 3:Object(d["a"])(!1);case 4:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}(),onSubmit:function(){var t=p(s.a.mark((function t(){var e,r;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.onCheckFields()){t.next=2;break}return t.abrupt("return");case 2:return Object(d["a"])(!0),t.prev=3,t.next=6,Object(f["p"])(this.form);case 6:e=t.sent,Object(d["a"])(!1),r=e.data,200==r.code?this.$router.push({path:"/signUpLevel"}):this.$toast(r.msg),t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](3);case 14:case"end":return t.stop()}}),t,this,[[3,12]])})));function e(){return t.apply(this,arguments)}return e}(),onCheckFields:function(){var t=this.form;return t.idCardNo&&t.realName&&t.birthdate&&t.nation?!!t.certificatePhoto||(this.$toast("请上传证件照片"),!1):(this.$toast("请上传身份证正面进行扫描"),!1)},beforeRead2:function(t){var e=t.size/1024/1024<4;return!!e||(this.$toast("上传证书大小不能超过 4MB"),!1)},beforeRead:function(t){var e=t.size/1024/1024<2;return!!e||(this.$toast("上传证书大小不能超过 2MB"),!1)},beforeDelete:function(){return this.form.certificatePhoto="",!0},afterRead:function(){var t=p(s.a.mark((function t(e){var r,n,a;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.status="uploading",e.message="上传中...",r=new FormData,r.append("file",e.file),t.next=7,Object(f["q"])(r);case 7:if(n=t.sent,a=n.data,200!=a.code){t.next=14;break}e.status="done",this.form.certificatePhoto=a.data.url,t.next=18;break;case 14:return e.status="failed",e.message="上传失败",this.$toast(a.msg),t.abrupt("return",!1);case 18:t.next=23;break;case 20:return t.prev=20,t.t0=t["catch"](0),t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t,this,[[0,20]])})));function e(e){return t.apply(this,arguments)}return e}(),afterReadOCR:function(){var t=p(s.a.mark((function t(e){var r,n,a;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return Object(d["a"])(!0),t.prev=1,r=new FormData,r.append("file",e.file),r.append("idCardSide","front"),t.next=7,Object(f["k"])(r);case 7:if(n=t.sent,a=n.data,Object(d["a"])(!1),200!=a.code){t.next=14;break}this.idCardParse(a.data),t.next=16;break;case 14:return this.$toast(a.msg),t.abrupt("return",!1);case 16:t.next=21;break;case 18:return t.prev=18,t.t0=t["catch"](1),t.abrupt("return",!1);case 21:case"end":return t.stop()}}),t,this,[[1,18]])})));function e(e){return t.apply(this,arguments)}return e}(),idCardParse:function(t){var e,r=t.words_result;switch(t.image_status){case"normal":this.form={idCardNo:r["公民身份号码"].words,realName:r["姓名"].words,gender:"男"==r["性别"].words?1:0,birthdate:h()(r["出生"].words).format("YYYY-MM-DD"),nation:r["民族"].words,certificatePhoto:this.form.certificatePhoto};break;case"reversed_side":e="身份证正反面颠倒";break;case"non_idcard":e="上传的图片中不包含身份证";break;case"blurred":e="身份证模糊";break;case"other_type_card":e="身份证关键字段反光或过曝";break;case"over_dark":e="身份证欠曝(亮度过低)";break;default:e="上传身份证有误";break}e&&this.$toast(e)}},destroyed:function(){this.$toast.clear(),this.$dialog.close()}},b=v,g=(r("aec7"),r("2877")),$=Object(g["a"])(b,n,a,!1,null,"27c87cc7",null);e["default"]=$.exports},f0da:function(t,e,r){}}]);
|