(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-37d6a624"],{"0463":function(t,a,n){t.exports=n.p+"img/pay_success.181846c1.png"},"10b3":function(t,a,n){"use strict";n.r(a);var s=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"paymentresult"},[s("header",[t._v("支付状态")]),"on"==t.pageStatus?s("div",{staticClass:"payon"},[s("img",{attrs:{src:n("0463"),alt:""}}),s("p",[t._v("支付成功")]),s("van-button",{attrs:{type:"info",round:""},on:{click:t.onAppBack}},[t._v("返回")])],1):t._e(),"error"==t.pageStatus?s("div",{staticClass:"payerror"},[s("img",{attrs:{src:n("b92e"),alt:""}}),s("p",[t._v("支付失败")]),s("van-button",{attrs:{type:"info",round:""},on:{click:t.onAppBack}},[t._v("返回")])],1):t._e(),"paying"==t.pageStatus?s("div",{staticClass:"paying"},[s("img",{attrs:{src:n("e868"),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()])},e=[],o={name:"paymentresult",data:function(){return{pageStatus:null,smsText:60}},mounted:function(){this.__init()},methods:{__init:function(){var t=this,a=this.$route.query;a.orderNo?this.$axios.get("/yqpay/getPayStatus?orderNo="+a.orderNo).then(function(a){var n=a.data;200==n.code?"ING"==n.msg?(t.pageStatus="paying",t.CountDown()):"SUCCESS"==n.msg?t.pageStatus="on":"FAIL"==n.msg&&(t.pageStatus="error"):(t.$toast(n.msg),t.pageStatus="error")}):(this.pageStatus="paying",this.CountDown())},onAppBack:function(){this.$router.push("loginActive")},CountDown:function(){var t=this,a=60;this.smsText=a;var n=setInterval(function(){a<=0?(window.location.reload(),clearInterval(n)):(a--,t.smsText=a)},1e3)}}},i=o,r=(n("aa4c"),n("2877")),c=Object(r["a"])(i,s,e,!1,null,"5e025ad7",null);a["default"]=c.exports},"8cca":function(t,a,n){},aa4c:function(t,a,n){"use strict";var s=n("8cca"),e=n.n(s);e.a},b92e:function(t,a,n){t.exports=n.p+"img/pay_error.109ccf27.png"},e868:function(t,a,n){t.exports=n.p+"img/pay_ing.2848bdf2.png"}}]);
//# sourceMappingURL=chunk-37d6a624.bf9247ce.js.map