3 lines
41 KiB
JavaScript
3 lines
41 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f00c23cc"],{"1da1":function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));a("d3b7");function r(e,t,a,r,i,n,o){try{var s=e[n](o),u=s.value}catch(c){return void a(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,a=arguments;return new Promise((function(i,n){var o=e.apply(t,a);function s(e){r(o,i,n,s,u,"next",e)}function u(e){r(o,i,n,s,u,"throw",e)}s(void 0)}))}}},c7eb:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));a("a4d3"),a("e01a"),a("d3b7"),a("d28b"),a("3ca3"),a("ddb0"),a("b636"),a("944a"),a("0c47"),a("23dc"),a("d9e2"),a("3410"),a("159b"),a("b0c0"),a("131a"),a("fb6a");var r=a("53ca");function i(){
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
i=function(){return e};var e={},t=Object.prototype,a=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",u=n.toStringTag||"@@toStringTag";function c(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(A){c=function(e,t,a){return e[t]=a}}function d(e,t,a,r){var i=t&&t.prototype instanceof p?t:p,n=Object.create(i.prototype),o=new x(r||[]);return n._invoke=function(e,t,a){var r="suspendedStart";return function(i,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw n;return S()}for(a.method=i,a.arg=n;;){var o=a.delegate;if(o){var s=v(o,a);if(s){if(s===l)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===r)throw r="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r="executing";var u=h(e,t,a);if("normal"===u.type){if(r=a.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(r="completed",a.method="throw",a.arg=u.arg)}}}(e,a,o),n}function h(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(A){return{type:"throw",arg:A}}}e.wrap=d;var l={};function p(){}function y(){}function g(){}var f={};c(f,o,(function(){return this}));var _=Object.getPrototypeOf,m=_&&_(_(W([])));m&&m!==t&&a.call(m,o)&&(f=m);var w=g.prototype=p.prototype=Object.create(f);function P(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function $(e,t){function i(n,o,s,u){var c=h(e[n],e,o);if("throw"!==c.type){var d=c.arg,l=d.value;return l&&"object"==Object(r["a"])(l)&&a.call(l,"__await")?t.resolve(l.__await).then((function(e){i("next",e,s,u)}),(function(e){i("throw",e,s,u)})):t.resolve(l).then((function(e){d.value=e,s(d)}),(function(e){return i("throw",e,s,u)}))}u(c.arg)}var n;this._invoke=function(e,a){function r(){return new t((function(t,r){i(e,a,t,r)}))}return n=n?n.then(r,r):r()}}function v(e,t){var a=e.iterator[t.method];if(void 0===a){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,v(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=h(a,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function b(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function W(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(a.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return y.prototype=g,c(w,"constructor",g),c(g,"constructor",y),y.displayName=c(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},P($.prototype),c($.prototype,s,(function(){return this})),e.AsyncIterator=$,e.async=function(t,a,r,i,n){void 0===n&&(n=Promise);var o=new $(d(t,a,r,i),n);return e.isGeneratorFunction(a)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},P(w),c(w,u,"Generator"),c(w,o,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var a in e)t.push(a);return t.reverse(),function a(){for(;t.length;){var r=t.pop();if(r in e)return a.value=r,a.done=!1,a}return a.done=!0,a}},e.values=W,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(a,r){return o.type="throw",o.arg=e,t.next=a,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=a.call(n,"catchLoc"),u=a.call(n,"finallyLoc");if(s&&u){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(s){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=e,o.arg=t,n?(this.method="next",this.next=n.finallyLoc,l):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),b(a),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var r=a.completion;if("throw"===r.type){var i=r.arg;b(a)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,a){return this.delegate={iterator:W(e),resultName:t,nextLoc:a},"next"===this.method&&(this.arg=void 0),l}},e}},dca4:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var r=a("c7eb"),i=(a("e7e5"),a("d399")),n=a("1da1"),o=(a("d81d"),a("b0c0"),a("e9c4"),a("9911"),a("ac1f"),a("5319"),a("d055")),s=a.n(o),u="",c={data:function(){return{confirmPayText:"确定",popupSpecs:!1,showZFBQR:!1,isZFBQR:!1,qrcode:"",showQR:!1,alipayShow:!1,pageUrl:"",redirectData:{data:{}},cbHref:{},showPacket:!1,isclick:!1,pageTag:""}},watch:{buttons:function(e){var t=this;e&&e.constructor===Array&&e.length>0&&e.map((function(e){54==e.value&&(t.confirmPayText=e.name||"确定")}))}},activated:function(){this.initPopup()},methods:{rechargePay:function(e,t,a,o){var s=this;return Object(n["a"])(Object(r["a"])().mark((function n(){var u,c,d,h,l,p;return Object(r["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(1!=e){r.next=5;break}wx.config(t.data.js),s.WXPay(t.data.config),r.next=97;break;case 5:if(48!=e){r.next=9;break}"storeBalance"===o&&s.newWXPay(t.data.config,t.data.redirect||"home"),r.next=97;break;case 9:if(49!=e){r.next=13;break}"storeBalance"===o&&s.$router.push(s.fun.getUrl("alipay",{status:49,recharge_money:s.money,order_pay_id:a,uid:window.localStorage.uid,pid:window.localStorage.uid})),r.next=97;break;case 13:if(3!=e){r.next=18;break}Object(i["a"])(t.msg),s.$router.push(s.fun.getUrl("auctionLove")),r.next=97;break;case 18:if(2!=e){r.next=52;break}if("recharge"!==o){r.next=29;break}return r.next=22,$http.post("plugin.credit-inventory.frontend.controllers.recharge.alipay",{order_sn:s.ordersn});case 22:if(u=r.sent,1===u.result){r.next=26;break}return i["a"].fail(u.msg),r.abrupt("return");case 26:window.location.href=u.data,r.next=50;break;case 29:if("handSign"!==o){r.next=39;break}return r.next=32,$http.post("plugin.hand-sign-protocol.frontend.controllers.protocol.alipay",{order_sn:s.ordersn});case 32:if(c=r.sent,1===c.result){r.next=36;break}return i["a"].fail(c.msg),r.abrupt("return");case 36:s.$router.push(s.fun.getUrl("alipayCloud",{status:"handSign",url:c.data})),r.next=50;break;case 39:if("storeBalance"!==o){r.next=49;break}return r.next=42,$http.post("plugin.store-cashier.frontend.store.balance.balance.alipay",{order_sn:s.ordersn});case 42:if(d=r.sent,1===d.result){r.next=46;break}return i["a"].fail(d.msg),r.abrupt("return");case 46:s.$router.push(s.fun.getUrl("alipayCloud",{status:"80",url:d.data})),r.next=50;break;case 49:"balance"===o?s.$router.push(s.fun.getUrl("alipay",{status:"1",recharge_money:s.money,order_pay_id:a,uid:window.localStorage.uid,pid:window.localStorage.uid})):s.$router.push(s.fun.getUrl("love_alipay",{status:"1",recharge_money:s.money,order_pay_id:a,uid:window.localStorage.uid,pid:window.localStorage.uid,tag:"love"}));case 50:r.next=97;break;case 52:if(6!=e){r.next=56;break}s.getWeChatPayParams2_recharge(a),r.next=97;break;case 56:if(9!=e){r.next=60;break}s.appWeiPay_recharge(a),r.next=97;break;case 60:if(10!=e){r.next=64;break}s.appAliPay_recharge(t.data.isnewalipay,a),r.next=97;break;case 64:if(12!=e){r.next=68;break}s.newWechatPay_recharge(a),r.next=97;break;case 68:if(7!=e){r.next=72;break}s.newAlipay_recharge(a),r.next=97;break;case 72:if(19!=e){r.next=76;break}s.eupPay(a),r.next=97;break;case 76:if(21!=e){r.next=80;break}200==t.data.status?s.fun.isWeiXin()?s.$router.push(s.fun.getUrl("wft_balance_recharge_copy",{url:t.data.code_url,code_url:t.data.code_img_url})):s.$router.push(s.fun.getUrl("wft_balance_recharge",{status:"12",url:t.data.code_url})):s.$dialog.alert({message:t.msg}),r.next=97;break;case 80:if(28!=e){r.next=96;break}if(h=JSON.parse(localStorage.getItem("globalParameter")).initial_id,l="","love"===o?l="/packageB/member/love/LoveRecharge/LoveRecharge":"balance"===o?l="/packageA/member/balance/balance_recharge/balance_recharge":"recharge"===o&&(l="/packageH/credit_value/recharge/recharge"),!h||!s.fun.isApp()){r.next=88;break}return s.isclick=!1,YDB.MiniWX(h,l),r.abrupt("return");case 88:if(!(h&&s.fun.isCPS()&&s.fun.isCPSAPPI())){r.next=93;break}return s.isclick=!1,p={mini_route:l,mini_id:h},"ios"===s.fun.isIosOrAndroid()?miniWXIOS({body:"miniWXIOS",json:JSON.stringify(p)}):miniWXAndroid(JSON.stringify(p)),r.abrupt("return");case 93:t.data.data.rc_Result&&s.newWXPay(JSON.parse(t.data.data.rc_Result)),r.next=97;break;case 96:29==e?"balance"===o?s.$router.push(s.fun.getUrl("alipayCloud",{status:"hj_url",url:t.data.data.rc_Result})):t.data.data.rc_Result?window.location.href=t.data.data.rc_Result:""!=t.data.msg&&s.$dialog.alert({message:t.data.msg}):23==e?s.talentPay(a):33==e?"balance"===o?window.location.href=t.data.url:s.jueqiAlipay_recharge(a):50==e?window.location.href=t.data.mweb_url:59==e?s.getQuick(a,o):202006==e?s.cmcPay(a):81==e?window.location.href=t.data.pay_msg.link:82==e?s.newWXPay(t.data.pay_msg.js_prepay_info):79==e?s.$router.push(s.fun.getUrl("alipayCloud",{status:"79",url:t.data.pay_msg.qr_code})):85==e||96==e?s.$router.push(s.fun.getUrl("alipayCloud",{status:"85",url:t.data.pay_msg.link})):86==e?s.newWXPay(t.data.pay_msg):78==e?s.newWXPay(t.data.pay_msg.js_prepay_info):89==e?s.$router.push(s.fun.getUrl("alipayCloud",{status:"89",url:t.data.data.url})):97==e&&(s.fun.isWeiXin()?s.newWXPay(t.data.pay_msg):window.location.href=t.data.pay_msg);case 97:case"end":return r.stop()}}),n)})))()},storeBalance:function(){var e=this;$http.get("plugin.store-balance.frontend.pay.index",{order_pay_id:this.order_pay_id,store_id:this.$route.params.store_id},"").then((function(t){1==t.result?e.checkoutConsumePacket():e.$dialog.alert({message:t.msg})}))},getWeChatPayParams2_recharge:function(e){var t=this;$http.get("finance.balance.cloudWechatPay",{ordersn:e},"").then((function(e){1==e.result?window.location.href=e.data:t.$dialog.alert({message:e.msg}),t.isclick=!1}))},appWeiPay_recharge:function(e){this.isclick=!1,YDB.SetWxpayInfo(this.$store.state.temp.mailInfo.name,"订单号:"+e,this.money,e,this.fun.getKeyByI())},appAliPay_recharge:function(e,t){this.isclick=!1,1==e?YDB.SetRSA2AlipayInfo(this.$store.state.temp.mailInfo.name,this.fun.getKeyByI(),this.money,this.fun.getKeyByI()+"_"+t):YDB.SetAlipayInfo(this.$store.state.temp.mailInfo.name,this.fun.getKeyByI(),this.money,this.fun.getKeyByI()+"_"+t)},newWechatPay_recharge:function(e){var t=this;$http.get("order.merge-pay.yunPayWechat",{order_pay_id:e},"").then((function(e){1===e.result?t.newWXPay(e.data):t.$dialog.alert({message:e.msg})}))},newAlipay_recharge:function(e){var t=this;$http.get("finance.balance.alipay",{order_sn:e},"").then((function(e){1===e.result?t.$router.push(t.fun.getUrl("alipayCloud",{status:"7",url:e.data})):t.$dialog.alert({message:e.msg})}))},eupPay:function(e){$http.get("plugin.eup-pay.api.eup-recharge.index",{order_sn:e}," ").then((function(e){1==e.result&&(window.location.href=e.data.url)})).catch((function(e){}))},talentPay:function(e){$http.get("plugin.pld-pay.api.pld-recharge.index",{order_sn:e}," ").then((function(e){1==e.result&&(window.location.href=e.data.url)})).catch((function(e){}))},jueqiAlipay_recharge:function(e){var t=this;$http.get("order.merge-pay.wechat-pay-jueqi",{order_pay_id:e}).then((function(e){1==e.result?window.location.href=e.data.url:t.$dialog.alert({message:e.msg})}))},getQuick:function(e,t){var a=this,r=3,i="plugin.converge_pay.frontend.controllers.quick-pay.love-recharge";"balance"===t?(r=2,i="plugin.converge_pay.frontend.controllers.quick-pay.show-recharge"):"recharge"===t&&(r=1,i="plugin.converge_pay.frontend.controllers.quick-pay.credit-recharge"),$http.get(i,{ordersn:e}).then((function(t){1==t.result?0==t.data.have_bank_card?a.$router.push(a.fun.getUrl("addBankFirst",{order_pay_id:e,status:r})):a.$router.push(a.fun.getUrl("chooseBank",{order_pay_id:e,status:r})):a.$dialog.alert({message:t.msg})}))},cmcPay:function(e){var t=this;$http.get("plugin.cmc-pay.frontend.cmc-recharge.index",{order_sn:e},"").then((function(e){1===e.result?(t.money=null,t.getData(),t.$dialog.alert({message:e.msg})):t.$dialog.alert({message:e.msg})}))},handleOtherPay:function(e,t,a){var r=this;switch(this.pageTag=a,e.value){case 1:wx.config(t.data.js),this.WXPay(t.data.config);break;case 2:"clockin"===a?this.$router.push(this.fun.getUrl("alipayClockin",{status:"5",url:t.data})):this.$router.push(this.fun.getUrl("alipayCourse",{status:"9",url:t.data}));break;case 3:"clockin"===a?this.fun.isTextEmpty(t.data.redirect)?(this.getTodayClockOn(),this.getCurrentPayStatus(),this.$dialog.alert({message:t.msg}).then((function(){r.$router.push(r.fun.getUrl("home"))}))):(this.getTodayClockOn(),this.getCurrentPayStatus(),Object(i["a"])(t.msg),window.location.href=t.data.redirect):(this.isclick=!1,this.$dialog.alert({message:t.msg}).then((function(){if("newDraw"===a)window.history.length<=1?r.$router.push(r.fun.getUrl("newDrawIndex",{id:r.info_form.activity_id})):r.$router.go(-1);else if("pay_list"===a)r.goback?r.$router.push(r.fun.getUrl("home")):r.$route.query.fromTarget&&"voiceList"==r.$route.query.fromTarget?r.$router.push(r.fun.getUrl("VoiceList")):r.$router.push(r.fun.getUrl("notice"));else if("auction"===a)r.rewardPayshow=!1,r.getData();else if("groupWork"===a)return void r.$router.push(r.fun.getUrl("groupWorkMy",{}))})));break;case 6:window.location.href=t.data;break;case 12:this.newWXPay(t.data.config);break;case 7:"clockin"===a?this.$router.push(this.fun.getUrl("alipayClockin",{status:"5",url:t.data})):this.$router.push(this.fun.getUrl("alipayCourse",{status:"9",url:t.data}));break;case 9:YDB.SetWxpayInfo(this.$store.state.temp.mailInfo.name,"订单号:"+t.data.order_sn,this.rewardMoney,t.data.order_sn,this.fun.getKeyByI());break;case 10:1==t.data.isnewalipay?YDB.SetRSA2AlipayInfo(this.$store.state.temp.mailInfo.name,this.fun.getKeyByI(),this.money,t.data.order_sn):YDB.SetAlipayInfo(this.$store.state.temp.mailInfo.name,this.fun.getKeyByI(),this.money,t.data.order_sn);break;case 28:this.newWXPay(JSON.parse(t.data.data.rc_Result));break;case 29:this.HJToappliy(t.data);break;case 50:window.location.href=t.data.mweb_url;break;case 81:this.OtherPay_sandAlipay();break;case 82:this.OtherPay_sandWXpay();break;case 86:this.newWXPay(t.data.pay_msg);break;case 85:this.$router.push(this.fun.getUrl("alipayCloud",{status:"85",url:t.data.pay_msg.link}));case 89:this.$router.push(this.fun.getUrl("alipayCloud",{status:"89",url:t.data.data.url}));default:break}},OtherPay_sandAlipay:function(){var e=this;$http.get("order.merge-pay.sandpay-alipay",{}).then((function(t){1==t.result?window.location.href=t.data.pay_msg.link:(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},OtherPay_sandWXpay:function(){var e=this;if(!this.fun.isWeiXin())return this.$dialog.alert({message:"请在手机微信上点击支付"}),void(this.isclick=!1);$http.get("order.merge-pay.sandpay-wechat",{},"").then((function(t){1==t.result?e.newWXPay(t.data.pay_msg.js_prepay_info):e.$dialog.alert({message:t.msg}),e.isclick=!1}))},HJToappliy:function(e){"groupWork"!=this.pageTag?e.data.rc_Result?window.location.href=e.data.data.rc_Result:""!=e.data.msg&&this.$dialog.alert({message:e.data.msg}):this.$router.push(this.fun.getUrl("groupWorkMy",{}))},changePopupSpecs:function(e){this.popupSpecs=e},initPopup:function(){this.popupSpecs=!1,this.showZFBQR=!1,this.isZFBQR=!1,this.qrcode="",this.showQR=!1,this.alipayShow=!1,this.pageUrl="",this.redirectData={},this.cbHref={},this.showPacket=!1,this.isclick=!1},closePacket:function(){this.showPacket=!1,this.toRedirect()},checkoutConsumePacket:function(e){e&&(this.order_sn=e),this.toRedirect()},toRedirect:function(){var e={ids:this.order_pay_id};this.is_cps?e.is_cps=this.is_cps:this.fun.isTextEmpty(this.pageUrl)?this.order_sn&&(e.sn=this.order_sn):e.pageUrl=this.pageUr,this.$router.push(this.fun.getUrl("payBack",e))},payCallBack:function(){var e=this;$http.get("payment.callback-page.index",{sn:this.order_sn},"...").then((function(t){i["a"].success("支付成功"),1==t.result?t.data.redirect&&t.data.redirect.indexOf("showBalances")>-1?e.goShowBalances():window.location.href=t.data.redirect:e.$router.push(e.fun.getUrl("home"))}))},goShowBalances:function(){this.$router.push(this.fun.getUrl("showBalances",{pay_sn:this.order_sn,pay_type:"pay"}))},handlePayError:function(){this.isclick=!1},getIconUrl:function(e){var t="";switch(e.code){case"wechatPay":case"cloudPayWechat":case"wechatApp":case"yunPayWechat":case"wftPay":case"yop":case"convergePayWechat":case"WechatScan":case"WechatFace":case"WechatJsapi":case"wechatAggregatePay":case"convergePaySeparate":case"wechatCpsAppPay":t="icon-pay_wechat";break;case"alipay":case"cloudPayAlipay":case"alipayApp":case"yunPayAlipay":case"wftAlipay":case"convergePayAlipay":case"yopAlipay":case"AlipayScan":case"AlipayFace":case"AlipayJsapi":case"alipayAggregatePay":case"convergeAliPaySeparate":t="icon-pay_alipay";break;case"balance":case"MemberCard":t="icon-pay_yue";break;case"remittance":t="icon-pay_remittance";break;case"anotherPay":t="icon-pay_otherpay";break;case"UsdtPay":t="icon-pay_utsd";break;case"DepositPay":t="icon-pay_prepay";break;case"convergeQuickPay":t="icon-pay_quick";break;case"COD":t="icon-pay_cashondelivery";break;case"dcmScanPay":t="icon-fontclass-saomazhifu";break;case"parentPayment":t="icon-fontclass-daifu1";break;default:t="icon-pay_default";break}return t},btnclass2:function(e){return 1==e||6==e||9==e||12==e||56==e?"wei-btn":2==e||10==e||7==e?"zhi-btn":"yu-btn"},btnclass:function(e){return 1==e||6==e||9==e||12==e||20==e||22==e||48==e?"icon-balance_i":2==e||10==e||49==e||52==e?"icon-balance_j":18==e?"icon-balance_d":19==e?"icon-balance_g":"icon-balance_h"},confirm:function(e){var t=e.value;if(this.isclick)Object(i["a"])("还在请求支付,请等待~");else if(this.isclick=!0,1==t)this.getWeChatPayParams();else if(2==t)this.$router.push(this.fun.getUrl("alipay",{status:2,recharge_money:this.money,order_pay_id:this.order_pay_id,uid:this.uid,pid:this.$route.query.pid?this.$route.query.pid:this.uid}));else if(9==t)this.appWeiPay();else if(10==t)this.appAliPay();else if(6==t)this.getWeChatPayParams2();else if(3==t)1==e.need_password?(this.popupSpecs=!0,this.payarr="",this.isclick=!1):this.balancePay("");else if(12==t)this.newWechatPay();else if(11==t||"cashPay"==t)this.cashPay(t);else if(8==t)this.cashPay(t);else if(7==t)this.cloudAlipay();else if(14==t)this.otherPay();else if(15==t)this.yunPayAlipay();else if(16==t)this.transferAccounts();else if(17==t)this.payMoney();else if(21==t)this.alipayMoney();else if(26==t)this.yihepay();else if(27==t);else if(28==t)this.getwechatPay();else if(29==t)this.getwechatPayAili();else if(31==t)this.getadvancedeposit();else if(32==t)this.yiBaoAlipay();else if(33==t)this.jueqiAlipay();else if(48==t)this.wechatJsapiPay(t);else if(49==t)this.$router.push(this.fun.getUrl("alipay",{status:49,recharge_money:22,order_pay_id:this.order_pay_id,uid:this.uid,pid:this.uid}));else if(60==t)this.yiBaoProWechat();else if(61==t)this.yiBaoProAlipay();else if(50==t)this.fun.isAlipay()?this.$router.push(this.fun.getUrl("wxpay",{status:2},{order_pay_id:this.order_pay_id,uid:this.$route.query.pid?this.$route.query.pid:window.localStorage.getItem("uid"),pid:this.$route.query.pid?this.$route.query.pid:window.localStorage.getItem("uid")})):this.H5WechatPay();else if(54==e)this.sureBtn();else if(56==t)this.HKWechatPay();else if(58==t)this.payPalpay();else if(62==t)this.isclick=!1,this.fun.isWeiXin()?this.alipayShow=!0:this.HKAlipay();else if(59==t)this.quick_pay();else if(63==t||64==t)this.getQingYunPay(t);else if(68==t)this.scancodeAccount();else if(71==t){if(this.isclick=!1,this.fun.isCPS()&&this.fun.isCPSAPPI()){var a={order_pay_id:this.order_pay_id};"ios"===this.fun.isIosOrAndroid()?wxPayIOS({body:"wxPayIOS",json:JSON.stringify(a)}):wxPayAndroid(JSON.stringify(a))}}else 75==t?this.huiju_wechat(t):76==t?this.huiju_alipay(t):77==t?this.$router.push(this.fun.getUrl("superiorPaymentIndex",{order_id:this.order_ids})):80==t?this.storeBalance():79==t?this.xfpayAlipay(this.order_pay_id):78==t?this.xfpayWechat(this.order_pay_id):81==t?this.sandpayAlipay(this.order_pay_id):82==t?this.sandpayWechat(this.order_pay_id):84==t?this.lakalaAlipay(this.order_pay_id):83==t?this.lakalaWechat(this.order_pay_id):85==t?this.Otherleshua_Alipay():86==t?this.Otherleshua_wechat(this.order_pay_id):88==t?this.Throughpayment():91==t?this.hjUnionPay():89==t?this.HjAlipay():96==t?this.silverAlipay():97==t?this.silver_wechat():98==t&&this.silverUnionpay()},silverUnionpay:function(){var e=this;$http.get("order.merge-pay.silver-point-union-pay",{order_pay_id:this.order_pay_id},"").then((function(t){1==t.result?window.location.href=t.data.pay_msg.link:e.$dialog.alert({message:t.msg}),e.isclick=!1}))},silver_wechat:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:$http.get("order.merge-pay.silver-point-wechat",{order_pay_id:e.order_pay_id},"").then((function(t){1==t.result?t.data.pay_msg&&t.data&&(e.fun.isWeiXin()?e.newWXPay(t.data.pay_msg):window.location.href=t.data.pay_msg):e.$dialog.alert({message:t.msg}),e.handlePayError()}));case 1:case"end":return t.stop()}}),t)})))()},silverAlipay:function(){var e=this;$http.get("order.merge-pay.silver-point-alipay",{order_pay_id:this.order_pay_id},"").then((function(t){1==t.result?e.$router.push(e.fun.getUrl("alipayCloud",{status:"96",url:t.data.pay_msg.link})):e.$dialog.alert({message:t.msg}),e.isclick=!1}))},HjAlipay:function(){var e=this;$http.get("order.merge-pay.converge-alipay-h5-pay",{order_pay_id:this.order_pay_id},"").then((function(t){1==t.result?e.$router.push(e.fun.getUrl("alipayCloud",{status:"89",url:t.data.data.url})):e.$dialog.alert({message:t.msg}),e.isclick=!1}))},hjUnionPay:function(){var e=this;$http.get("order.merge-pay.converge-union-pay",{order_pay_id:this.order_pay_id},"").then((function(t){1==t.result?e.$router.push(e.fun.getUrl("unionPay",{payid:e.order_pay_id})):e.$dialog.alert({message:t.msg}),e.isclick=!1}))},Throughpayment:function(){var e=this;$http.get("plugin.love-speed-pool.frontend.pay.index",{order_pay_id:this.order_pay_id},"").then((function(t){1==t.result?(i["a"].success("支付成功"),e.checkoutConsumePacket()):e.$dialog.alert({message:t.msg}),e.isclick=!1}))},getMiniWeChatPayParams:function(){var e=this;$http.get("order.merge-pay.wechatPay",{app_type:"wechat",client_type:2,order_pay_id:this.order_pay_id,pid:this.$route.query.pid?this.$route.query.pid:this.uid}).then((function(t){if(1==t.result){var a=t.data.config,r={timeStamp:a.timestamp,nonceStr:a.nonceStr,package:a.package,signType:a.signType,paySign:a.paySign};e.miniWxPay(r)}else e.$dialog.alert({message:t.msg});e.handlePayError()}))},miniWxPay:function(e){var t="?timestamp="+e.timeStamp+"&nonceStr="+e.nonceStr+"&package="+encodeURIComponent(e.package)+"&signType="+e.signType+"&paySign="+e.paySign,a="/packageD/buy/orderPay/orderPay"+t;wx.miniProgram.navigateTo({url:a}),this.isclick=!1},WXPay:function(e,t){var a=this,r=this;wx.chooseWXPay({appId:e.appId,timestamp:e.timestamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign,success:function(e){if("chooseWXPay:ok"==e.errMsg){if("groupWork"==r.pageTag)return void r.$router.push(r.fun.getUrl("groupWorkMy",{}));t?(r.cbHref={cbHref:t},r.checkoutConsumePacket()):(i["a"].success("支付成功"),r.$router.go(-1)),a.isclick=!1}else r.$dialog.alert({message:"支付失败"}),r.handlePayError(),a.isclick=!1},cancel:function(e){r.handlePayError()},fail:function(e){r.$dialog.alert({message:"支付失败,请返回重试"}),r.handlePayError()}})},newWXPay:function(e,t){var a=this;try{WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.appId,timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},(function(e){if("get_brand_wcpay_request:ok"==e.err_msg){if("groupWork"==a.pageTag)return void a.$router.push(a.fun.getUrl("groupWorkMy",{}));t?(a.cbHref={cbHref:t},a.checkoutConsumePacket()):(i["a"].success("支付成功"),a.$router.go(-1))}else a.$dialog.alert({message:"支付失败"})}))}catch(r){}this.handlePayError()},getWeChatPayParams:function(){var e=this;if(window.isMiniprogram)return this.getMiniWeChatPayParams(),void this.handlePayError();$http.get("order.merge-pay.wechatPay",{order_pay_id:this.order_pay_id,pid:this.$route.query.pid?this.$route.query.pid:this.uid}).then((function(t){1==t.result?(wx.config(t.data.js),e.WXPay(t.data.config,t.data.redirect||"home")):e.$dialog.alert({message:t.msg}),e.handlePayError()}))},appWeiPay:function(){var e=this;$http.get("order.merge-pay.wechatAppPay",{order_pay_id:this.order_pay_id,pid:this.$route.query.pid?this.$route.query.pid:this.uid}).then((function(t){e.isclick=!1,1==t.result?YDB.SetWxpayInfo(e.$store.state.temp.mailInfo.name,"订单号:"+e.order_sn,e.money,e.order_sn,e.fun.getKeyByI()):e.$dialog.alert({message:t.msg})}))},appAliPay:function(){var e=this;$http.get("order.merge-pay.alipayAppRay",{order_pay_id:this.order_pay_id,pid:this.$route.query.pid?this.$route.query.pid:this.uid}).then((function(t){1==t.result?(e.isclick=!1,1==t.data.isnewalipay?YDB.SetRSA2AlipayInfo(e.$store.state.temp.mailInfo.name,e.fun.getKeyByI(),e.money,t.data.order_sn):YDB.SetAlipayInfo(e.$store.state.temp.mailInfo.name,e.fun.getKeyByI(),e.money,t.data.order_sn)):e.$dialog.alert({message:t.msg})}))},getWeChatPayParams2:function(){var e=this;$http.get("order.merge-pay.cloudWechatPay",{order_pay_id:this.order_pay_id,pid:this.$route.query.pid?this.$route.query.pid:this.uid}).then((function(t){1==t.result?window.location.href=t.data:e.$dialog.alert({message:t.msg}),e.handlePayError()}))},balancePay:function(e){var t=this,a={order_pay_id:this.order_pay_id,pid:this.$route.query.pid?this.$route.query.pid:this.uid};this.fun.isTextEmpty(e)||(a={order_pay_id:this.order_pay_id,payment_password:e,pid:this.$route.query.pid?this.$route.query.pid:this.uid}),$http.get("order.credit-merge-pay.credit2",a,"").then((function(e){1==e.result?(t.redirectData=e,t.cbHref={},t.checkoutConsumePacket()):(t.$dialog.alert({message:e.msg}),t.handlePayError())}))},newWechatPay:function(){var e=this,t={order_pay_id:this.order_pay_id,pid:this.$route.query.pid?this.$route.query.pid:this.uid};$http.get("order.merge-pay.yunPayWechat",t,"").then((function(t){1==t.result?e.newWXPay(t.data,t.data.redirect||"home"):(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},cashPay:function(e){var t=this;"8"!=e?this.$router.push(this.fun.getUrl("orderCash",{order_pay_id:this.order_pay_id,pid:this.$route.query.pid?this.$route.query.pid:this.uid})):$http.get("plugin.store-cashier.frontend.payment.cashPay.cashPay",{order_pay_id:this.order_pay_id,pid:this.uid}).then((function(e){1==e.result?(t.$dialog.alert({message:e.msg}),t.$router.push(t.fun.getUrl("member"))):(t.$dialog.alert({message:e.msg}),t.$router.push(t.fun.getUrl("orderdetail",{order_id:t.order_pay_id})))}))},cloudAlipay:function(){var e=this,t={order_pay_id:this.order_pay_id,pid:this.$route.query.pid?this.$route.query.pid:this.uid};$http.get("order.merge-pay.cloudAliPay",t,"").then((function(t){1==t.result?e.$router.push(e.fun.getUrl("alipayCloud",{status:"6",url:t.data})):(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},otherPay:function(){this.$router.push(this.fun.getUrl("PayAnother",{order_id:this.order_ids}))},yunPayAlipay:function(){var e=this,t={order_pay_id:this.order_pay_id,pid:this.$route.query.pid?this.$route.query.pid:this.uid};$http.get("order.merge-pay.yunPayAlipay",t,"").then((function(t){1==t.result?e.$router.push(e.fun.getUrl("alipayCloud",{status:"6",url:t.data})):(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},transferAccounts:function(){this.$router.push(this.fun.getUrl("TransferAccount",{id:this.order_pay_id,order_ids:this.$route.params.order_ids,status:"2"}))},payMoney:function(){var e=this;$http.get("order.mergePay.COD",{order_pay_id:this.order_pay_id}).then((function(t){1==t.result?(e.redirectData=t,e.cbHref={},e.checkoutConsumePacket()):(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},alipayMoney:function(){var e=this;$http.get("order.merge-pay.wft-alipay",{order_pay_id:this.order_pay_id}).then((function(t){1==t.result?e.fun.isTextEmpty(e.pageUrl)?e.fun.isTextEmpty(t.data.code_url)?(Object(i["a"])(t.msg),e.$router.replace(e.fun.getUrl("home"))):200==t.data.status?e.fun.isWeiXin()?e.$router.push(e.fun.getUrl("wft_balance_recharge_copy",{url:t.data.code_url,code_url:t.data.code_img_url})):e.$router.push(e.fun.getUrl("wft_balance_recharge",{status:"12",url:t.data.code_url})):e.$dialog.alert({message:t.msg}):e.toRedirect():e.$dialog.alert({message:t.msg}),e.handlePayError()}))},yihepay:function(){var e=this;$http.get("order.merge-pay.yop-pay",{order_pay_id:this.order_pay_id}).then((function(t){1==t.result?e.newWXPay(t.data.resultData):(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},xfpayAlipay:function(e){var t=this;$http.get("order.merge-pay.xfpay-alipay",{order_pay_id:e}).then((function(e){1==e.result?t.$router.push(t.fun.getUrl("alipayCloud",{status:"79",url:e.data.pay_msg.qr_code})):(t.$dialog.alert({message:e.msg}),t.handlePayError())}))},sandpayAlipay:function(e){var t=this;$http.get("order.merge-pay.sandpay-alipay",{order_pay_id:e}).then((function(e){1==e.result?window.location.href=e.data.pay_msg.link:(t.$dialog.alert({message:e.msg}),t.handlePayError())}))},lakalaAlipay:function(e){var t=this;return Object(n["a"])(Object(r["a"])().mark((function a(){return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:$http.get("order.merge-pay.lakala-alipay",{order_pay_id:e}).then((function(e){1==e.result?window.location.href=e.data.pay_msg.link:(t.$dialog.alert({message:e.msg}),t.handlePayError())}));case 1:case"end":return a.stop()}}),a)})))()},usdtPay:function(){var e=this;$http.get("order.merge-pay.usdt-pay",{order_pay_id:this.order_pay_id}).then((function(t){1===t.result?(e.usdt_action=t.data.url,e.usdt_form=t.data.content,e.$nextTick((function(){document.getElementById("usdtubmit").submit()}))):(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},getwechatPay:function(){var e=this,t=JSON.parse(localStorage.getItem("globalParameter")).initial_id;if(t&&this.fun.isApp())return this.isclick=!1,void YDB.MiniWX(t,"/packageD/buy/orderPay/orderPay.html?order_id=".concat(this.order_ids,"&status=2"));if(t&&this.fun.isCPS()&&this.fun.isCPSAPPI()){this.isclick=!1;var a={mini_route:"/packageD/buy/orderPay/orderPay.html?order_id=".concat(this.order_ids,"&status=2"),mini_id:t};"ios"===this.fun.isIosOrAndroid()?miniWXIOS({body:"miniWXIOS",json:JSON.stringify(a)}):miniWXAndroid(JSON.stringify(a))}else{var r={order_pay_id:this.order_pay_id};$http.get("order.merge-pay.wechat-pay-hj",r).then((function(t){1==t.result?e.newWXPay(JSON.parse(t.data.data.rc_Result),t.data.redirect_url||"home"):(e.$dialog.alert({message:t.msg}),e.handlePayError())}))}},getwechatPayAili:function(){this.$router.push(this.fun.getUrl("HJalipay",{status:29,order_pay_id:this.order_pay_id}))},getadvancedeposit:function(){var e=this;$http.post("plugin.team-rewards.frontend.controllers.deposit-pay.index",{order_pay_id:this.order_pay_id}).then((function(t){1===t.result?e.toRedirect():Object(i["a"])(t.msg),e.isclick=!1}))},yiBaoAlipay:function(){var e=this;$http.get("order.merge-pay.yop-alipay",{order_pay_id:this.order_pay_id}).then((function(t){1==t.result?window.location.href=t.data.resultData:(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},jueqiAlipay:function(){var e=this;$http.get("order.merge-pay.wechat-pay-jueqi",{order_pay_id:this.order_pay_id}).then((function(t){1==t.result?window.location.href=t.data.url:(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},walletPay:function(){var e=this;$http.get("order.merge-pay.lcg-balance",{order_pay_id:this.order_pay_id}).then((function(t){1==t.result?(e.isclick=!1,e.dragonPay(t.data)):(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},cardPay:function(){var e=this;$http.get("order.merge-pay.lcg-bank-card",{order_pay_id:this.order_pay_id}).then((function(t){1==t.result?(e.isclick=!1,e.dragonPay(t.data)):(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},dragonPay:function(e){var t=e.form_data,a=document.createElement("form");a.method="post",a.setAttribute("action",e.action_url);for(var r=["INFO","BODY","SIGN","CONTENTTYPE"],i=0,n=r;i<n.length;i++){var o=n[i],s=document.createElement("input");s.setAttribute("name",o),s.setAttribute("value",t[o]),a.appendChild(s)}return document.body.appendChild(a),a.style.display="none",a.submit(),a},wechatJsapiPay:function(e){var t=this;window.isMiniprogram?this.getMiniWeChatPayParams():$http.get("order.merge-pay.wechat-jsapi-pay",{order_pay_id:this.order_pay_id||e,pid:this.uid,store_id:this.$route.params.store_id}).then((function(e){1==e.result?t.newWXPay(e.data.config,e.data.redirect||"home"):(t.$dialog.alert({message:e.msg}).then((function(){t.$router.replace(t.fun.getUrl("orderdetail",{order_id:t.order_pay_id}))})),t.handlePayError())}))},yiBaoProWechat:function(){var e=this;$http.get("order.merge-pay.yop-pro-wechat",{order_pay_id:this.order_pay_id}).then((function(t){1==t.result?e.newWXPay(t.data.resultData):(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},yiBaoProAlipay:function(){var e=this;$http.get("order.merge-pay.yop-pro-alipay",{order_pay_id:this.order_pay_id}).then((function(t){1==t.result?window.location.href=t.data.resultData:(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},H5WechatPay:function(){var e=this;$http.get("order.merge-pay.wechat-h5",{order_pay_id:this.order_pay_id},"loading").then((function(t){1==t.result?window.location.href=t.data.mweb_url:(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},sureBtn:function(){var e=this;$http.get("order.merge-pay.confirm-pay",{order_pay_id:this.order_pay_id}).then((function(t){1==t.result?(e.redirectData=t,e.checkoutConsumePacket()):(e.handlePayError(),e.$dialog.confirm({message:t.msg}).then((function(){e.$router.push(e.fun.getUrl("home"))})))}))},HKWechatPay:function(){var e=this;$http.get("order.merge-pay.hk-scan-pay",{order_pay_id:this.order_pay_id},"loading").then((function(t){1==t.result?(e.qrcode=t.data.qrcode,e.showQR=!0):e.$dialog.alert({message:t.msg}),e.handlePayError()}))},payPalpay:function(){var e=this;$http.get("order.merge-pay.pay-pal",{order_pay_id:this.order_pay_id}).then((function(t){1==t.result?window.location.href=t.data.approval_url:(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},HKAlipay:function(){var e=this;$http.get("order.merge-pay.hk-scan-alipay",{order_pay_id:this.order_pay_id},"loading").then((function(t){1==t.result?window.location.href=t.data.pay_url:(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},quick_pay:function(){var e=this;$http.get("plugin.converge_pay.frontend.controllers.quick-pay.pay",{order_pay_id:this.order_pay_id},"loading").then((function(t){1==t.result?0==t.data.have_bank_card?e.$router.push(e.fun.getUrl("addBankFirst",{order_pay_id:e.order_pay_id})):e.$router.push(e.fun.getUrl("chooseBank",{order_pay_id:e.order_pay_id})):(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},getQingYunPay:function(e){var t=this,a=63==e?"plugin.store-aggregate-pay.frontend.aggregate-pay.wechat":"plugin.store-aggregate-pay.frontend.aggregate-pay.alipay";$http.get(a,{order_pay_id:this.order_pay_id,pid:this.uid}).then((function(a){1==a.result?(63==e?window.location.href=a.data.jsapi_pay_url:(t.showZFBQR=!0,t.$nextTick((function(){u=document.getElementById("qrccode-canvas"),s.a.toCanvas(u,a.data.url,(function(e){e?Object(i["a"])("生成支付宝支付二维码失败!"):t.isZFBQR=!0}))})),t.handlePayError()),t.isclick=!1):(t.$dialog.alert({message:a.msg}).then((function(){t.$router.replace(t.fun.getUrl("orderdetail",{order_id:t.order_pay_id}))})),t.handlePayError())}))},scancodeAccount:function(){this.$router.push(this.fun.getUrl("scancodeAccount",{id:this.order_pay_id,order_ids:this.$route.params.order_ids,status:"2"}))},huiju_wechat:function(){var e=this;if(!this.fun.isWeiXin())return this.$dialog.alert({message:"请在手机微信上点击支付"}),void this.handlePayError();$http.get("plugin.converge-alloc-funds.frontend.controllers.converge-separate.pay",{order_pay_id:this.order_pay_id},"").then((function(t){1==t.result?e.newWXPay(JSON.parse(t.data.rc_Result)):e.$dialog.alert({message:t.msg}),e.handlePayError()}))},huiju_alipay:function(){var e=this;$http.get("plugin.converge-alloc-funds.frontend.controllers.converge-separate.alipay",{order_pay_id:this.order_pay_id}).then((function(t){1==t.result?e.$router.push(e.fun.getUrl("alipayCloud",{status:"6",url:t.data.rc_Result})):e.$dialog.alert({message:t.msg}),e.handlePayError()}))},xfpayWechat:function(e){var t=this;if(!this.fun.isWeiXin())return this.$dialog.alert({message:"请在手机微信上点击支付"}),void this.handlePayError();$http.get("order.merge-pay.xfpay-wechat",{order_pay_id:e},"").then((function(e){1==e.result?t.newWXPay(e.data.pay_msg.js_prepay_info):t.$dialog.alert({message:e.msg}),t.handlePayError()}))},lakalaWechat:function(e){var t=this;return Object(n["a"])(Object(r["a"])().mark((function a(){return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.fun.isWeiXin()){a.next=4;break}return t.$dialog.alert({message:"请在手机微信上点击支付"}),t.handlePayError(),a.abrupt("return");case 4:$http.get("order.merge-pay.lakala-wechat",{order_pay_id:e},"").then((function(e){1==e.result?window.location.href=e.data.pay_msg:t.$dialog.alert({message:e.msg}),t.handlePayError()}));case 5:case"end":return a.stop()}}),a)})))()},Otherleshua_Alipay:function(){var e=this,t={};this.order_pay_id&&(t={order_pay_id:this.order_pay_id}),$http.get("order.merge-pay.leshua-alipay",t).then((function(t){1==t.result?e.$router.push(e.fun.getUrl("alipayCloud",{status:"85",url:t.data.pay_msg.link})):(e.$dialog.alert({message:t.msg}),e.handlePayError())}))},Otherleshua_wechat:function(e){var t=this;return Object(n["a"])(Object(r["a"])().mark((function a(){return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.fun.isWeiXin()){a.next=4;break}return t.$dialog.alert({message:"请在手机微信上点击支付"}),t.handlePayError(),a.abrupt("return");case 4:$http.get("order.merge-pay.leshua-wechat",{order_pay_id:e},"").then((function(e){1==e.result?e.data.pay_msg&&e.data&&t.newWXPay(e.data.pay_msg):t.$dialog.alert({message:e.msg}),t.handlePayError()}));case 5:case"end":return a.stop()}}),a)})))()},sandpayWechat:function(e){var t=this;if(!this.fun.isWeiXin())return this.$dialog.alert({message:"请在手机微信上点击支付"}),void this.handlePayError();$http.get("order.merge-pay.sandpay-wechat",{order_pay_id:e},"").then((function(e){1==e.result?t.newWXPay(e.data.pay_msg):t.$dialog.alert({message:e.msg}),t.handlePayError()}))}}}}}]); |