1 line
5.0 KiB
JavaScript
1 line
5.0 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d68806c"],{"09e3":function(t,e,a){var i=a("7013");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("e05003cc",i,!0,{sourceMap:!1,shadowMode:!1})},1369:function(t,e,a){t.exports=a.p+"static/app/img/pay_succee.000e65e1.png"},4800:function(t,e,a){"use strict";a("09e3")},7013:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".wrapper[data-v-3dfb0725]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%}.wrapper .block[data-v-3dfb0725]{width:14rem;height:18rem}.wrapper .block img[data-v-3dfb0725]{width:100%;height:100%}.pay_back[data-v-3dfb0725]{min-height:100vh;background-color:#fff}.loadingStyle[data-v-3dfb0725]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:.81rem}.pay_succee[data-v-3dfb0725]{margin:20px;width:7.84rem;height:6.19rem}.loadingEx[data-v-3dfb0725]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;margin-left:.44rem}.loadingEx span[data-v-3dfb0725]{display:inline-block;width:.31rem;height:.31rem;margin-right:5px;border-radius:50%;background:#ff4c4c;-webkit-animation:load-data-v-3dfb0725 1.04s ease infinite}.loadingEx span[data-v-3dfb0725]:last-child{margin-right:0}@-webkit-keyframes load-data-v-3dfb0725{0%{opacity:1}to{opacity:0}}.loadingEx span[data-v-3dfb0725]:first-child{-webkit-animation-delay:.13s}.loadingEx span[data-v-3dfb0725]:nth-child(2){-webkit-animation-delay:.26s}.loadingEx span[data-v-3dfb0725]:nth-child(3){-webkit-animation-delay:.39s}",""]),t.exports=e},9218:function(t,e,a){t.exports=a.p+"static/app/img/consume_packet.af6936ca.png"},f6dd:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"pay_back"}},[i("c-title",{attrs:{hide:!1,text:"支付成功"}}),t._m(0),i("van-overlay",{attrs:{show:t.showPacket},on:{click:t.closePacket}},[i("div",{staticClass:"wrapper"},[i("div",{staticClass:"block",on:{click:function(t){t.stopPropagation()}}},[i("img",{attrs:{src:a("9218")},on:{click:t.toPacket}})])])])],1)},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pay_back"},[i("img",{staticClass:"pay_succee",attrs:{src:a("1369"),alt:""}}),i("p",{staticStyle:{"font-size":"1.06rem","font-weight":"bold"}},[t._v("订单已支付")]),i("div",{staticClass:"loadingStyle"},[i("span",{staticStyle:{"font-size":"0.75rem"}},[t._v("等待处理中")]),i("div",{staticClass:"loadingEx"},[i("span"),i("span"),i("span")])])])}],n=(a("e7e5"),a("d399")),r=(a("ac1f"),a("5319"),a("1276"),{data:function(){return{Interval:null,showPacket:!1}},mounted:function(){this.getData()},deactivated:function(){clearInterval(this.Interval),this.Interval=null},methods:{toPacket:function(){this.$router.replace(this.fun.getUrl("ConsumePacketSuccess",{},{order_id:this.order_ids}))},getData:function(){var t=this;$http.post("order.merge-pay.check-order-pay",{order_pay_id:this.$route.params.ids}).then((function(e){1==e.result?1==e.data.status?(t.checkoutConsumePacket(e.data.redirect),clearInterval(t.Interval),t.Interval=null):t.Interval||(t.Interval=setInterval((function(){t.getData()}),1e3)):n["a"].success(e.msg)}))},checkoutConsumePacket:function(t){var e=this;1==JSON.parse(window.localStorage.getItem("globalParameter")).consume_red_packet_status&&this.$route.params.ids?$http.post("plugin.consume-red-packet.Frontend.Modules.Packet.Controllers.has.index",{order_id:String(this.$route.params.ids).split(",")},"loading").then((function(a){1==a.result?e.showPacket=!0:e.toRedirect(t)}),(function(a){e.toRedirect(t)})):this.toRedirect(t)},closePacket:function(){this.showPacket=!1,this.toRedirect()},toRedirect:function(t){return this.$route.params.is_cps?(n["a"].success("支付成功"),void this.$router.push(this.fun.getUrl("cpsCouponList",{}))):this.$route.params.pageUrl?(n["a"].success("支付成功"),void("enroll"==this.pageUrl?this.$router.push(this.fun.getUrl("activityHome")):this.$router.push(this.fun.getUrl("Myshaky")))):void this.payCallBack(t)},payCallBack:function(t){this.fun.isTextEmpty(t)?this.$router.push(this.fun.getUrl("home")):t&&t.indexOf("showBalances")>-1?this.goShowBalances():window.location.href=t},goShowBalances:function(){this.$router.push(this.fun.getUrl("showBalances",{pay_sn:this.order_sn,pay_type:"pay"}))}}}),c=r,o=(a("4800"),a("2877")),l=Object(o["a"])(c,i,s,!1,null,"3dfb0725",null);e["default"]=l.exports}}]); |