1 line
8.4 KiB
JavaScript
1 line
8.4 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2cbc23fd"],{"15fd":function(a,t,e){"use strict";e.d(t,"a",(function(){return i}));e("a4d3"),e("b64b");function r(a,t){if(null==a)return{};var e,r,i={},o=Object.keys(a);for(r=0;r<o.length;r++)e=o[r],t.indexOf(e)>=0||(i[e]=a[e]);return i}function i(a,t){if(null==a)return{};var e,i,o=r(a,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(i=0;i<n.length;i++)e=n[i],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(a,e)&&(o[e]=a[e])}return o}},"58b3":function(a,t,e){"use strict";e.r(t);var r=function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{attrs:{id:"test_alipay"}},[a.redirectToStatus?a._e():[this.fun.isWeiXin()?e("div",{staticClass:"J-weixin-tip weixin-tip"},[a._m(0)]):a._e(),this.fun.isWeiXin()?a._e():e("loading",{attrs:{show:!0}})]],2)},i=[function(){var a=this,t=a.$createElement,r=a._self._c||t;return r("div",{attrs:{id:"alipay-detail"}},[r("div",{staticClass:"bg"},[r("img",{attrs:{src:e("e236"),alt:""}})])])}],o=e("c7eb"),n=e("15fd"),s=e("1da1"),u=(e("e7e5"),e("d399")),l=(e("b0c0"),e("ac1f"),e("5319"),e("caad"),e("2532"),e("6968")),p=e("c428"),d=["i","type","mid","shop_id","url"],c={data:function(){return{alipay_url:"",uid:"",redirectToStatus:!1}},methods:{payAuthPay:function(){var a=this,t={order_pay_id:this.$route.params.order_pay_id};$http.get("order.merge-pay.authPay",t).then((function(t){1==t.result?(a.alipay_url=t.data.pay_msg,a.webToPay()):a.$dialog.alert({message:t.msg}).then((function(){a.$router.go(-1)})).catch((function(){}))}),(function(a){this.$dialog.alert({message:a.msg})}))},jinepayH5:function(){var a=this;$http.post("order.merge-pay.jinepayH5",{order_pay_id:this.$route.params.order_pay_id}," ").then((function(t){if(1==t.result){var e=t.data.pay_msg.params,r=t.data.pay_msg.url;a.fun.setWXTitle("锦e支付"),a.redirectToJinEPayH5(r,e)}else a.$dialog.alert({message:t.msg})})).catch((function(a){}))},redirectToJinEPayH5:function(a,t){var e=document.createElement("form");for(var r in e.action=a,e.method="post",e.style.display="none",t){var i=document.createElement("textarea");i.name=r,i.value=t[r],e.appendChild(i)}return document.body.appendChild(e),e.submit(),e},webToPay:function(){if(this.fun.isWeiXin()){if("1"==this.fun.getPhoneEnv()){var a=window.location;window.location=a}}else window.location.replace(this.alipay_url)},toPay:function(a){var t=this,e="finance.balance.alipay";"tagRecharge"==a&&(e="plugin.tag-balance.frontend.recharge.alipay"),$http.get(e,{order_sn:this.$route.params.order_pay_id,uid:this.$route.params.uid,pay_type:2,recharge_money:this.$route.params.recharge_money},"正在充值").then((function(a){1==a.result?(t.alipay_url=a.data,t.webToPay()):t.$dialog.alert({message:a.msg})}),(function(a){}))},toPayOrder:function(){var a=this,t=this,e="";e=t.$route.params.money?"order.merge-pay.wft-alipay":"order.merge-pay.alipay",$http.get(e,{pid:this.$route.query.pid?this.$route.query.pid:window.localStorage.getItem("uid"),uid:this.$route.params.uid,order_pay_id:this.$route.params.order_pay_id},"loading").then((function(e){1==e.result?(t.$route.params.money?t.alipay_url=e.data.code_url:t.alipay_url=e.data,t.webToPay(e.data)):t.$dialog.alert({message:e.msg}).then((function(){a.$router.go(-1)}))}),(function(a){}))},toPayByGold:function(){var a=this,t={pay_type:2,change_value:this.$route.params.recharge_money,i:this.fun.getKeyByI(),type:this.fun.getTyep(),uid:this.$route.params.uid};$http.get("plugin.gold.frontend.controllers.recharge",t,"正在充值").then((function(t){1==t.result?(a.alipay_url=t.data,a.webToPay()):a.$dialog.alert({message:t.msg})}),(function(t){a.$dialog.alert({message:t.msg})}))},toPayByCash:function(){var a=this,t={payment:2,order_sn:this.$route.params.order_pay_id};$http.get("plugin.lease.Frontend.Modules.Deposit.Controllers.recharge.pay",t,"正在充值").then((function(t){1==t.result?(a.alipay_url=t.data,a.webToPay()):a.$dialog.alert({message:t.msg})}),(function(t){a.$dialog.alert({message:t.msg})}))},toPayUrl:function(){this.alipay_url=this.$route.params.url,"recharge_phone_bill"==this.$route.params.status&&(this.alipay_url=decodeURIComponent(this.alipay_url)),this.webToPay()},toFrozen:function(){var a=this;$http.get("plugin.froze.Frontend.Modules.Froze.Controllers.recharge.alipay",{order_sn:this.$route.params.order_pay_id},"正在充值").then((function(t){1==t.result?(a.alipay_url=t.data,a.webToPay()):a.$dialog.alert({message:t.msg})}),(function(a){}))},toLove:function(){var a=this;$http.get("plugin.love.Frontend.Modules.Love.Controllers.recharge.alipay",{order_sn:this.$route.params.order_pay_id},"正在充值").then((function(t){1==t.result?(a.alipay_url=t.data,a.webToPay()):a.$dialog.alert({message:t.msg})}),(function(a){}))},toLoveRecharge:function(){var a=this;$http.get("plugin.love.Frontend.Modules.Love.Controllers.recharge.alipay",{order_sn:this.$route.params.pay_id},"正在充值").then((function(t){1==t.result?(a.alipay_url=t.data,a.webToPay()):a.$dialog.alert({message:t.msg})})).catch((function(a){}))},alipayapiPay:function(){var a=this;$http.get("order.merge-pay.alipay-jsapi-pay",{order_pay_id:this.$route.params.order_pay_id,pid:this.$route.params.uid}).then((function(t){1===t.result?(a.alipay_url=t.data,a.webToPay()):a.$dialog.alert({message:t.msg})}),(function(a){Object(u["a"])(a.msg)}))},getwechatPayAili:function(){var a=this,t=this,e={order_pay_id:this.$route.params.order_pay_id};$http.get("order.merge-pay.alipay-pay-hj",e).then((function(e){1==e.result?(a.alipay_url=e.data.data.rc_Result,t.webToPay()):a.$dialog.alert({message:e.msg}).then((function(){a.$router.go(-1)})).catch((function(){}))}),(function(a){t.$dialog.alert({message:a.msg})}))},huibeiPay:function(){var a=this,t={order_pay_id:this.$route.params.order_pay_id};$http.get("order.merge-pay.huibei-ali-pay",t).then((function(t){1==t.result?(a.alipay_url=t.data.payment.payurl,a.webToPay()):a.$dialog.alert({message:t.msg}).then((function(){a.$router.go(-1)})).catch((function(){}))}),(function(a){that.$dialog.alert({message:a.msg})}))}},deactivated:function(){if(this.redirectToStatus){var a=document.getElementById("jinepayBox");a.remove()}},activated:function(){var a=this;return Object(s["a"])(Object(o["a"])().mark((function t(){var e,r,i,s,l;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a.redirectToStatus=!1,e=["6","7","8","9","5","hj_url","79","80","handSign","tagRecharge"],a.fun.isWeiXin()){t.next=24;break}if("0"!=a.$route.params.status&&"drink"!=a.$route.params.status){t.next=14;break}return r=a.$route.query,r.i,r.type,r.mid,r.shop_id,i=r.url,s=Object(n["a"])(r,d),t.next=7,$http.post(i,s);case 7:if(l=t.sent,1===l.result){t.next=11;break}return u["a"].fail(l.msg),t.abrupt("return");case 11:return"drink"==a.$route.params.status?a.alipay_url=l.data.url:a.alipay_url=l.data,a.webToPay(),t.abrupt("return");case 14:if("104"!=a.$route.params.status){t.next=17;break}return a.jinepayH5(),t.abrupt("return");case 17:if("105"!=a.$route.params.status){t.next=20;break}return a.payAuthPay(),t.abrupt("return");case 20:if("119"!=a.$route.params.status){t.next=23;break}return a.huibeiPay(),t.abrupt("return");case 23:"2"==a.$route.params.status?a.toPayOrder():"1"==a.$route.params.status?"frozen"==a.$route.params.tag?a.toFrozen():"love"==a.$route.params.tag?a.toLove():"tagRecharge"==a.$route.params.tag?a.toPay("tagRecharge"):a.toPay():"3"==a.$route.params.status?a.toPayByGold():"4"==a.$route.params.status?a.toPayByCash():"11"==a.$route.params.status?a.toLoveRecharge():"49"==a.$route.params.status?a.alipayapiPay():"29"==a.$route.params.status?a.getwechatPayAili():("recharge_phone_bill"==a.$route.params.status||e.includes(a.$route.params.status)||a.$route.params.url)&&a.toPayUrl();case 24:case"end":return t.stop()}}),t)})))()},components:{cTitle:l["a"],loading:p["a"]},created:function(){}},y=c,h=y,g=(e("69c0"),e("2877")),m=Object(g["a"])(h,r,i,!1,null,"7a775908",null);t["default"]=m.exports},"69c0":function(a,t,e){"use strict";e("b83f")},8847:function(a,t,e){var r=e("24fb");t=r(!1),t.push([a.i,"#jinepayBox[data-v-7a775908]{width:100%;height:100vh;background:#fff}#alipay-detail[data-v-7a775908]{background:rgba(0,0,0,.8);height:100%;position:fixed;width:100%}#alipay-detail img[data-v-7a775908]{width:100%;position:relative;top:-2.5rem}",""]),a.exports=t},b83f:function(a,t,e){var r=e("8847");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals);var i=e("499e").default;i("4c09960a",r,!0,{sourceMap:!1,shadowMode:!1})},e236:function(a,t,e){a.exports=e.p+"static/app/img/alipay-bg.64de79e8.png"}}]); |