SignUpBaseInfo.ff148601.js 22 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["SignUpBaseInfo"],{"04cf":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mbutton"},[n("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")}}},o=i,s=(n("44b1"),n("2877")),u=Object(s["a"])(o,r,a,!1,null,"78910192",null);e["a"]=u.exports},"1bf0":function(t,e,n){"use strict";var r=n("ce15"),a=n.n(r);a.a},2558:function(t,e,n){"use strict";var r=n("f0da"),a=n.n(r);a.a},3908:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));n("433b");var r=n("d399");function a(t){t?r["a"].loading({duration:0,forbidClick:!0,message:"加载中..."}):r["a"].clear()}},"44b1":function(t,e,n){"use strict";var r=n("8d52"),a=n.n(r);a.a},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",r="hour",a="day",i="week",o="month",s="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,l=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},f={s:l,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+l(r,2,"0")+":"+l(a,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,o),a=e-r<0,i=t.clone().add(n+(a?-1:1),o);return Number(-(n+(e-r)/(a?r-i:i-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:o,y:u,w:i,d:a,D:"date",h:r,m:n,s:e,ms:t,Q:s}[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 x},b=function(t,e,n){var r;if(!t)return m;if("string"==typeof t)p[t]&&(r=t),e&&(p[t]=e,r=t);else{var a=t.name;p[a]=t,r=a}return!n&&r&&(m=r),r||!n&&m},g=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new x(n)},$=f;$.l=b,$.i=v,$.w=function(t,e){return g(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var x=function(){function l(t){this.$L=this.$L||b(t.locale,null,!0),this.parse(t)}var f=l.prototype;return f.parse=function(t){this.$d=function(t){var e=t.date,n=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 r=e.match(c);if(r)return n?new Date(Date.UTC(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}return new Date(e)}(t),this.init()},f.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()},f.$utils=function(){return $},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.isSame=function(t,e){var n=g(t);return this.startOf(e)<=n&&n<=this.endOf(e)},f.isAfter=function(t,e){return g(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<g(t)},f.$g=function(t,e,n){return $.u(t)?this[e]:this.set(n,t)},f.year=function(t){return this.$g(t,"$y",u)},f.month=function(t){return this.$g(t,"$M",o)},f.day=function(t){return this.$g(t,"$W",a)},f.date=function(t){return this.$g(t,"$D","date")},f.hour=function(t){return this.$g(t,"$H",r)},f.minute=function(t){return this.$g(t,"$m",n)},f.second=function(t){return this.$g(t,"$s",e)},f.millisecond=function(e){return this.$g(e,"$ms",t)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(t,s){var c=this,d=!!$.u(s)||s,l=$.p(t),f=function(t,e){var n=$.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return d?n:n.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(l){case u:return d?f(1,0):f(31,11);case o:return d?f(1,p):f(0,p+1);case i:var g=this.$locale().weekStart||0,x=(m<g?m+7:m)-g;return f(d?v-x:v+(6-x),p);case a:case"date":return h(b+"Hours",0);case r:return h(b+"Minutes",1);case n:return h(b+"Seconds",2);case e:return h(b+"Milliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(i,s){var c,d=$.p(i),l="set"+(this.$u?"UTC":""),f=(c={},c[a]=l+"Date",c.date=l+"Date",c[o]=l+"Month",c[u]=l+"FullYear",c[r]=l+"Hours",c[n]=l+"Minutes",c[e]=l+"Seconds",c[t]=l+"Milliseconds",c)[d],h=d===a?this.$D+(s-this.$W):s;if(d===o||d===u){var m=this.clone().set("date",1);m.$d[f](h),m.init(),this.$d=m.set("date",Math.min(this.$D,m.daysInMonth())).toDate()}else f&&this.$d[f](h);return this.init(),this},f.set=function(t,e){return this.clone().$set(t,e)},f.get=function(t){return this[$.p(t)]()},f.add=function(t,s){var c,d=this;t=Number(t);var l=$.p(s),f=function(e){var n=g(d);return $.w(n.date(n.date()+Math.round(e*t)),d)};if(l===o)return this.set(o,this.$M+t);if(l===u)return this.set(u,this.$y+t);if(l===a)return f(1);if(l===i)return f(7);var h=(c={},c[n]=6e4,c[r]=36e5,c[e]=1e3,c)[l]||1,m=this.$d.getTime()+t*h;return $.w(m,this)},f.subtract=function(t,e){return this.add(-1*t,e)},f.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var n=t||"YYYY-MM-DDTHH:mm:ssZ",r=$.z(this),a=this.$locale(),i=this.$H,o=this.$m,s=this.$M,u=a.weekdays,c=a.months,l=function(t,r,a,i){return t&&(t[r]||t(e,n))||a[r].substr(0,i)},f=function(t){return $.s(i%12||12,t,"0")},h=a.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:$.s(s+1,2,"0"),MMM:l(a.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:$.s(this.$D,2,"0"),d:String(this.$W),dd:l(a.weekdaysMin,this.$W,u,2),ddd:l(a.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:$.s(i,2,"0"),h:f(1),hh:f(2),a:h(i,o,!0),A:h(i,o,!1),m:String(o),mm:$.s(o,2,"0"),s:String(this.$s),ss:$.s(this.$s,2,"0"),SSS:$.s(this.$ms,3,"0"),Z:r};return n.replace(d,(function(t,e){return e||m[t]||r.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(t,c,d){var l,f=$.p(c),h=g(t),m=6e4*(h.utcOffset()-this.utcOffset()),p=this-h,v=$.m(this,h);return v=(l={},l[u]=v/12,l[o]=v,l[s]=v/3,l[i]=(p-m)/6048e5,l[a]=(p-m)/864e5,l[r]=p/36e5,l[n]=p/6e4,l[e]=p/1e3,l)[f]||p,d?v:$.a(v)},f.daysInMonth=function(){return this.endOf(o).$D},f.$locale=function(){return p[this.$L]},f.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=b(t,e,!0);return r&&(n.$L=r),n},f.clone=function(){return $.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},l}();return g.prototype=x.prototype,g.extend=function(t,e){return t(e,x,g),g},g.locale=b,g.isDayjs=v,g.unix=function(t){return g(1e3*t)},g.en=p[m],g.Ls=p,g}))},6746:function(t,e,n){},"6e6e":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mheader"},[n("header",{staticClass:"m-nav-header",class:[{fixed:t.isFixed},{headerColor:t.isColor}]},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[n("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),n("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:t.$route.meta.description))])],2),n("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)}}},o=i,s=(n("2558"),n("2877")),u=Object(s["a"])(o,r,a,!1,null,"9865a7b0",null);e["a"]=u.exports},8900:function(t,e,n){"use strict";n.d(e,"o",(function(){return o})),n.d(e,"p",(function(){return s})),n.d(e,"m",(function(){return u})),n.d(e,"d",(function(){return c})),n.d(e,"j",(function(){return d})),n.d(e,"q",(function(){return l})),n.d(e,"l",(function(){return f})),n.d(e,"r",(function(){return h})),n.d(e,"i",(function(){return m})),n.d(e,"g",(function(){return p})),n.d(e,"h",(function(){return v})),n.d(e,"b",(function(){return b})),n.d(e,"c",(function(){return g})),n.d(e,"k",(function(){return $})),n.d(e,"e",(function(){return x})),n.d(e,"f",(function(){return _})),n.d(e,"n",(function(){return y})),n.d(e,"a",(function(){return w}));var r=n("4328"),a=n.n(r),i=n("981f").default;function o(t){return i({url:"/api-auth/code/sendSms",method:"post",data:a.a.stringify(t)})}function s(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 l(t){return i({url:"/api-user/student/updateInfo",method:"post",data:a.a.stringify(t)})}function f(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/examRegistration/update",method:"post",data:t})}function $(t){return i({url:"/api-user/examMusicTheory/getTheoryLevelList",method:"get",params:t})}function x(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 y(t){return i({url:"/api-user/examRegistration/repay",method:"post",data:a.a.stringify(t)})}function w(t){return i({url:"/api-user/examOrder/closeOrder",method:"post",data:a.a.stringify(t)})}},"8d52":function(t,e,n){},a298:function(t,e,n){"use strict";var r=n("6746"),a=n.n(r);a.a},a34a:function(t,e,n){t.exports=n("96cf")},ab6b:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mStep"},[n("div",{staticClass:"step"},t._l(t.imgUrlList,(function(e,r){return n("div",{key:r,staticClass:"step-item"},[t.number>=e.index?n("svg-icon",{key:"oneImg",attrs:{iconClass:e.active}}):n("svg-icon",{key:"oneImg",attrs:{iconClass:e.default}}),n("p",{class:[t.number>=e.index?e.activeClass:""]},[t._v(t._s(e.text))])],1)})),0)])},a=[],i=n("0032"),o={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:{}},s=o,u=(n("a298"),n("2877")),c=Object(u["a"])(s,r,a,!1,null,"7eaaf7a9",null);e["a"]=c.exports},b48b:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=/^(?:(?:\+|00)86)?1[3-9]\d{9}$/,a=/(^\d{8}(0\d|10|11|12)([0-2]\d|30|31)\d{3}$)|(^\d{6}(18|19|20)\d{2}(0[1-9]|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$)/;function i(t){var e=!0;return a.test(t)||(e=!1),e}},beaf:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"signupBaseInfo"},[n("m-header"),n("m-step",{attrs:{number:2}}),n("div",{staticClass:"title"},[t._v("基本信息")]),n("van-field",{attrs:{required:"",name:"idCardNo",label:"身份证号",placeholder:"请输入身份证号"},on:{blur:t.onCardNo},scopedSlots:t._u([{key:"button",fn:function(){return[n("div",{staticClass:"cropper"},[n("i",{staticClass:"icon-scan"}),n("h5-cropper",{attrs:{option:t.option},on:{getFile:t.getFile}})],1)]},proxy:!0}]),model:{value:t.form.idCardNo,callback:function(e){t.$set(t.form,"idCardNo",e)},expression:"form.idCardNo"}}),n("van-field",{attrs:{required:"",name:"realName",label:"姓名",placeholder:"请输入姓名"},model:{value:t.form.realName,callback:function(e){t.$set(t.form,"realName",e)},expression:"form.realName"}}),n("van-field",{attrs:{required:"",name:"radio",label:"性别"},scopedSlots:t._u([{key:"input",fn:function(){return[n("van-radio-group",{attrs:{direction:"horizontal"},model:{value:t.form.gender,callback:function(e){t.$set(t.form,"gender",e)},expression:"form.gender"}},[n("van-radio",{attrs:{"checked-color":"@--main-color",name:1}},[t._v("男")]),n("van-radio",{attrs:{"checked-color":"@--main-color",name:0}},[t._v("女")])],1)]},proxy:!0}])}),n("van-field",{attrs:{required:"",readonly:"",name:"birthdate","is-link":"",label:"生日",placeholder:"请选择生日"},on:{click:t.onChangeDate},model:{value:t.form.birthdate,callback:function(e){t.$set(t.form,"birthdate",e)},expression:"form.birthdate"}}),n("van-field",{attrs:{required:"",name:"nation",label:"民族",placeholder:"请输入民族"},model:{value:t.form.nation,callback:function(e){t.$set(t.form,"nation",e)},expression:"form.nation"}}),n("div",{staticClass:"title"},[t._v("证件照上传")]),n("div",{staticClass:"upload-img"},[n("div",{staticClass:"cropper2"},[n("van-image",{attrs:{width:"100%",height:"100%",src:t.form.certificatePhoto},scopedSlots:t._u([{key:"loading",fn:function(){return[n("div",{staticClass:"upload-container"},[n("i",{staticClass:"icon-upload-add"}),n("p",[t._v("点击上传")])])]},proxy:!0},{key:"error",fn:function(){return[n("div",{staticClass:"upload-container"},[n("i",{staticClass:"icon-upload-add"}),n("p",[t._v("点击上传")])])]},proxy:!0}])}),n("h5-cropper",{attrs:{option:t.option2},on:{getFile:t.getFilePhoto}})],1),t._m(0)]),n("m-button",{staticClass:"step-btn",attrs:{text:"下一步"},on:{click:t.onSubmit}}),n("van-popup",{attrs:{position:"bottom"},model:{value:t.birthdateShow,callback:function(e){t.birthdateShow=e},expression:"birthdateShow"}},[n("van-datetime-picker",{attrs:{type:"date","min-date":t.minDate,"max-date":t.maxDate,formatter:t.formatter},on:{cancel:function(e){t.birthdateShow=!1},confirm:t.onConfirm},model:{value:t.currentDate,callback:function(e){t.currentDate=e},expression:"currentDate"}})],1)],1)},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"upload-tips"},[t._v("须使用免冠证件照,纯底色"),n("br"),t._v("(纯白、纯蓝或纯红)"),n("br"),t._v("(图像预览可能会异常)")])}],i=n("a34a"),o=n.n(i),s=n("6e6e"),u=n("ab6b"),c=n("04cf"),d=n("3908"),l=n("5dd4"),f=n.n(l),h=n("8900"),m=n("b48b"),p=n("5a0c"),v=n.n(p);function b(t,e,n,r,a,i,o){try{var s=t[i](o),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,a)}function g(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(t){b(i,r,a,o,s,"next",t)}function s(t){b(i,r,a,o,s,"throw",t)}o(void 0)}))}}var $={name:"signupBaseInfo",components:{MHeader:s["a"],MStep:u["a"],MButton:c["a"],H5Cropper:f.a},data:function(){var t=localStorage.getItem("examId");return{birthdateShow:!1,examId:t,certificatePhoto:[],minDate:new Date(1940,0,1),maxDate:new Date,currentDate:new Date,form:{idCardNo:null,realName:null,gender:1,birthdate:null,nation:null,certificatePhoto:null},fileList:[],option:{canScale:!0,fixedNumber:[3,2],img:"",size:1,info:!0,full:!1,canMove:!0,fixedBox:!1,original:!1,canMoveBox:!0,autoCrop:!0,centerBox:!1,high:!0,ceilbutton:!0},option2:{canScale:!0,fixedNumber:[5,7],img:"",size:1,info:!0,full:!1,canMove:!0,fixedBox:!1,original:!1,canMoveBox:!0,autoCrop:!0,centerBox:!1,high:!0,ceilbutton:!0},photoUrl:null}},mounted:function(){localStorage.removeItem("examRegistrationParams"),this.__init()},methods:{formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):"day"===t?"".concat(e,"日"):e},onCardNo:function(){var t=this.form;if(Object(m["b"])(t.idCardNo)){var e=this.getBirth(t.idCardNo),n=this.getSex(t.idCardNo);t.gender=n,t.birthdate=e}else this.$toast("输入身份证号有误")},getBirth:function(t){var e="";return null!=t&&""!=t&&(15==t.length?e="19"+t.slice(6,12):18==t.length&&(e=t.slice(6,14)),e=e.replace(/(.{4})(.{2})/,"$1-$2-")),e},getSex:function(t){var e=null;return e=parseInt(t.slice(-2,-1))%2==1?1:0,e},onConfirm:function(t){this.form.birthdate=v()(t).format("YYYY-MM-DD"),this.birthdateShow=!1},onChangeDate:function(){this.birthdateShow=!0,this.form.birthdate&&(this.currentDate=new Date(v()(this.form.birthdate)))},getFile:function(){var t=g(o.a.mark((function t(e){var n,r,a;return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return Object(d["a"])(!0),t.prev=1,n=new FormData,n.append("file",e),n.append("idCardSide","front"),t.next=7,Object(h["l"])(n);case 7:if(r=t.sent,a=r.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=22;break;case 18:return t.prev=18,t.t0=t["catch"](1),Object(d["a"])(!1),t.abrupt("return",!1);case 22:case"end":return t.stop()}}),t,this,[[1,18]])})));function e(e){return t.apply(this,arguments)}return e}(),getFilePhoto:function(){var t=g(o.a.mark((function t(e){var n,r,a;return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return Object(d["a"])(!0),t.prev=1,n=new FormData,n.append("file",e),n.append("idCardSide","front"),t.next=7,Object(h["r"])(n);case 7:if(r=t.sent,a=r.data,Object(d["a"])(!1),200!=a.code){t.next=14;break}this.form.certificatePhoto=a.data.url,t.next=16;break;case 14:return this.$toast(a.msg),t.abrupt("return",!1);case 16:t.next=22;break;case 18:return t.prev=18,t.t0=t["catch"](1),Object(d["a"])(!1),t.abrupt("return",!1);case 22:case"end":return t.stop()}}),t,this,[[1,18]])})));function e(e){return t.apply(this,arguments)}return e}(),__init:function(){var t=g(o.a.mark((function t(){var e,n,r,a,i=this;return o.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(h["j"])();case 4:return e=t.sent,200==e.data.code&&(n=e.data.data,this.form={idCardNo:n.idCardNo,realName:n.realName==n.phone?null:n.realName,gender:n.gender,birthdate:n.birthdate?v()(n.birthdate).format("YYYY-MM-DD"):null,nation:n.nation,certificatePhoto:n.certificatePhoto},n.certificatePhoto&&(this.certificatePhoto=[{url:n.certificatePhoto}])),t.next=8,Object(h["e"])({examinationBasicId:this.examId});case 8:r=t.sent,a=r.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=g(o.a.mark((function t(e){return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return Object(d["a"])(!0),t.next=3,Object(h["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=g(o.a.mark((function t(){var e,n;return o.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(h["q"])(this.form);case 6:e=t.sent,Object(d["a"])(!1),n=e.data,200==n.code?this.$router.push({path:"/signUpLevel"}):this.$toast(n.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 Object(m["b"])(t.idCardNo)?t.realName?t.birthdate?t.nation?!!t.certificatePhoto||(this.$toast("请上传证件照片"),!1):(this.$toast("请输入民族"),!1):(this.$toast("请选择生日"),!1):(this.$toast("请输入姓名"),!1):(this.$toast("输入身份证号有误"),!1)},idCardParse:function(t){var e,n=t.words_result;switch(t.image_status){case"normal":this.form={idCardNo:n["公民身份号码"].words,realName:n["姓名"].words,gender:"男"==n["性别"].words?1:0,birthdate:v()(n["出生"].words).format("YYYY-MM-DD"),nation:n["民族"].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()}},x=$,_=(n("1bf0"),n("2877")),y=Object(_["a"])(x,r,a,!1,null,"5ea339a3",null);e["default"]=y.exports},ce15:function(t,e,n){},f0da:function(t,e,n){}}]);