1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["PaymentResult"],{3354:function(t,e,n){},"3e17":function(t,e,n){t.exports=n.p+"img/pay_error.109ccf27.png"},"3ed2":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"paymentresult"},[t.headerStatus?a("m-header",{attrs:{isBack:t.isBack}}):t._e(),"on"==t.pageStatus?a("div",{staticClass:"payon"},[a("img",{attrs:{src:n("82aa"),alt:""}}),a("p",[t._v("支付成功")]),a("van-button",{attrs:{type:"info",round:""},on:{click:t.onAppBack}},[t._v("返回")])],1):t._e(),"error"==t.pageStatus?a("div",{staticClass:"payerror"},[a("img",{attrs:{src:n("3e17"),alt:""}}),a("p",[t._v("支付失败")]),a("van-button",{attrs:{type:"info",round:""},on:{click:t.onAppBack}},[t._v("返回")])],1):t._e(),"paying"==t.pageStatus?a("div",{staticClass:"paying"},[a("img",{attrs:{src:n("f620"),alt:""}}),a("p",[t._v("订单处理中")]),a("van-button",{attrs:{type:"info",round:""},on:{click:t.onAppBack}},[t._v("返回")]),a("p",{staticClass:"countdown"},[t._v("到计时"+t._s(t.smsText)+"秒刷新")])],1):t._e(),"success"==t.pageStatus?a("div",{staticClass:"paysuccess"},[a("div",{staticClass:"status"},[a("img",{attrs:{src:n("82aa"),alt:""}}),a("p",[t._v("支付成功")]),"PRACTICE"==t.groupType?a("p",{staticClass:"money"},[t._v("¥"+t._s(t.PRACTICEPRICE))]):a("p",{staticClass:"money"},[t._v("¥"+t._s(t.orderInfo.actualAmount))])]),a("div",{staticClass:"orderinfo"},[a("p",[a("span",[t._v("购买时间:")]),t._v("\n "+t._s(t.orderInfo.createTime)+"\n ")]),a("p",[a("span",[t._v("订单号:")]),t._v("\n "+t._s(t.orderInfo.orderNo)+"\n ")]),a("p",[a("span",[t._v("购买详情:")]),a("span",[t._v("购买:"+t._s(t._f("calcMinute")(t.orderInfo.transMinutes))+";")]),t.orderInfo.giveMinutes&&t.orderInfo.giveMinutes>0?a("span",[t._v("赠送:"+t._s(t._f("calcMinute")(t.orderInfo.giveMinutes))+";")]):t._e()])]),a("van-button",{attrs:{type:"info",round:""},on:{click:t.onRepay}},[t._v("返回")])],1):t._e()],1)},r=[],o=(n("6b54"),n("28a5"),n("a481"),n("6e6e")),s=n("ff51"),i=n("b562"),u={name:"paymentresult",components:{MHeader:o["a"]},data:function(){var t=this;return{headerStatus:!1,isBack:"off"!=t.$route.query.isBack,pageStatus:null,orderInfo:{},smsText:60,groupType:null,timer:null}},mounted:function(){Object(s["a"])().android||Object(s["a"])().iPhone||(this.headerStatus=!0),this.__init()},methods:{__init:function(){var t=this,e=this.$route.query;e.orderNo?Object(i["i"])({orderNo:e.orderNo}).then(function(e){var n=e.data;if(200==n.code){var a=n.data;t.orderInfo=a,t.showStatus(a.status)}else t.pageStatus="paying",t.CountDown()}):e.type?this.pageStatus=e.type:(this.pageStatus="paying",this.CountDown())},getYMDToCn:function(t){"string"==typeof t&&(t=t.replace(/-/gi,"/"));var e=new Date(t);return e.getFullYear()+"年"+(e.getMonth()+1)+"月"+e.getDate()+"日"},splitStr:function(t){if(t){var e=t.split(":");return e[0]+":"+e[1]}return t},showStatus:function(t,e){"ING"==t?(this.pageStatus="paying",this.CountDown()):"SUCCESS"==t?this.pageStatus="success":"FAILED"==t&&(this.pageStatus="error")},onAppBack:function(){var t=localStorage.getItem("courseApply");clearInterval(this.timer),t?(window.location.replace(window.location.href.toString().replace(window.location.hash,"")+"#/courseApply"),this.$router.push("/courseApply")):(window.location.replace(window.location.href.toString().replace(window.location.hash,"")+"#/PeriodExchange"),this.$router.push("/PeriodExchange"))},onRepay:function(){var t=localStorage.getItem("courseApply");clearInterval(this.timer),t?(window.location.replace(window.location.href.toString().replace(window.location.hash,"")+"#/courseApply"),this.$router.push("/courseApply")):(window.location.replace(window.location.href.toString().replace(window.location.hash,"")+"#/PeriodExchange"),this.$router.push("/PeriodExchange"))},CountDown:function(){var t=this,e=60;this.smsText=e,this.timer=setInterval(function(){e<=0?(window.location.reload(),clearInterval(t.timer)):(e--,t.smsText=e)},1e3)}}},c=u,p=(n("a46c"),n("2877")),l=Object(p["a"])(c,a,r,!1,null,"6d2e6efc",null);e["default"]=l.exports},5115:function(t,e,n){"use strict";var a=n("3354"),r=n.n(a);r.a},"6e6e":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mheader"},[n("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[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:this.$route.meta.descrition))])],2),n("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},r=[],o={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},s=o,i=(n("5115"),n("2877")),u=Object(i["a"])(s,a,r,!1,null,"61d0e2e4",null);e["a"]=u.exports},"82aa":function(t,e,n){t.exports=n.p+"img/pay_success.181846c1.png"},a46c:function(t,e,n){"use strict";var a=n("ae8d"),r=n.n(a);r.a},ae8d:function(t,e,n){},b562:function(t,e,n){"use strict";n.d(e,"m",function(){return i}),n.d(e,"n",function(){return u}),n.d(e,"e",function(){return p}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return d}),n.d(e,"o",function(){return f}),n.d(e,"j",function(){return h}),n.d(e,"g",function(){return _}),n.d(e,"h",function(){return w}),n.d(e,"p",function(){return m}),n.d(e,"q",function(){return g}),n.d(e,"l",function(){return C}),n.d(e,"d",function(){return v}),n.d(e,"i",function(){return y}),n.d(e,"f",function(){return S}),n.d(e,"a",function(){return k}),n.d(e,"k",function(){return c});var a=n("4328"),r=n.n(a),o=n("981f").default,s="/api-teacher",i=function(t){return o({url:"/api-student/code/sendSms",method:"post",data:r.a.stringify(t)})},u=function(t){return o({url:"/api-auth/smsLogin",method:"post",data:r.a.stringify(t)})},c=function(t){return o({url:"/api-auth/user/noAuth/queryUserByPhone",method:"get",params:t})},p=function(t){return o({url:"/api-student/courseGroup/getGroupDetail",method:"get",params:t})},l=function(t){return o({url:"/api-student/courseGroup/buyCourseGroup",method:"post",data:r.a.stringify(t)})},d=function(t){return o({url:s+"/courseGroup/createCourseGroup",method:"post",data:t})},f=function(t){return o({url:s+"/sysTenantAccount/get",method:"get",params:t})},h=function(t){return o({url:s+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:t})},m=function(t){return o({url:s+"/teacherCourseSchedule/teacherCourseMinutes",method:"get",params:t})},g=function(t){return o({url:s+"/tenantEntryActivities/queryPage",method:"get",params:t})},v=function(t){return o({url:s+"/tenantPaymentOrder/createOrder",method:"post",data:r.a.stringify(t)})},y=function(t){return o({url:s+"/tenantPaymentOrder/queryByOrderNo",method:"get",params:t})},_=function(t){return o({url:"/api-cms/helpCenterCatalog/list",method:"get",params:t})},w=function(t){return o({url:"/api-cms/helpCenterContent/list",method:"get",params:t})},C=function(t){return o({url:"/api-auth/queryUserInfo",method:"get",params:t})},S=function(t){return o({url:s+"/courseReview/getStuAndTeaReview",method:"get",params:t})},k=function(t){return o({url:s+"/courseReview/batchAdd",method:"post",data:t})}},f620:function(t,e,n){t.exports=n.p+"img/pay_ing.2848bdf2.png"}}]);
|