12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-957805ae"],{"0463":function(t,n,a){t.exports=a.p+"img/pay_success.181846c1.png"},"10b3":function(t,n,a){"use strict";a.r(n);var s=function(){var t=this,n=t.$createElement,s=t._self._c||n;return s("div",{staticClass:"paymentresult"},[s("header",[t._v("支付状态")]),"on"==t.pageStatus?s("div",{staticClass:"payon"},[s("img",{attrs:{src:a("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:a("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:a("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,n=this.$route.query;n.orderNo?this.$axios.get("/yqpay/getPayStatus?orderNo="+n.orderNo).then(function(n){var a=n.data;200==a.code?"ING"==a.msg?(t.pageStatus="paying",t.CountDown()):"SUCCESS"==a.msg?t.pageStatus="on":"FAIL"==a.msg&&(t.pageStatus="error"):(t.$toast(a.msg),t.pageStatus="error")}):(this.pageStatus="paying",this.CountDown())},onAppBack:function(){this.$router.push("loginActive")},CountDown:function(){var t=this,n=60;this.smsText=n;var a=setInterval(function(){n<=0?(window.location.reload(),clearInterval(a)):(n--,t.smsText=n)},1e3)}}},i=o,r=(a("5c3f"),a("2877")),c=Object(r["a"])(i,s,e,!1,null,"7dda10f4",null);n["default"]=c.exports},"5c3f":function(t,n,a){"use strict";var s=a("8be3"),e=a.n(s);e.a},"8be3":function(t,n,a){},b92e:function(t,n,a){t.exports=a.p+"img/pay_error.109ccf27.png"},e868:function(t,n,a){t.exports=a.p+"img/pay_ing.2848bdf2.png"}}]);
- //# sourceMappingURL=chunk-957805ae.a523c346.js.map
|