PaymentResult.fab18a7a.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["PaymentResult"],{2153:function(t,e,n){"use strict";var r=n("547b"),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()}},"3e17":function(t,e,n){t.exports=n.p+"img/pay_error.109ccf27.png"},"547b":function(t,e,n){},"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})?$/,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),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,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}},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 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)},$=l;$.l=v,$.i=g,$.w=function(t,e){return y(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var S=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($.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 $},l.isValid=function(){return!("Invalid Date"===this.$d.toString())},l.isSame=function(t,e){var n=y(t);return this.startOf(e)<=n&&n<=this.endOf(e)},l.isAfter=function(t,e){return y(t)<this.startOf(e)},l.isBefore=function(t,e){return this.endOf(e)<y(t)},l.$g=function(t,e,n){return $.u(t)?this[e]:this.set(n,t)},l.year=function(t){return this.$g(t,"$y",o)},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",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,u){var c=this,d=!!$.u(u)||u,f=$.p(t),l=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,g=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case o:return d?l(1,0):l(31,11);case s:return d?l(1,p):l(0,p+1);case i:var y=this.$locale().weekStart||0,S=(m<y?m+7:m)-y;return l(d?g-S:g+(6-S),p);case a: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(i,u){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[o]=f+"FullYear",c[r]=f+"Hours",c[n]=f+"Minutes",c[e]=f+"Seconds",c[t]=f+"Milliseconds",c)[d],h=d===a?this.$D+(u-this.$W):u;if(d===s||d===o){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,u){var c,d=this;t=Number(t);var f=$.p(u),l=function(e){var n=y(d);return $.w(n.date(n.date()+Math.round(e*t)),d)};if(f===s)return this.set(s,this.$M+t);if(f===o)return this.set(o,this.$y+t);if(f===a)return l(1);if(f===i)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 $.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=$.z(this),a=this.$locale(),i=this.$H,s=this.$m,u=this.$M,o=a.weekdays,c=a.months,f=function(t,r,a,i){return t&&(t[r]||t(e,n))||a[r].substr(0,i)},l=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:u+1,MM:$.s(u+1,2,"0"),MMM:f(a.monthsShort,u,c,3),MMMM:f(c,u),D:this.$D,DD:$.s(this.$D,2,"0"),d:String(this.$W),dd:f(a.weekdaysMin,this.$W,o,2),ddd:f(a.weekdaysShort,this.$W,o,3),dddd:o[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: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=$.p(c),h=y(t),m=6e4*(h.utcOffset()-this.utcOffset()),p=this-h,g=$.m(this,h);return g=(f={},f[o]=g/12,f[s]=g,f[u]=g/3,f[i]=(p-m)/6048e5,f[a]=(p-m)/864e5,f[r]=p/36e5,f[n]=p/6e4,f[e]=p/1e3,f)[l]||p,d?g:$.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 $.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 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"},["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.transSuccessedTime)+"\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 ")]),t.examRegistration.subjectName?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 ")]):t._e(),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()])},a=[],i=n("a34a"),s=n.n(i),u=n("6e6e"),o=n("ae54"),c=(n("8900"),n("cf45")),d=n("3908"),f=n("5a0c"),l=n.n(f),h=n("6612"),m=n.n(h);function p(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 g(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function s(t){p(i,r,a,s,u,"next",t)}function u(t){p(i,r,a,s,u,"throw",t)}s(void 0)}))}}var v={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 if(-1!=n.indexOf("alipay"))AlipayJSBridge.call("closeWebview");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=g(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(d["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=l()(n.examRegistration.examStartTime).format("YYYY-MM-DD"),n.examRegistration.levelFee=m()(n.examRegistration.levelFee).format("0,0.00"),n.examRegistration.theoryLevelFee=m()(n.examRegistration.theoryLevelFee).format("0,0.00"),r.transAmount=m()(r.transAmount).format("0,0.00"),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(d["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]}}},y=v,$=(n("2153"),n("2877")),S=Object($["a"])(y,r,a,!1,null,"0f7478cd",null);e["default"]=S.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 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 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 x})),n.d(e,"a",(function(){return w}));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-student/examinationBasic/getInfo",method:"post",data:a.a.stringify(t)})}function d(t){return i({url:"/api-student/student/getStudent",method:"get",params:t})}function f(t){return i({url:"/api-student/student/updateInfo",method:"post",data:a.a.stringify(t)})}function l(t){return i({url:"/api-student/examRegistration/ocr",method:"post",data:t})}function h(t){return i({url:"/api-student/uploadFile",method:"post",data:t})}function m(t){return i({url:"/api-student/examSubject/getStudentExamSubjects",method:"get",params:t})}function p(t){return i({url:"/api-student/examSubjectSong/getExamSubjectLevel",method:"get",params:t})}function g(t){return i({url:"/api-student/examSubjectSong/getExamSubjectSong",method:"get",params:t})}function v(t){return i({url:"/api-student/examRegistration/add",method:"post",data:t})}function y(t){return i({url:"/api-student/examRegistration/update",method:"post",data:t})}function $(t){return i({url:"/api-student/examMusicTheory/getTheoryLevelList",method:"get",params:t})}function S(t){return i({url:"/api-student/examOrder/getExamIngOrder",method:"get",params:t})}function _(t){return i({url:"/api-student/examRegistration/getExamRegistration",method:"get",params:t})}function x(t){return i({url:"/api-student/examRegistration/repay",method:"post",data:a.a.stringify(t)})}function w(t){return i({url:"/api-student/examOrder/closeOrder",method:"post",data:a.a.stringify(t)})}},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-student/examOrder/executePayment",method:"post",data:a.a.stringify(t)})}function u(t){return i({url:"/api-student/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"}}]);