1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["PaymentResult"],{2558:function(t,e,n){"use strict";var r=n("f0da"),a=n.n(r);a.a},"37e0":function(t,e,n){"use strict";var r=n("9cf4"),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()}},"3e17":function(t,e,n){t.exports=n.p+"img/pay_error.109ccf27.png"},"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",s="month",u="quarter",o="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,f=/\[([^\]]+)]|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,d=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},h={s:d,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+d(r,2,"0")+":"+d(a,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,s),a=e-r<0,i=t.clone().add(n+(a?-1:1),s);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:s,y:o,w:i,d:a,D:"date",h:r,m:n,s:e,ms:t,Q:u}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},l={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]=l;var g=function(t){return t instanceof S},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 a=t.name;p[a]=t,r=a}return!n&&r&&(m=r),r||!n&&m},y=function(t,e){if(g(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},$=h;$.l=v,$.i=g,$.w=function(t,e){return y(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var S=function(){function d(t){this.$L=this.$L||v(t.locale,null,!0),this.parse(t)}var h=d.prototype;return h.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()},h.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()},h.$utils=function(){return $},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(t,e){var n=y(t);return this.startOf(e)<=n&&n<=this.endOf(e)},h.isAfter=function(t,e){return y(t)<this.startOf(e)},h.isBefore=function(t,e){return this.endOf(e)<y(t)},h.$g=function(t,e,n){return $.u(t)?this[e]:this.set(n,t)},h.year=function(t){return this.$g(t,"$y",o)},h.month=function(t){return this.$g(t,"$M",s)},h.day=function(t){return this.$g(t,"$W",a)},h.date=function(t){return this.$g(t,"$D","date")},h.hour=function(t){return this.$g(t,"$H",r)},h.minute=function(t){return this.$g(t,"$m",n)},h.second=function(t){return this.$g(t,"$s",e)},h.millisecond=function(e){return this.$g(e,"$ms",t)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(t,u){var c=this,f=!!$.u(u)||u,d=$.p(t),h=function(t,e){var n=$.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return f?n:n.endOf(a)},l=function(t,e){return $.w(c.toDate()[t].apply(c.toDate("s"),(f?[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(d){case o:return f?h(1,0):h(31,11);case s:return f?h(1,p):h(0,p+1);case i:var y=this.$locale().weekStart||0,S=(m<y?m+7:m)-y;return h(f?g-S:g+(6-S),p);case a:case"date":return l(v+"Hours",0);case r:return l(v+"Minutes",1);case n:return l(v+"Seconds",2);case e:return l(v+"Milliseconds",3);default:return this.clone()}},h.endOf=function(t){return this.startOf(t,!1)},h.$set=function(i,u){var c,f=$.p(i),d="set"+(this.$u?"UTC":""),h=(c={},c[a]=d+"Date",c.date=d+"Date",c[s]=d+"Month",c[o]=d+"FullYear",c[r]=d+"Hours",c[n]=d+"Minutes",c[e]=d+"Seconds",c[t]=d+"Milliseconds",c)[f],l=f===a?this.$D+(u-this.$W):u;if(f===s||f===o){var m=this.clone().set("date",1);m.$d[h](l),m.init(),this.$d=m.set("date",Math.min(this.$D,m.daysInMonth())).toDate()}else h&&this.$d[h](l);return this.init(),this},h.set=function(t,e){return this.clone().$set(t,e)},h.get=function(t){return this[$.p(t)]()},h.add=function(t,u){var c,f=this;t=Number(t);var d=$.p(u),h=function(e){var n=y(f);return $.w(n.date(n.date()+Math.round(e*t)),f)};if(d===s)return this.set(s,this.$M+t);if(d===o)return this.set(o,this.$y+t);if(d===a)return h(1);if(d===i)return h(7);var l=(c={},c[n]=6e4,c[r]=36e5,c[e]=1e3,c)[d]||1,m=this.$d.getTime()+t*l;return $.w(m,this)},h.subtract=function(t,e){return this.add(-1*t,e)},h.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,s=this.$m,u=this.$M,o=a.weekdays,c=a.months,d=function(t,r,a,i){return t&&(t[r]||t(e,n))||a[r].substr(0,i)},h=function(t){return $.s(i%12||12,t,"0")},l=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:u+1,MM:$.s(u+1,2,"0"),MMM:d(a.monthsShort,u,c,3),MMMM:d(c,u),D:this.$D,DD:$.s(this.$D,2,"0"),d:String(this.$W),dd:d(a.weekdaysMin,this.$W,o,2),ddd:d(a.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(i),HH:$.s(i,2,"0"),h:h(1),hh:h(2),a:l(i,s,!0),A:l(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:r};return n.replace(f,(function(t,e){return e||m[t]||r.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(t,c,f){var d,h=$.p(c),l=y(t),m=6e4*(l.utcOffset()-this.utcOffset()),p=this-l,g=$.m(this,l);return g=(d={},d[o]=g/12,d[s]=g,d[u]=g/3,d[i]=(p-m)/6048e5,d[a]=(p-m)/864e5,d[r]=p/36e5,d[n]=p/6e4,d[e]=p/1e3,d)[h]||p,f?g:$.a(g)},h.daysInMonth=function(){return this.endOf(s).$D},h.$locale=function(){return p[this.$L]},h.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=v(t,e,!0);return r&&(n.$L=r),n},h.clone=function(){return $.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}();return y.prototype=S.prototype,y.extend=function(t,e){return t(e,S,y),y},y.locale=v,y.isDayjs=g,y.unix=function(t){return y(1e3*t)},y.en=p[m],y.Ls=p,y}))},"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)}}},s=i,u=(n("2558"),n("2877")),o=Object(u["a"])(s,r,a,!1,null,"9865a7b0",null);e["a"]=o.exports},7535: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:"paymentResult"},[t.headerStatus?r("m-header",{attrs:{isBack:t.isBack}}):t._e(),"ON"==t.pageStatus?r("div",{staticClass:"payOn"},[r("img",{attrs:{src:n("82aa"),alt:""}}),r("p",[t._v("支付成功")])]):t._e(),"FAILED"==t.pageStatus||"CLOSE"==t.pageStatus||"REFUND"==t.pageStatus?r("div",{staticClass:"payError"},[r("img",{attrs:{src:n("3e17"),alt:""}}),r("p",[t._v("支付失败")])]):t._e(),"ING"==t.pageStatus?r("div",{staticClass:"paying"},[r("img",{attrs:{src:n("f620"),alt:""}}),r("p",[t._v("订单处理中")])]):t._e(),"SUCCESS"==t.pageStatus?r("div",{staticClass:"paySuccess"},[r("div",{staticClass:"status"},[r("img",{attrs:{src:n("82aa"),alt:""}}),r("p",[t._v("支付成功")]),r("p",{staticClass:"money"},[t._v("¥"+t._s(t.orderInfo.transAmount))])]),r("div",{staticClass:"orderInfo"},[r("p",[r("span",[t._v("购买时间:")]),t._v("\n "+t._s(t.orderInfo.createTime)+"\n ")]),r("p",[r("span",[t._v("订单编号:")]),t._v("\n "+t._s(t.orderInfo.orderNo)+"\n ")]),r("p",[r("span",[t._v("考生名字:")]),t._v("\n "+t._s(t.examRegistration.studentName)+"\n ")]),r("p",[r("span",[t._v("报考专业:")]),t._v("\n "+t._s(t.examRegistration.subjectName)+"("+t._s(t._f("levelToCN")(t.examRegistration.level))+"/¥"+t._s(t.examRegistration.levelFee)+")\n ")]),r("p",[r("span",[t._v("乐理知识:")]),t.examRegistration.examMusicTheoryLevel?[t._v("\n "+t._s(t._f("levelToCN")(t.examRegistration.examMusicTheoryLevel))+"/¥"+t._s(t.examRegistration.theoryLevelFee)+"\n ")]:[t._v("\n 免考\n ")]],2),r("p",[r("span",[t._v("预计考试时间:")]),t._v("\n "+t._s(t.examRegistration.examStartTime)+"\n ")])])]):t._e()],1)},a=[],i=n("a34a"),s=n.n(i),u=n("6e6e"),o=n("ae54"),c=(n("8900"),n("cf45")),f=n("3908"),d=n("5a0c"),h=n.n(d);function l(t,e,n,r,a,i,s){try{var u=t[i](s),o=u.value}catch(c){return void n(c)}u.done?e(o):Promise.resolve(o).then(r,a)}function m(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function s(t){l(i,r,a,s,u,"next",t)}function u(t){l(i,r,a,s,u,"throw",t)}s(void 0)}))}}var p={name:"paymentResult",components:{MHeader:u["a"]},data:function(){this.$route.query;return{headerStatus:!1,isBack:!1,pageStatus:null,orderInfo:{},examRegistration:{}}},mounted:function(){Object(c["a"])().android||Object(c["a"])().iPhone||(this.headerStatus=!0),this.__init(),this.pushHistory();var t=this;window.addEventListener("popstate",(function(e){var n=window.navigator.userAgent.toLowerCase();if("micromessenger"==n.match(/MicroMessenger/i))WeixinJSBridge.call("closeWindow");else{var r=localStorage.getItem("examId"),a=localStorage.getItem("organId");t.$router.push({path:"/signUp",query:{examId:r,organId:a}})}}),!1)},methods:{pushHistory:function(){var t={title:"title",url:"#"};window.history.pushState(t,"title","#")},__init:function(){var t=m(s.a.mark((function t(){var e,n=this;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(Object(f["a"])(!0),t.prev=1,e=this.$route.query,!e.orderNo){t.next=8;break}return t.next=6,Object(o["b"])({orderNo:e.orderNo}).then((function(t){var e=t.data;if(200==e.code){var r=e.data.examRegistrationPayment;n.examRegistration=e.data.examRegistrationDto,n.examRegistration.examStartTime=h()(n.examRegistration.examStartTime).format("YYYY-MM-DD"),n.orderInfo=r,n.pageStatus=r.transStatus}else n.pageStatus="ING",n.CountDown()}));case 6:t.next=9;break;case 8:e.type?this.pageStatus=e.type:(this.pageStatus="ING",this.CountDown());case 9:t.next=15;break;case 11:t.prev=11,t.t0=t["catch"](1),this.pageStatus="ING",this.CountDown();case 15:Object(f["a"])(!1);case 16:case"end":return t.stop()}}),t,this,[[1,11]])})));function e(){return t.apply(this,arguments)}return e}(),onAppBack:function(){Object(c["a"])().android?EXAM.postMessage(JSON.stringify({api:"back"})):Object(c["a"])().iPhone?window.webkit.messageHandlers.EXAM.postMessage(JSON.stringify({api:"back"})):this.onHref()},onHref:function(){window.location.replace(window.location.href.toString().replace(window.location.hash,"")+"#/paymentResult"),this.$router.push("/paymentResult")},CountDown:function(){}},destroyed:function(){window.removeEventListener("popstate",(function(){}))},filters:{levelToCN:function(t){var e={1:"一级",2:"二级",3:"三级",4:"四级",5:"五级",6:"六级",7:"七级",8:"八级",9:"九级",10:"十级"};return e[t]}}},g=p,v=(n("37e0"),n("2877")),y=Object(v["a"])(g,r,a,!1,null,"1b646a8a",null);e["default"]=y.exports},"82aa":function(t,e,n){t.exports=n.p+"img/pay_success.181846c1.png"},8900:function(t,e,n){"use strict";n.d(e,"o",(function(){return s})),n.d(e,"p",(function(){return u})),n.d(e,"m",(function(){return o})),n.d(e,"d",(function(){return c})),n.d(e,"j",(function(){return f})),n.d(e,"q",(function(){return d})),n.d(e,"l",(function(){return h})),n.d(e,"r",(function(){return l})),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 y})),n.d(e,"k",(function(){return $})),n.d(e,"e",(function(){return S})),n.d(e,"f",(function(){return _})),n.d(e,"n",(function(){return w})),n.d(e,"a",(function(){return x}));var r=n("4328"),a=n.n(r),i=n("981f").default;function s(t){return i({url:"/api-auth/code/sendSms",method:"post",data:a.a.stringify(t)})}function u(t){return i({url:"/api-auth/smsLogin",method:"post",data:a.a.stringify(t)})}function o(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 f(t){return i({url:"/api-user/student/getStudent",method:"get",params:t})}function d(t){return i({url:"/api-user/student/updateInfo",method:"post",data:a.a.stringify(t)})}function h(t){return i({url:"/api-user/examRegistration/ocr",method:"post",data:t})}function l(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 g(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 y(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 S(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 w(t){return i({url:"/api-user/examRegistration/repay",method:"post",data:a.a.stringify(t)})}function x(t){return i({url:"/api-user/examOrder/closeOrder",method:"post",data:a.a.stringify(t)})}},"9cf4":function(t,e,n){},a34a:function(t,e,n){t.exports=n("96cf")},ae54:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return u}));var r=n("4328"),a=n.n(r),i=n("981f").default;function s(t){return i({url:"/api-user/examOrder/executePayment",method:"post",data:a.a.stringify(t)})}function u(t){return i({url:"/api-user/examOrder/paymentResult",method:"get",params:t})}},f0da:function(t,e,n){},f620:function(t,e,n){t.exports=n.p+"img/pay_ing.2848bdf2.png"}}]);
|