| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["PaymentResult"],{2558:function(t,a,e){"use strict";var s=e("f0da"),n=e.n(s);n.a},"3e17":function(t,a,e){t.exports=e.p+"img/pay_error.109ccf27.png"},"6e6e":function(t,a,e){"use strict";var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mheader"},[e("header",{staticClass:"m-nav-header",class:[{fixed:t.isFixed},{headerColor:t.isColor}]},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[e("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),e("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:t.$route.meta.description))])],2),e("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},n=[],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)}}},r=i,o=(e("2558"),e("2877")),c=Object(o["a"])(r,s,n,!1,null,"9865a7b0",null);a["a"]=c.exports},7535:function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"paymentResult"},[t.headerStatus?s("m-header",{attrs:{isBack:t.isBack}}):t._e(),"ON"==t.pageStatus?s("div",{staticClass:"payon"},[s("img",{attrs:{src:e("82aa"),alt:""}}),s("p",[t._v("支付成功")]),s("van-button",{attrs:{type:"info",round:""},on:{click:t.onAppBack}},[t._v("返回")])],1):t._e(),"FAILED"==t.pageStatus?s("div",{staticClass:"payerror"},[s("img",{attrs:{src:e("3e17"),alt:""}}),s("p",[t._v("支付失败")]),s("van-button",{attrs:{type:"info",round:""},on:{click:t.onAppBack}},[t._v("返回")])],1):t._e(),"ING"==t.pageStatus?s("div",{staticClass:"paying"},[s("img",{attrs:{src:e("f620"),alt:""}}),s("p",[t._v("订单处理中")]),s("van-button",{attrs:{type:"info",round:""},on:{click:t.onAppBack}},[t._v("返回")]),s("p",{staticClass:"countdown"},[t._v("到计时"+t._s(t.smsText)+"秒刷新")])],1):t._e(),"SUCCESS"==t.pageStatus?s("div",{staticClass:"paysuccess"},[s("div",{staticClass:"status"},[s("img",{attrs:{src:e("82aa"),alt:""}}),s("p",[t._v("支付成功")]),"PRACTICE"==t.groupType?s("p",{staticClass:"money"},[t._v("¥"+t._s(t.PRACTICEPRICE))]):s("p",{staticClass:"money"},[t._v("¥"+t._s(t.orderInfo.actualAmount))])]),s("van-button",{attrs:{type:"info",round:""},on:{click:t.onAppBack}},[t._v("返回")])],1):t._e()],1)},n=[],i=e("6e6e"),r=e("ae54"),o=e("cf45"),c={name:"paymentResult",components:{MHeader:i["a"]},data:function(){var t=this.$route.query;return{headerStatus:!1,isBack:"off"!=t.isBack,pageStatus:null}},mounted:function(){Object(o["a"])().android||Object(o["a"])().iPhone||(this.headerStatus=!0),this.__init()},methods:{pushHistory:function(){var t={title:"title",url:"#"};window.history.pushState(t,"title","#")},__init:function(){var t=this,a=this.$route.query;a.orderNo?Object(r["b"])({orderNo:a.orderNo}).then((function(a){var e=a.data;200==e.code||(t.pageStatus="ING",t.CountDown())})):a.type?this.pageStatus=a.type:(this.pageStatus="ING",this.CountDown())},onAppBack:function(){Object(o["a"])().android?"PRACTICE"==this.groupType?(window.location.replace(window.location.href.toString().replace(window.location.hash,"")+"#/auditionpay/1"),this.$router.push("/auditionpay/1")):DAYA.postMessage(JSON.stringify({api:"back"})):Object(o["a"])().iPhone?"PRACTICE"==this.groupType?(window.location.replace(window.location.href.toString().replace(window.location.hash,"")+"#/auditionpay/1"),this.$router.push("/auditionpay/1")):window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"back"})):this.onHref()},onHref:function(){this.$route.query.sporadic||"SPORADIC"==this.groupType?42==this.orderInfo.organId?this.$router.replace({path:"/levelApply"}):this.$router.push({path:"/SporadicLogin",query:{id:this.$route.query.sporadic||this.orderInfo.musicGroupId}}):(window.location.replace(window.location.href.toString().replace(window.location.hash,"")+"#/transfer/"),this.$router.push("/transfer"))},CountDown:function(){var t=this,a=60;this.smsText=a;var e=setInterval((function(){a<=0?(t.__init(),clearInterval(e)):(a--,t.smsText=a)}),1e3)}}},u=c,p=(e("775b"),e("2877")),l=Object(p["a"])(u,s,n,!1,null,"6d0c5ed4",null);a["default"]=l.exports},"775b":function(t,a,e){"use strict";var s=e("c790"),n=e.n(s);n.a},"82aa":function(t,a,e){t.exports=e.p+"img/pay_success.181846c1.png"},ae54:function(t,a,e){"use strict";e.d(a,"a",(function(){return r})),e.d(a,"b",(function(){return o}));var s=e("4328"),n=e.n(s),i=e("981f").default;function r(t){return i({url:"/api-user/examOrder/executePayment",method:"post",data:n.a.stringify(t)})}function o(t){return i({url:"/api-user/examOrder/paymentResult",method:"get",params:t})}},c790:function(t,a,e){},f0da:function(t,a,e){},f620:function(t,a,e){t.exports=e.p+"img/pay_ing.2848bdf2.png"}}]);
|