1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["SignUp"],{"1d2e":function(t,e,n){t.exports=n.p+"img/sign_over.3c3fd32a.png"},3908:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("433b");var r=n("d399");function i(t){t?r["a"].loading({duration:0,forbidClick:!0,message:"加载中..."}):r["a"].clear()}},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",r="hour",i="day",a="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,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},l={s:f,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+f(r,2,"0")+":"+f(i,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,s),i=e-r<0,a=t.clone().add(n+(i?-1:1),s);return Number(-(n+(e-r)/(i?r-a:a-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:s,y:u,w:a,d:i,D:"date",h:r,m:n,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 g=function(t){return t instanceof y},v=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 i=t.name;p[i]=t,r=i}return!n&&r&&(m=r),r||!n&&m},$=function(t,e){if(g(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new y(n)},S=l;S.l=v,S.i=g,S.w=function(t,e){return $(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var y=function(){function f(t){this.$L=this.$L||v(t.locale,null,!0),this.parse(t)}var l=f.prototype;return l.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(S.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()},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 S},l.isValid=function(){return!("Invalid Date"===this.$d.toString())},l.isSame=function(t,e){var n=$(t);return this.startOf(e)<=n&&n<=this.endOf(e)},l.isAfter=function(t,e){return $(t)<this.startOf(e)},l.isBefore=function(t,e){return this.endOf(e)<$(t)},l.$g=function(t,e,n){return S.u(t)?this[e]:this.set(n,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",i)},l.date=function(t){return this.$g(t,"$D","date")},l.hour=function(t){return this.$g(t,"$H",r)},l.minute=function(t){return this.$g(t,"$m",n)},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=!!S.u(o)||o,f=S.p(t),l=function(t,e){var n=S.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return d?n:n.endOf(i)},h=function(t,e){return S.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,g=this.$D,v="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 a:var $=this.$locale().weekStart||0,y=(m<$?m+7:m)-$;return l(d?g-y:g+(6-y),p);case i:case"date":return h(v+"Hours",0);case r:return h(v+"Minutes",1);case n:return h(v+"Seconds",2);case e:return h(v+"Milliseconds",3);default:return this.clone()}},l.endOf=function(t){return this.startOf(t,!1)},l.$set=function(a,o){var c,d=S.p(a),f="set"+(this.$u?"UTC":""),l=(c={},c[i]=f+"Date",c.date=f+"Date",c[s]=f+"Month",c[u]=f+"FullYear",c[r]=f+"Hours",c[n]=f+"Minutes",c[e]=f+"Seconds",c[t]=f+"Milliseconds",c)[d],h=d===i?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[S.p(t)]()},l.add=function(t,o){var c,d=this;t=Number(t);var f=S.p(o),l=function(e){var n=$(d);return S.w(n.date(n.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===i)return l(1);if(f===a)return l(7);var h=(c={},c[n]=6e4,c[r]=36e5,c[e]=1e3,c)[f]||1,m=this.$d.getTime()+t*h;return S.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 n=t||"YYYY-MM-DDTHH:mm:ssZ",r=S.z(this),i=this.$locale(),a=this.$H,s=this.$m,o=this.$M,u=i.weekdays,c=i.months,f=function(t,r,i,a){return t&&(t[r]||t(e,n))||i[r].substr(0,a)},l=function(t){return S.s(a%12||12,t,"0")},h=i.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:o+1,MM:S.s(o+1,2,"0"),MMM:f(i.monthsShort,o,c,3),MMMM:f(c,o),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:f(i.weekdaysMin,this.$W,u,2),ddd:f(i.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(a),HH:S.s(a,2,"0"),h:l(1),hh:l(2),a:h(a,s,!0),A:h(a,s,!1),m:String(s),mm:S.s(s,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:r};return n.replace(d,(function(t,e){return e||m[t]||r.replace(":","")}))},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(t,c,d){var f,l=S.p(c),h=$(t),m=6e4*(h.utcOffset()-this.utcOffset()),p=this-h,g=S.m(this,h);return g=(f={},f[u]=g/12,f[s]=g,f[o]=g/3,f[a]=(p-m)/6048e5,f[i]=(p-m)/864e5,f[r]=p/36e5,f[n]=p/6e4,f[e]=p/1e3,f)[l]||p,d?g:S.a(g)},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 n=this.clone(),r=v(t,e,!0);return r&&(n.$L=r),n},l.clone=function(){return S.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 $.prototype=y.prototype,$.extend=function(t,e){return t(e,y,$),$},$.locale=v,$.isDayjs=g,$.unix=function(t){return $(1e3*t)},$.en=p[m],$.Ls=p,$}))},8900:function(t,e,n){"use strict";n.d(e,"o",(function(){return s})),n.d(e,"p",(function(){return o})),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 f})),n.d(e,"l",(function(){return l})),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 g})),n.d(e,"b",(function(){return v})),n.d(e,"c",(function(){return $})),n.d(e,"k",(function(){return S})),n.d(e,"e",(function(){return y})),n.d(e,"f",(function(){return I})),n.d(e,"n",(function(){return M})),n.d(e,"a",(function(){return b}));var r=n("4328"),i=n.n(r),a=n("981f").default;function s(t){return a({url:"/api-auth/code/sendSms",method:"post",data:i.a.stringify(t)})}function o(t){return a({url:"/api-auth/smsLogin",method:"post",data:i.a.stringify(t)})}function u(t){return a({url:"/api-auth/user/noAuth/queryUserByPhone",method:"get",params:t})}function c(t){return a({url:"/api-user/examinationBasic/getInfo",method:"post",data:i.a.stringify(t)})}function d(t){return a({url:"/api-user/student/getStudent",method:"get",params:t})}function f(t){return a({url:"/api-user/student/updateInfo",method:"post",data:i.a.stringify(t)})}function l(t){return a({url:"/api-user/examRegistration/ocr",method:"post",data:t})}function h(t){return a({url:"/api-user/uploadFile",method:"post",data:t})}function m(t){return a({url:"/api-user/examSubject/getExamSubjects",method:"get",params:t})}function p(t){return a({url:"/api-user/examSubjectSong/getExamSubjectLevel",method:"get",params:t})}function g(t){return a({url:"/api-user/examSubjectSong/getExamSubjectSong",method:"get",params:t})}function v(t){return a({url:"/api-user/examRegistration/add",method:"post",data:t})}function $(t){return a({url:"/api-user/examRegistration/update",method:"post",data:t})}function S(t){return a({url:"/api-user/examMusicTheory/getTheoryLevelList",method:"get",params:t})}function y(t){return a({url:"/api-user/examOrder/getExamIngOrder",method:"get",params:t})}function I(t){return a({url:"/api-user/examRegistration/getExamRegistration",method:"get",params:t})}function M(t){return a({url:"/api-user/examRegistration/repay",method:"post",data:i.a.stringify(t)})}function b(t){return a({url:"/api-user/examOrder/closeOrder",method:"post",data:i.a.stringify(t)})}},"952d":function(t,e,n){},a34a:function(t,e,n){t.exports=n("96cf")},bb2b:function(t,e,n){"use strict";var r=n("952d"),i=n.n(r);i.a},df13:function(t,e,n){t.exports=n.p+"img/sign_not_start.6ae28896.png"},eaf4:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"SignUp"},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"container",style:t.backgroundImg},[r("h2",[t._v(t._s(t.baseInfo.posterTitle))]),"APPLIED"===t.baseInfo.transStatus||"EXAM_ING"===t.baseInfo.transStatus||"EXAM_END"===t.baseInfo.transStatus||"RESULT_CONFIRM"===t.baseInfo.transStatus||"CLOSE"===t.baseInfo.transStatus?r("div",{key:"status",staticClass:"section"},[t._m(0)]):"NOT_START"===t.baseInfo.transStatus?r("div",{key:"status",staticClass:"section"},[r("div",{staticClass:"sectionStatus"},[r("img",{attrs:{src:n("df13"),alt:""}}),r("h3",[t._v("您来早啦,报名还未开始~")]),r("p",[t._v("报名时间:"+t._s(t.baseInfo.enrollTime2))])])]):r("div",{key:"status",staticClass:"section"},[r("div",{staticClass:"title",staticStyle:{"margin-top":"0"}},[t._v("考试类型")]),r("div",{staticClass:"content"},[t._v(t._s("OFFLINE"===t.baseInfo.examMode?"线下":"线上"))]),r("div",{staticClass:"title"},[t._v("考试地址")]),"OFFLINE"===t.baseInfo.examMode?r("div",{staticClass:"content"},[t.baseInfo.examLocations?t._l(t.baseInfo.examLocations,(function(e,n){return r("p",{key:n},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.address)+"\n\t\t\t\t\t\t")])})):t._e()],2):r("div",{staticClass:"content"},[t._v("线上网络教室")]),r("div",{staticClass:"title"},[t._v("考试简介")]),r("div",{staticClass:"content",domProps:{innerHTML:t._s(t.baseInfo.posterProfile)}}),r("div",{staticClass:"title"},[t._v("报名时间")]),r("div",{staticClass:"content"},[t._v(t._s(t.baseInfo.enrollTime))]),r("div",{staticClass:"title"},[t._v("预计考试日期")]),r("div",{staticClass:"content"},[t._v(t._s(t.baseInfo.expectExamTime))])]),t.baseInfo.status?r("van-button",{attrs:{type:"primary",color:t.buttonColor,round:"",block:""},on:{click:t.onSubmit}},[t._v("我要报名")]):t._e()],1)])},i=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"sectionStatus"},[r("img",{attrs:{src:n("1d2e"),alt:""}}),r("h3",[t._v("您来迟啦,报名已结束~")])])}],a=n("a34a"),s=n.n(a),o=n("5a0c"),u=n.n(o),c=n("3908"),d=n("8900");function f(t,e,n,r,i,a,s){try{var o=t[a](s),u=o.value}catch(c){return void n(c)}o.done?e(u):Promise.resolve(u).then(r,i)}function l(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){f(a,r,i,s,o,"next",t)}function o(t){f(a,r,i,s,o,"throw",t)}s(void 0)}))}}var h={name:"SignUp",data:function(){localStorage.removeItem("examId"),localStorage.removeItem("organId");var t=this.$route.query;return{examId:t.examId,organId:t.organId,show:!1,baseInfo:{},backgroundImg:null,buttonColor:null}},mounted:function(){localStorage.removeItem("Authorization"),this.__init()},methods:{__init:function(){var t=l(s.a.mark((function t(){var e,n,r,i;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return Object(c["a"])(!0),t.prev=1,localStorage.setItem("examId",this.examId),localStorage.setItem("organId",this.organId),t.next=6,Object(d["d"])({examId:this.examId});case 6:e=t.sent,200==e.data.code&&(n=e.data.data,r=!1,"APPLYING"==n.status&&(r=!0),localStorage.setItem("examStartTime",u()(n.expectExamStartTime).format("YYYY-MM-DD")),this.baseInfo={posterTitle:n.posterTitle,examMode:n.examMode,enrollTime:u()(n.enrollStartTime).format("YYYY-MM-DD")+"~"+u()(n.enrollEndTime).format("YYYY-MM-DD"),enrollTime2:u()(n.enrollStartTime).format("YYYY-MM-DD HH:mm"),examLocationIdList:n.examLocationIdList,expectExamTime:u()(n.expectExamStartTime).format("YYYY-MM-DD")+"~"+u()(n.expectExamEndTime).format("YYYY-MM-DD"),status:r,examLocations:n.examLocations,posterProfile:n.posterProfile?n.posterProfile.replace(/\n/gi,"<br/>"):null,transStatus:n.status},i=n.posterBackgroundImg?JSON.parse(n.posterBackgroundImg):"",i&&(this.backgroundImg={backgroundImage:"url(".concat(i.url,") !important")},this.buttonColor=i.color)),t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](1);case 12:this.show=!0,Object(c["a"])(!1);case 14:case"end":return t.stop()}}),t,this,[[1,10]])})));function e(){return t.apply(this,arguments)}return e}(),onSubmit:function(){this.$router.push({path:"/signUpAccount",query:{examId:this.examId,organId:this.organId}})},onProtocol:function(){this.$router.push("/smallProtocol")}}},m=h,p=(n("bb2b"),n("2877")),g=Object(p["a"])(m,r,i,!1,null,"af5ef364",null);e["default"]=g.exports}}]);
|