SignUpPayment.5797d033.js 34 KB

12345678
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["SignUpPayment"],{"1a6a":function(t,e,n){},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()}},4053: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:"signUpPayment"},[n("m-header"),n("m-step",{attrs:{number:4}}),n("van-cell-group",[n("van-cell",{attrs:{title:"报考专业:",border:!1},scopedSlots:t._u([{key:"default",fn:function(){return[t._v(t._s(t.orderInfo.subjectName))]},proxy:!0}])}),n("van-cell",{attrs:{title:"乐理知识:",border:!1},scopedSlots:t._u([{key:"default",fn:function(){return[t._v(t._s(t.orderInfo.examMusicTheoryLevel))]},proxy:!0}])}),n("van-cell",{attrs:{title:"预计考试日期:",border:!1},scopedSlots:t._u([{key:"default",fn:function(){return[t._v(t._s(t.orderInfo.examStartTime))]},proxy:!0}])}),n("van-cell",{attrs:{title:"报名费用:",border:!1},scopedSlots:t._u([{key:"default",fn:function(){return[t._v("¥"+t._s(t.orderInfo.fee))]},proxy:!0}])})],1),n("div",{staticClass:"notice"},[t._v("\n 请考生于考试两周前严格按照系统要求进行报名及缴费,确保所填信息准确无误,确认之后所有信息无法更改,如因填写内容有误而造成损失,责任由报考者本人承担;请考生在报名缴费前确认可在考试时间内参加考试,最终以准考证上的考试信息为准,请务必按照要求参加考试,否则视为弃考。考生如无法保证按照准考证信息参加考试请慎重报考,报名费用一旦支付后均不允许更改报考级别或退款。\n ")]),n("div",{staticClass:"pay-group"},[n("div",{staticClass:"pay-amount"},[n("span",[t._v("¥")]),t._v(t._s(t.orderInfo.fee)+"\n ")]),n("div",{staticClass:"pay-btn"},[n("van-button",{attrs:{color:"#2DC7AA",round:""},on:{click:t.onSubmit}},[t._v("确认并支付")])],1)]),n("m-payment",{attrs:{closeStatus:t.isStatus,amount:Number(t.payMoney),payment:t.payment},on:{onChangeStatus:t.onChangeStatus}})],1)},a=[],i=n("a34a"),o=n.n(i),s=n("6e6e"),u=n("ab6b"),c=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mpayment"},[r("van-popup",{style:{minHeight:"30%"},attrs:{"close-on-click-overlay":!1,"close-icon-position":"top-left",position:"bottom",round:"",closeOnPopstate:!0,"safe-area-inset-bottom":!0},model:{value:t.isShow,callback:function(e){t.isShow=e},expression:"isShow"}},[r("i",{staticClass:"van-icon van-icon-cross van-popup__close-icon van-popup__close-icon--top-left",on:{click:t.onClose}}),r("div",{staticClass:"title van-hairline--bottom"},[t._v("选择支付方式")]),r("div",{staticClass:"payAmount"},[r("p",[t._v("应付金额")]),r("div",{staticClass:"amount"},[t._v(t._s(t.payAmount)),r("span",[t._v("元")])])]),r("van-radio-group",{model:{value:t.payType,callback:function(e){t.payType=e},expression:"payType"}},[r("div",{staticClass:"payment-item van-hairline--bottom",on:{click:function(e){t.payType="zfb"}}},[r("div",{staticClass:"logo-section"},[r("img",{staticClass:"logo",attrs:{src:n("9c08"),alt:""}})]),r("div",{staticClass:"title-section"},[t._v("支付宝支付")]),r("div",{staticClass:"value-section"},[r("van-radio",{attrs:{name:"zfb"}})],1)]),r("div",{staticClass:"payment-item",on:{click:function(e){t.payType="wx"}}},[r("div",{staticClass:"logo-section"},[r("img",{staticClass:"logo",attrs:{src:n("8f37"),alt:""}})]),r("div",{staticClass:"title-section"},[t._v("微信支付")]),r("div",{staticClass:"value-section"},[r("van-radio",{attrs:{name:"wx"}})],1)])]),r("div",{staticClass:"blank"}),r("van-button",{attrs:{type:"primary",block:""},on:{click:t.onSubmit}},[t._v("确认支付")])],1)],1)},l=[],f=n("cf45"),d={name:"mHeader",props:{closeStatus:{type:Boolean,default:!1},amount:{type:Number,default:0},payment:{type:Object}},data:function(){return{isShow:this.closeStatus,payAmount:this.amount,paymentObject:this.payment,payType:"zfb"}},methods:{onClose:function(){var t=this;this.$dialog.confirm({message:"是否放弃本次付款",confirmButtonText:"继续付款",cancelButtonText:"放弃"}).then((function(){})).catch((function(){t.isShow=!1,t.$emit("onChangeStatus",t.isShow)}))},onSubmit:function(){var t=this.payType,e=window.navigator.userAgent.toLowerCase();"micromessenger"==e.match(/MicroMessenger/i)?"zfb"==t?(this.pay_channel="alipay_qr",this.getCodePay("qrCode")):"wx"==t&&(this.pay_channel="wx_pub",this.getCodePay("pay")):"alipayclient"==e.match(/AlipayClient/i)?"zfb"==t?(this.pay_channel="alipay_wap",this.getCodePay("pay")):"wx"==t&&(this.pay_channel="wx_pub",this.getCodePay("qrCode")):("zfb"==t?this.pay_channel="alipay_qr":"wx"==t&&(this.pay_channel="wx_pub"),this.getCodePay("qrCode"))},getCodePay:function(t){var e="qrCode"==t?"/payQRCode":"/payResult";this.$router.push({path:e,query:{payType:this.pay_channel,payment:JSON.stringify(this.paymentObject)}})}},watch:{closeStatus:function(t){this.isShow=t},amount:function(t){this.payAmount=Object(f["b"])(t)},payment:function(t){this.paymentObject=t}}},m=d,h=(n("b175"),n("2877")),p=Object(h["a"])(m,c,l,!1,null,"204e6bcc",null),y=p.exports,v=n("5a0c"),g=n.n(v),b=n("6612"),A=n.n(b),_=n("8900"),x=n("3908");function w(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 S(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(t){w(i,r,a,o,s,"next",t)}function s(t){w(i,r,a,o,s,"throw",t)}o(void 0)}))}}var M={1:"一级",2:"二级",3:"三级",4:"四级",5:"五级",6:"六级",7:"七级",8:"八级",9:"九级",10:"十级"},C={name:"signUpPayment",components:{MHeader:s["a"],MStep:u["a"],MPayment:y},data:function(){var t=this.$route.query,e=localStorage.getItem("examRegistrationParams")?JSON.parse(localStorage.getItem("examRegistrationParams")):null;return{orderNo:t.orderNo,examRegistrationId:t.examRegistrationId,payMoney:0,orderInfo:{fee:0},params:e,payMap:{},isStatus:!1,paymentResult:null,payment:{}}},mounted:function(){this.__init()},methods:{__init:function(){var t=S(o.a.mark((function t(){var e,n,r;return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(Object(x["a"])(!0),t.prev=1,this.examRegistrationId){t.next=6;break}return Object(x["a"])(!1),this.params?this.onParse(this.params):window.history.go(-1),t.abrupt("return");case 6:return t.next=8,Object(_["f"])({examRegistrationId:this.examRegistrationId});case 8:e=t.sent,Object(x["a"])(!1),n=e.data,200==n.code?(r=n.data,this.onParse(r)):this.$toast(n.msg),t.next=16;break;case 14:t.prev=14,t.t0=t["catch"](1);case 16:case"end":return t.stop()}}),t,this,[[1,14]])})));function e(){return t.apply(this,arguments)}return e}(),onParse:function(t){var e=A()(t.theoryLevelFee).add(t.levelFee),n=e.value(),r=t.examMusicTheoryLevel?M[t.examMusicTheoryLevel]+"/¥".concat(A()(t.theoryLevelFee).value()):"免考",a={studentName:t.studentName,subjectName:t.subjectName+"(".concat(M[t.level],"/¥").concat(A()(t.levelFee).value(),")"),examMusicTheoryLevel:r,examStartTime:g()(t.examStartTime).format("YYYY-MM-DD"),fee:A()(n).format("0,0.00")};this.payMoney=n,this.orderInfo=a},onChangeStatus:function(t){this.isStatus=t},onSubmit:function(){var t=S(o.a.mark((function t(){return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.orderNo){t.next=5;break}return this.onRePay(),t.abrupt("return");case 5:this.onExamRegistration();case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onExamRegistration:function(){var t=S(o.a.mark((function t(){var e,n,r,a,i;return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return Object(x["a"])(!0),t.prev=1,t.next=4,Object(_["b"])(this.params);case 4:e=t.sent,Object(x["a"])(!1),n=e.data,200==n.code?(this.payMap=n.data.payMap,this.paymentResult=n.data.payMap,r=n.data.payMap.orderNo,this.orderNo=r,a=n.data.examRegister.id,i=window.location.origin,history.replaceState("","Title","".concat(i,"/#/signUpPayment?orderNo=").concat(r,"&examRegistrationId=").concat(a)),this.onSubmitPay()):this.$toast(n.msg),t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](1);case 12:case"end":return t.stop()}}),t,this,[[1,10]])})));function e(){return t.apply(this,arguments)}return e}(),onRePay:function(){var t=S(o.a.mark((function t(){var e,n,r,a,i;return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return Object(x["a"])(!0),t.prev=1,t.next=4,Object(_["n"])({orderNo:this.orderNo});case 4:e=t.sent,Object(x["a"])(!1),n=e.data,200==n.code?(this.payMap=n.data.payMap,this.paymentResult=n.data.payMap,r=n.data.payMap.orderNo,this.orderNo=r,a=n.data.examRegister.id,i=window.location.origin,history.replaceState("","Title","".concat(i,"/#/signUpPayment?orderNo=").concat(r,"&examRegistrationId=").concat(a)),this.onSubmitPay()):this.$toast(n.msg),t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](1);case 12:case"end":return t.stop()}}),t,this,[[1,10]])})));function e(){return t.apply(this,arguments)}return e}(),onSubmitPay:function(){var t=this.payMap;if("YQPAY"==t.type){var e=t.payMap;document.querySelector("#onSubmit").action=e.host,document.querySelector("#apiContent").value=e.apiContent,document.querySelector("#merNo").value=e.merNo,document.querySelector("#notifyUrl").value=e.notifyUrl,document.querySelector("#sign").value=e.sign,document.querySelector("#signType").value=e.signType,document.querySelector("#timestamp").value=e.timestamp,document.querySelector("#version").value=e.version,document.querySelector("#onSubmit").submit()}else"ADAPAY"==t.type&&(this.payment=t,this.isStatus=!0)}},destroyed:function(){window.removeEventListener("popstate",(function(){}))}},$=C,k=(n("dfca"),Object(h["a"])($,r,a,!1,null,"c080ead0",null));e["default"]=k.exports},"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})?$/,l=/\[([^\]]+)]|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,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},d={s:f,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+f(r,2,"0")+":"+f(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}},m={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("_")},h="en",p={};p[h]=m;var y=function(t){return t instanceof A},v=function(t,e,n){var r;if(!t)return h;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&&(h=r),r||!n&&h},g=function(t,e){if(y(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new A(n)},b=d;b.l=v,b.i=y,b.w=function(t,e){return g(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var A=function(){function f(t){this.$L=this.$L||v(t.locale,null,!0),this.parse(t)}var d=f.prototype;return d.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.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()},d.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()},d.$utils=function(){return b},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(t,e){var n=g(t);return this.startOf(e)<=n&&n<=this.endOf(e)},d.isAfter=function(t,e){return g(t)<this.startOf(e)},d.isBefore=function(t,e){return this.endOf(e)<g(t)},d.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},d.year=function(t){return this.$g(t,"$y",u)},d.month=function(t){return this.$g(t,"$M",o)},d.day=function(t){return this.$g(t,"$W",a)},d.date=function(t){return this.$g(t,"$D","date")},d.hour=function(t){return this.$g(t,"$H",r)},d.minute=function(t){return this.$g(t,"$m",n)},d.second=function(t){return this.$g(t,"$s",e)},d.millisecond=function(e){return this.$g(e,"$ms",t)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(t,s){var c=this,l=!!b.u(s)||s,f=b.p(t),d=function(t,e){var n=b.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return l?n:n.endOf(a)},m=function(t,e){return b.w(c.toDate()[t].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},h=this.$W,p=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case u:return l?d(1,0):d(31,11);case o:return l?d(1,p):d(0,p+1);case i:var g=this.$locale().weekStart||0,A=(h<g?h+7:h)-g;return d(l?y-A:y+(6-A),p);case a:case"date":return m(v+"Hours",0);case r:return m(v+"Minutes",1);case n:return m(v+"Seconds",2);case e:return m(v+"Milliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(i,s){var c,l=b.p(i),f="set"+(this.$u?"UTC":""),d=(c={},c[a]=f+"Date",c.date=f+"Date",c[o]=f+"Month",c[u]=f+"FullYear",c[r]=f+"Hours",c[n]=f+"Minutes",c[e]=f+"Seconds",c[t]=f+"Milliseconds",c)[l],m=l===a?this.$D+(s-this.$W):s;if(l===o||l===u){var h=this.clone().set("date",1);h.$d[d](m),h.init(),this.$d=h.set("date",Math.min(this.$D,h.daysInMonth())).toDate()}else d&&this.$d[d](m);return this.init(),this},d.set=function(t,e){return this.clone().$set(t,e)},d.get=function(t){return this[b.p(t)]()},d.add=function(t,s){var c,l=this;t=Number(t);var f=b.p(s),d=function(e){var n=g(l);return b.w(n.date(n.date()+Math.round(e*t)),l)};if(f===o)return this.set(o,this.$M+t);if(f===u)return this.set(u,this.$y+t);if(f===a)return d(1);if(f===i)return d(7);var m=(c={},c[n]=6e4,c[r]=36e5,c[e]=1e3,c)[f]||1,h=this.$d.getTime()+t*m;return b.w(h,this)},d.subtract=function(t,e){return this.add(-1*t,e)},d.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var n=t||"YYYY-MM-DDTHH:mm:ssZ",r=b.z(this),a=this.$locale(),i=this.$H,o=this.$m,s=this.$M,u=a.weekdays,c=a.months,f=function(t,r,a,i){return t&&(t[r]||t(e,n))||a[r].substr(0,i)},d=function(t){return b.s(i%12||12,t,"0")},m=a.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:b.s(s+1,2,"0"),MMM:f(a.monthsShort,s,c,3),MMMM:f(c,s),D:this.$D,DD:b.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:b.s(i,2,"0"),h:d(1),hh:d(2),a:m(i,o,!0),A:m(i,o,!1),m:String(o),mm:b.s(o,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:r};return n.replace(l,(function(t,e){return e||h[t]||r.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(t,c,l){var f,d=b.p(c),m=g(t),h=6e4*(m.utcOffset()-this.utcOffset()),p=this-m,y=b.m(this,m);return y=(f={},f[u]=y/12,f[o]=y,f[s]=y/3,f[i]=(p-h)/6048e5,f[a]=(p-h)/864e5,f[r]=p/36e5,f[n]=p/6e4,f[e]=p/1e3,f)[d]||p,l?y:b.a(y)},d.daysInMonth=function(){return this.endOf(o).$D},d.$locale=function(){return p[this.$L]},d.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=v(t,e,!0);return r&&(n.$L=r),n},d.clone=function(){return b.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},f}();return g.prototype=A.prototype,g.extend=function(t,e){return t(e,A,g),g},g.locale=v,g.isDayjs=y,g.unix=function(t){return g(1e3*t)},g.en=p[h],g.Ls=p,g}))},6612:function(t,e,n){var r,a;
  2. /*! @preserve
  3. * numeral.js
  4. * version : 2.0.6
  5. * author : Adam Draper
  6. * license : MIT
  7. * http://adamwdraper.github.com/Numeral-js/
  8. */(function(i,o){r=o,a="function"===typeof r?r.call(e,n,e,t):r,void 0===a||(t.exports=a)})(0,(function(){var t,e,n="2.0.6",r={},a={},i={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},o={currentLocale:i.currentLocale,zeroFormat:i.zeroFormat,nullFormat:i.nullFormat,defaultFormat:i.defaultFormat,scalePercentBy100:i.scalePercentBy100};function s(t,e){this._input=t,this._value=e}return t=function(n){var a,i,u,c;if(t.isNumeral(n))a=n.value();else if(0===n||"undefined"===typeof n)a=0;else if(null===n||e.isNaN(n))a=null;else if("string"===typeof n)if(o.zeroFormat&&n===o.zeroFormat)a=0;else if(o.nullFormat&&n===o.nullFormat||!n.replace(/[^0-9]+/g,"").length)a=null;else{for(i in r)if(c="function"===typeof r[i].regexps.unformat?r[i].regexps.unformat():r[i].regexps.unformat,c&&n.match(c)){u=r[i].unformat;break}u=u||t._.stringToNumber,a=u(n)}else a=Number(n)||null;return new s(n,a)},t.version=n,t.isNumeral=function(t){return t instanceof s},t._=e={numberToFormat:function(e,n,r){var i,o,s,u,c,l,f,d=a[t.options.currentLocale],m=!1,h=!1,p=0,y="",v=1e12,g=1e9,b=1e6,A=1e3,_="",x=!1;if(e=e||0,o=Math.abs(e),t._.includes(n,"(")?(m=!0,n=n.replace(/[\(|\)]/g,"")):(t._.includes(n,"+")||t._.includes(n,"-"))&&(c=t._.includes(n,"+")?n.indexOf("+"):e<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),t._.includes(n,"a")&&(i=n.match(/a(k|m|b|t)?/),i=!!i&&i[1],t._.includes(n," a")&&(y=" "),n=n.replace(new RegExp(y+"a[kmbt]?"),""),o>=v&&!i||"t"===i?(y+=d.abbreviations.trillion,e/=v):o<v&&o>=g&&!i||"b"===i?(y+=d.abbreviations.billion,e/=g):o<g&&o>=b&&!i||"m"===i?(y+=d.abbreviations.million,e/=b):(o<b&&o>=A&&!i||"k"===i)&&(y+=d.abbreviations.thousand,e/=A)),t._.includes(n,"[.]")&&(h=!0,n=n.replace("[.]",".")),s=e.toString().split(".")[0],u=n.split(".")[1],l=n.indexOf(","),p=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(t._.includes(u,"[")?(u=u.replace("]",""),u=u.split("["),_=t._.toFixed(e,u[0].length+u[1].length,r,u[1].length)):_=t._.toFixed(e,u.length,r),s=_.split(".")[0],_=t._.includes(_,".")?d.delimiters.decimal+_.split(".")[1]:"",h&&0===Number(_.slice(1))&&(_="")):s=t._.toFixed(e,0,r),y&&!i&&Number(s)>=1e3&&y!==d.abbreviations.trillion)switch(s=String(Number(s)/1e3),y){case d.abbreviations.thousand:y=d.abbreviations.million;break;case d.abbreviations.million:y=d.abbreviations.billion;break;case d.abbreviations.billion:y=d.abbreviations.trillion;break}if(t._.includes(s,"-")&&(s=s.slice(1),x=!0),s.length<p)for(var w=p-s.length;w>0;w--)s="0"+s;return l>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===n.indexOf(".")&&(s=""),f=s+_+(y||""),m?f=(m&&x?"(":"")+f+(m&&x?")":""):c>=0?f=0===c?(x?"-":"+")+f:f+(x?"-":"+"):x&&(f="-"+f),f},stringToNumber:function(t){var e,n,r,i=a[o.currentLocale],s=t,u={thousand:3,million:6,billion:9,trillion:12};if(o.zeroFormat&&t===o.zeroFormat)n=0;else if(o.nullFormat&&t===o.nullFormat||!t.replace(/[^0-9]+/g,"").length)n=null;else{for(e in n=1,"."!==i.delimiters.decimal&&(t=t.replace(/\./g,"").replace(i.delimiters.decimal,".")),u)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[e]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),s.match(r)){n*=Math.pow(10,u[e]);break}n*=(t.split("-").length+Math.min(t.split("(").length-1,t.split(")").length-1))%2?1:-1,t=t.replace(/[^0-9\.]+/g,""),n*=Number(t)}return n},isNaN:function(t){return"number"===typeof t&&isNaN(t)},includes:function(t,e){return-1!==t.indexOf(e)},insert:function(t,e,n){return t.slice(0,n)+e+t.slice(n)},reduce:function(t,e){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof e)throw new TypeError(e+" is not a function");var n,r=Object(t),a=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{while(i<a&&!(i in r))i++;if(i>=a)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;i<a;i++)i in r&&(n=e(n,r[i],i,r));return n},multiplier:function(t){var e=t.toString().split(".");return e.length<2?1:Math.pow(10,e[1].length)},correctionFactor:function(){var t=Array.prototype.slice.call(arguments);return t.reduce((function(t,n){var r=e.multiplier(n);return t>r?t:r}),1)},toFixed:function(t,e,n,r){var a,i,o,s,u=t.toString().split("."),c=e-(r||0);return a=2===u.length?Math.min(Math.max(u[1].length,c),e):c,o=Math.pow(10,a),s=(n(t+"e+"+a)/o).toFixed(a),r>e-a&&(i=new RegExp("\\.?0{1,"+(r-(e-a))+"}$"),s=s.replace(i,"")),s}},t.options=o,t.formats=r,t.locales=a,t.locale=function(t){return t&&(o.currentLocale=t.toLowerCase()),o.currentLocale},t.localeData=function(t){if(!t)return a[o.currentLocale];if(t=t.toLowerCase(),!a[t])throw new Error("Unknown locale : "+t);return a[t]},t.reset=function(){for(var t in i)o[t]=i[t]},t.zeroFormat=function(t){o.zeroFormat="string"===typeof t?t:null},t.nullFormat=function(t){o.nullFormat="string"===typeof t?t:null},t.defaultFormat=function(t){o.defaultFormat="string"===typeof t?t:"0.0"},t.register=function(t,e,n){if(e=e.toLowerCase(),this[t+"s"][e])throw new TypeError(e+" "+t+" already registered.");return this[t+"s"][e]=n,n},t.validate=function(e,n){var r,a,i,o,s,u,c,l;if("string"!==typeof e&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),e=e.trim(),e.match(/^\d+$/))return!0;if(""===e)return!1;try{c=t.localeData(n)}catch(f){c=t.localeData(t.locale())}return i=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,a="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,l=e.match(/^[^\d]+/),(null===l||(e=e.substr(1),l[0]===i))&&(l=e.match(/[^\d]+$/),(null===l||(e=e.slice(0,-1),l[0]===s.thousand||l[0]===s.million||l[0]===s.billion||l[0]===s.trillion))&&(u=new RegExp(a+"{2}"),!e.match(/[^\d.,]/g)&&(o=e.split(r),!(o.length>2)&&(o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u):1===o[0].length?!!o[0].match(/^\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)))))},t.fn=s.prototype={clone:function(){return t(this)},format:function(e,n){var a,i,s,u=this._value,c=e||o.defaultFormat;if(n=n||Math.round,0===u&&null!==o.zeroFormat)i=o.zeroFormat;else if(null===u&&null!==o.nullFormat)i=o.nullFormat;else{for(a in r)if(c.match(r[a].regexps.format)){s=r[a].format;break}s=s||t._.numberToFormat,i=s(u,c,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(t){return this._value=Number(t),this},add:function(t){var n=e.correctionFactor.call(null,this._value,t);function r(t,e,r,a){return t+Math.round(n*e)}return this._value=e.reduce([this._value,t],r,0)/n,this},subtract:function(t){var n=e.correctionFactor.call(null,this._value,t);function r(t,e,r,a){return t-Math.round(n*e)}return this._value=e.reduce([t],r,Math.round(this._value*n))/n,this},multiply:function(t){function n(t,n,r,a){var i=e.correctionFactor(t,n);return Math.round(t*i)*Math.round(n*i)/Math.round(i*i)}return this._value=e.reduce([this._value,t],n,1),this},divide:function(t){function n(t,n,r,a){var i=e.correctionFactor(t,n);return Math.round(t*i)/Math.round(n*i)}return this._value=e.reduce([this._value,t],n),this},difference:function(e){return Math.abs(t(this._value).subtract(e).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,n,r){var a,i=t._.includes(n," BPS")?" ":"";return e*=1e4,n=n.replace(/\s?BPS/,""),a=t._.numberToFormat(e,n,r),t._.includes(a,")")?(a=a.split(""),a.splice(-1,0,i+"BPS"),a=a.join("")):a=a+i+"BPS",a},unformat:function(e){return+(1e-4*t._.stringToNumber(e)).toFixed(15)}})}(),function(){var e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=e.suffixes.concat(n.suffixes.filter((function(t){return e.suffixes.indexOf(t)<0}))),a=r.join("|");a="("+a.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(a)},format:function(r,a,i){var o,s,u,c,l=t._.includes(a,"ib")?n:e,f=t._.includes(a," b")||t._.includes(a," ib")?" ":"";for(a=a.replace(/\s?i?b/,""),s=0;s<=l.suffixes.length;s++)if(u=Math.pow(l.base,s),c=Math.pow(l.base,s+1),null===r||0===r||r>=u&&r<c){f+=l.suffixes[s],u>0&&(r/=u);break}return o=t._.numberToFormat(r,a,i),o+f},unformat:function(r){var a,i,o=t._.stringToNumber(r);if(o){for(a=e.suffixes.length-1;a>=0;a--){if(t._.includes(r,e.suffixes[a])){i=Math.pow(e.base,a);break}if(t._.includes(r,n.suffixes[a])){i=Math.pow(n.base,a);break}}o*=i||1}return o}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(e,n,r){var a,i,o,s=t.locales[t.options.currentLocale],u={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),a=t._.numberToFormat(e,n,r),e>=0?(u.before=u.before.replace(/[\-\(]/,""),u.after=u.after.replace(/[\-\)]/,"")):e<0&&!t._.includes(u.before,"-")&&!t._.includes(u.before,"(")&&(u.before="-"+u.before),o=0;o<u.before.length;o++)switch(i=u.before[o],i){case"$":a=t._.insert(a,s.currency.symbol,o);break;case" ":a=t._.insert(a," ",o+s.currency.symbol.length-1);break}for(o=u.after.length-1;o>=0;o--)switch(i=u.after[o],i){case"$":a=o===u.after.length-1?a+s.currency.symbol:t._.insert(a,s.currency.symbol,-(u.after.length-(1+o)));break;case" ":a=o===u.after.length-1?a+" ":t._.insert(a," ",-(u.after.length-(1+o)+s.currency.symbol.length-1));break}return a}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,n,r){var a,i="number"!==typeof e||t._.isNaN(e)?"0e+0":e.toExponential(),o=i.split("e");return n=n.replace(/e[\+|\-]{1}0/,""),a=t._.numberToFormat(Number(o[0]),n,r),a+"e"+o[1]},unformat:function(e){var n=t._.includes(e,"e+")?e.split("e+"):e.split("e-"),r=Number(n[0]),a=Number(n[1]);function i(e,n,r,a){var i=t._.correctionFactor(e,n),o=e*i*(n*i)/(i*i);return o}return a=t._.includes(e,"e-")?a*=-1:a,t._.reduce([r,Math.pow(10,a)],i,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,n,r){var a,i=t.locales[t.options.currentLocale],o=t._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),o+=i.ordinal(e),a=t._.numberToFormat(e,n,r),a+o}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,n,r){var a,i=t._.includes(n," %")?" ":"";return t.options.scalePercentBy100&&(e*=100),n=n.replace(/\s?\%/,""),a=t._.numberToFormat(e,n,r),t._.includes(a,")")?(a=a.split(""),a.splice(-1,0,i+"%"),a=a.join("")):a=a+i+"%",a},unformat:function(e){var n=t._.stringToNumber(e);return t.options.scalePercentBy100?.01*n:n}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(t,e,n){var r=Math.floor(t/60/60),a=Math.floor((t-60*r*60)/60),i=Math.round(t-60*r*60-60*a);return r+":"+(a<10?"0"+a:a)+":"+(i<10?"0"+i:i)},unformat:function(t){var e=t.split(":"),n=0;return 3===e.length?(n+=60*Number(e[0])*60,n+=60*Number(e[1]),n+=Number(e[2])):2===e.length&&(n+=60*Number(e[0]),n+=Number(e[1])),Number(n)}})}(),t}))},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 l})),n.d(e,"q",(function(){return f})),n.d(e,"l",(function(){return d})),n.d(e,"r",(function(){return m})),n.d(e,"i",(function(){return h})),n.d(e,"g",(function(){return p})),n.d(e,"h",(function(){return y})),n.d(e,"b",(function(){return v})),n.d(e,"c",(function(){return g})),n.d(e,"k",(function(){return b})),n.d(e,"e",(function(){return A})),n.d(e,"f",(function(){return _})),n.d(e,"n",(function(){return x})),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 l(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 d(t){return i({url:"/api-user/examRegistration/ocr",method:"post",data:t})}function m(t){return i({url:"/api-user/uploadFile",method:"post",data:t})}function h(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 y(t){return i({url:"/api-user/examSubjectSong/getExamSubjectSong",method:"get",params:t})}function v(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 b(t){return i({url:"/api-user/examMusicTheory/getTheoryLevelList",method:"get",params:t})}function A(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 w(t){return i({url:"/api-user/examOrder/closeOrder",method:"post",data:a.a.stringify(t)})}},"8f37":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAApVBMVEUAAAAAyAAAwwAAyQAAxgAAyQAAyQAAyAAAyAAAyAAAyQAAyQAAyQAAzAAAygAAyAAAyAAAyAAAyAAAyQAAyAAAyQAAyAAAyAAAyQAAyQAAygAAywAAywAAyQAAyQAAygAAygAAyQAAyAAAyAAAyAAAyAAAyQAAyAAAyAAAygAAygAAyAAAyAAAyQAAyQAAyQAAygAAyQAAygAAyAAAywAAyQAAyACxriw2AAAANnRSTlMA7QT9DNpv9vP7v7GaFgjo3867uLWlhoBaS0UrG6qdUDsi+OTUkWVjMi8oxKB4cmhWxZCMU0HyawkQAAABiUlEQVQ4y9WUyXKCQBRFr8isRBSZFOfZOGV6//9pAdJCQ2hglaqcVS9OdT3ufQ3+jOmhP1I6mjZQnN1hVWee3m0qoHgif/JKFTjLCvVskoBeVHbVNQnR9wX1ZUa19KXclU1qwHkBQxpTIy4YH42qrcrPyLoNqrlIRk4HkZRac+0eE8u6mIjZ16kdL0rTuupEEwBbsarcf0ZdKGk5wDG/paSOQrZbDqUYFvzMlR6crs1PrIOdQYwAecZLRCN2HPgWq+DOXbCDnS8MgJsWH7aHZ19fw8Jc0LNz95wM6LoTMFazYgNDGNy6gEf2tXI44D/K4txgQ2WGhZi9TD1WvZoxXL4vti7WvHJdPKjEoaZx3XSqJETEX2JLQChaLC0O1CGO2ULwEFhYS2qHMUVMr14qthB12rgDVkJotBgiWwK12+R298hQm1wVHJ96nas/UOBUYw/PKPEmfOCqVHZlwV90c5Xxi0X6HeZsUMh2HkqooJ/MtkzeVeBdxuaoN/eDFQTYtAnQlp4v47/wDWJr5wNR5I/fAAAAAElFTkSuQmCC"},"9c08":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADBklEQVRIS72W/0uVVxzHX+ec57ne1KXFNNOlpTRbKpX0k2gUMUf7oVnQYBUMGrSfBquNbeF+2C+S/RNNBkIQmH0xSGs2JvtlUlMIiSKs0L4typx6733uc844j6b3yiP3Ymuf355zPp/P+/P+fDmfRwC4p6fqpVQnDTQKyLVnyxWDmBaYAa3lCe9I5IZwTyfqhTS/C8wbOV4ckAVyXLFD5HTErgDNy404g12viHTEp7KJvqVc0rpVBf5++NPn2iOdMSYD05aByagJfF2jaN/uBKoHr3t03c8MYHX/f4DmMsmZnbORpoojISJFcORp0CG8K8/GeR5Pt1sWg71XPXrH3iBFRVHYtVamhbLnPclnlbNFPjWcZPhFOoXu+xo/hFUog40rRVDUTHKoShJVgtsThi3diVD1rFO02HpTgeCvlkhw3D6c5KebfnYAa6JgC73hndmCPp4xjLw03Hxu+Ce54KOtXvFNnRMUu/ZcgnuT4d0+z8C6+3Gr4ttaRY4SGANiFiOQpDYM/m3oeai5/lhz6UOXgojgwgOfT/tTkBfxmAdo3aI4XKVoG0rSN6Z5GoN8F2pXCT4qkxysVJTnpyDOOTrwq8fFh0t3VACQ58BQS4SGS4nAcZjYEdhXIbGBbC5c6DCboj+eaDrv+XSNaia8kDnY/q7gWI3i0G9LU7VmxVHo3xOhaqUg5pugg1Il7hv6xg1doz5945pnsbmnorpA8HOjQ0PPIvgU64p86N7t8kGhDArf1JOgbpXkeI2isSR9ZqyZZXbrpYkHKbJxDO51Of9A0zbkpw2MI+DzjZK2eofCHMHopOGTa17Q+6/FZuCrzYr9FRJ37jmZu5uZL/K21YLLzS6THvQ/0rxIQGku7CyRFK8Q+MbQeVfz/WAyuAsTq3+0WvHF+4qiaJC+BQD7tS4Pvqtz+HidpHSFwOZ0ZMJwdVzzy13NnVdZvezkKDiwXvJltTMjIh2xqbA9bFOTzM5fOB3g9cJ5uyvzbS59o5NNQSUsiJT6P/ptYVrAgNb+Ce9I3o1/AXUqQlA5Ce8vAAAAAElFTkSuQmCC"},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},b175:function(t,e,n){"use strict";var r=n("1a6a"),a=n.n(r);a.a},ceac:function(t,e,n){},dfca:function(t,e,n){"use strict";var r=n("ceac"),a=n.n(r);a.a},f0da:function(t,e,n){}}]);