index-legacy.b3b5cf1f.js 11 KB

12345
  1. <<<<<<<< HEAD:dist/assets/index-legacy.b3b5cf1f.js
  2. !function(){function e(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function r(r){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?e(Object(a),!0).forEach((function(e){n(r,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}))}return r}function n(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function t(e,r,n,t,a,o,i){try{var c=e[o](i),l=c.value}catch(u){return void n(u)}c.done?r(l):Promise.resolve(l).then(t,a)}var a=document.createElement("style");a.innerHTML="._paywxresult_1bih4_1{overflow:hidden;min-height:100vh}._paywxresult_1bih4_1 :gloabl ._van-cell_1bih4_5{padding:.32rem .42667rem}._paywxresult_1bih4_1 :gloabl ._van-cell__title_1bih4_8,._paywxresult_1bih4_1 :gloabl ._van-cell__value_1bih4_9{flex:auto;font-size:.42667rem;color:#4f4f4f}._paywxresult_1bih4_1 :gloabl ._van-button_1bih4_14{font-size:.42667rem;width:86%;margin:.53333rem auto}._paywxresult_1bih4_1 :gloabl ._van-loading__spinner_1bih4_19{width:1.33333rem;height:1.33333rem}._container_1bih4_23{background:#fff;padding:.4rem 0}._order-loading_1bih4_27{padding:.4rem 0;margin-top:.4rem;background-color:#fff;text-align:center;font-size:.4rem}._order-loading_1bih4_27>p{margin-bottom:.4rem}._error-text_1bih4_37{font-size:.4rem;width:100%;text-align:center;color:#3f3f3f;margin-top:2.66667rem}._error-icon_1bih4_44{display:block;color:#ffb07b;font-size:.58667rem;margin-bottom:.53333rem}\n",document.head.appendChild(a),System.register(["./index-legacy.48c8d62c.js","./index-legacy.269a0b91.js","./index-legacy.087e0425.js"],(function(e){"use strict";var n,a,o,i,c,l,u,p,d,s,_,f,b,y,h,m,g,v;return{setters:[function(e){n=e.d,a=e.ag,o=e.aV,i=e.r,c=e.$,l=e.c,u=e.F,p=e.b3,d=e.L,s=e.a5,_=e.b6,f=e.e,b=e.o,y=e.m,h=e.bh,m=e.bf},function(e){g=e.C},function(e){v=e.C}],execute:function(){var w="_paywxresult_1bih4_1",x="_container_1bih4_23",O="_order-loading_1bih4_27",S="_error-text_1bih4_37",j="_error-icon_1bih4_44";e("default",n({name:"pay-result",setup:function(){var e=a(),n=o(),P=i({errorText:"",browserStatus:!1,code:null,pay_channel:n.query.pay_channel,wxAppId:n.query.wxAppId,body:n.query.body,price:n.query.price,orderNo:n.query.orderNo,userId:n.query.userId,payInfo:{}});console.log(P.errorText);var q=function(){var e,n=(e=regeneratorRuntime.mark((function e(){var n,t,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,e.prev=1,!(parseFloat(P.price)<=0)){e.next=5;break}return b("支付金额异常"),e.abrupt("return");case 5:return n={merOrderNo:P.orderNo,paymentChannel:P.pay_channel,userId:P.userId},"wx_pub"==P.pay_channel&&(n.code=P.code),e.next=9,y.post("/api-student/open/userOrder/executePayment",{data:r({},n)});case 9:t=e.sent,a=t.data,console.log(a,"payment"),k(a.reqParams),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),console.log(e.t0);case 18:e.next=22;break;case 20:e.prev=20,e.t1=e.catch(0);case 22:case"end":return e.stop()}}),e,null,[[0,20],[1,15]])})),function(){var r=this,n=arguments;return new Promise((function(a,o){var i=e.apply(r,n);function c(e){t(i,a,o,c,l,"next",e)}function l(e){t(i,a,o,c,l,"throw",e)}c(void 0)}))});return function(){return n.apply(this,arguments)}}(),k=function(e){if("alipay_qr"==P.pay_channel){var r="false"===e.prod_mode?e.expend.qrcode_url+"?payment_id="+e.id+"&pay_channel="+e.pay_channel:e.expend.qrcode_url;window.location.href=r}else if("alipay_wap"==P.pay_channel)window.location.href=e.expend.pay_info;else if("wx_pub"==P.pay_channel){var n=JSON.parse(e.expend.pay_info);P.payInfo=n,void 0===window.WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",I,!1):document.attachEvent&&document.attachEvent("WeixinJSBridgeReady",I)(document).attachEvent("onWeixinJSBridgeReady",I):I()}},I=function(){var e=P.payInfo;window.WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.appId,timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},(function(e){"get_brand_wcpay_request:cancel"==e.err_msg||e.err_msg,window.location.replace(location.origin+"/orchestra-student/#/payment-result?orderNo="+P.orderNo)}))},E=function(){var e=h();e?(P.code=e,q()):m(P.wxAppId)};return c((function(){var r;r=n.query,console.log(r),r.orderNo&&r.pay_channel?f().weixin?(P.browserStatus=!0,E()):f().alipay?(P.browserStatus=!0,q()):(P.errorText="请在微信或支付宝客户端打开",document.title="ERROR"):_({message:"支付订单信息错误请重新支付",showCancelButton:!1}).then((function(){e.back()}))})),function(){return l("div",{class:w},[P.browserStatus&&l(u,null,[l("div",{class:x},[l(g,{border:!1},{default:function(){return[l(v,{title:"订单金额",value:"¥ "+p(P.price)},null),l(v,{title:"订单信息",value:P.body},null)]}})]),l("div",{class:O},[l("p",null,["wx_pub"==P.pay_channel?"微信支付":"支付宝支付"]),l(d,{type:"spinner",color:"#01C1B5"},null)])]),!P.browserStatus&&l("div",{class:S},[P.errorText&&l(s,{class:j,name:"warning-o"},null),P.errorText])])}}}))}}}))}();
  3. ========
  4. !function(){function e(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function r(r){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?e(Object(a),!0).forEach((function(e){n(r,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}))}return r}function n(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function t(e,r,n,t,a,o,i){try{var c=e[o](i),l=c.value}catch(u){return void n(u)}c.done?r(l):Promise.resolve(l).then(t,a)}var a=document.createElement("style");a.innerHTML="._paywxresult_1bih4_1{overflow:hidden;min-height:100vh}._paywxresult_1bih4_1 :gloabl ._van-cell_1bih4_5{padding:.32rem .42667rem}._paywxresult_1bih4_1 :gloabl ._van-cell__title_1bih4_8,._paywxresult_1bih4_1 :gloabl ._van-cell__value_1bih4_9{flex:auto;font-size:.42667rem;color:#4f4f4f}._paywxresult_1bih4_1 :gloabl ._van-button_1bih4_14{font-size:.42667rem;width:86%;margin:.53333rem auto}._paywxresult_1bih4_1 :gloabl ._van-loading__spinner_1bih4_19{width:1.33333rem;height:1.33333rem}._container_1bih4_23{background:#fff;padding:.4rem 0}._order-loading_1bih4_27{padding:.4rem 0;margin-top:.4rem;background-color:#fff;text-align:center;font-size:.4rem}._order-loading_1bih4_27>p{margin-bottom:.4rem}._error-text_1bih4_37{font-size:.4rem;width:100%;text-align:center;color:#3f3f3f;margin-top:2.66667rem}._error-icon_1bih4_44{display:block;color:#ffb07b;font-size:.58667rem;margin-bottom:.53333rem}\n",document.head.appendChild(a),System.register(["./index-legacy.c1f63540.js","./index-legacy.2318e5fa.js","./index-legacy.8a8e9c42.js"],(function(e){"use strict";var n,a,o,i,c,l,u,p,d,s,_,f,b,y,h,m,g,v;return{setters:[function(e){n=e.d,a=e.ag,o=e.ah,i=e.r,c=e.$,l=e.c,u=e.F,p=e.b6,d=e.L,s=e.a5,_=e.b9,f=e.f,b=e.o,y=e.m,h=e.bm,m=e.bk},function(e){g=e.C},function(e){v=e.C}],execute:function(){var w="_paywxresult_1bih4_1",x="_container_1bih4_23",O="_order-loading_1bih4_27",S="_error-text_1bih4_37",j="_error-icon_1bih4_44";e("default",n({name:"pay-result",setup:function(){var e=a(),n=o(),P=i({errorText:"",browserStatus:!1,code:null,pay_channel:n.query.pay_channel,wxAppId:n.query.wxAppId,body:n.query.body,price:n.query.price,orderNo:n.query.orderNo,userId:n.query.userId,payInfo:{}});console.log(P.errorText);var k=function(){var e,n=(e=regeneratorRuntime.mark((function e(){var n,t,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,e.prev=1,!(parseFloat(P.price)<=0)){e.next=5;break}return b("支付金额异常"),e.abrupt("return");case 5:return n={merOrderNo:P.orderNo,paymentChannel:P.pay_channel,userId:P.userId},"wx_pub"==P.pay_channel&&(n.code=P.code),e.next=9,y.post("/api-student/open/userOrder/executePayment",{data:r({},n)});case 9:t=e.sent,a=t.data,console.log(a,"payment"),q(a.reqParams),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),console.log(e.t0);case 18:e.next=22;break;case 20:e.prev=20,e.t1=e.catch(0);case 22:case"end":return e.stop()}}),e,null,[[0,20],[1,15]])})),function(){var r=this,n=arguments;return new Promise((function(a,o){var i=e.apply(r,n);function c(e){t(i,a,o,c,l,"next",e)}function l(e){t(i,a,o,c,l,"throw",e)}c(void 0)}))});return function(){return n.apply(this,arguments)}}(),q=function(e){if("alipay_qr"==P.pay_channel){var r="false"===e.prod_mode?e.expend.qrcode_url+"?payment_id="+e.id+"&pay_channel="+e.pay_channel:e.expend.qrcode_url;window.location.href=r}else if("alipay_wap"==P.pay_channel)window.location.href=e.expend.pay_info;else if("wx_pub"==P.pay_channel){var n=JSON.parse(e.expend.pay_info);P.payInfo=n,void 0===window.WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",I,!1):document.attachEvent&&document.attachEvent("WeixinJSBridgeReady",I)(document).attachEvent("onWeixinJSBridgeReady",I):I()}},I=function(){var e=P.payInfo;window.WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.appId,timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},(function(e){"get_brand_wcpay_request:cancel"==e.err_msg||e.err_msg,window.location.replace(location.origin+"/orchestra-student/#/payment-result?orderNo="+P.orderNo)}))},E=function(){var e=h();e?(P.code=e,k()):m(P.wxAppId)};return c((function(){var r;r=n.query,console.log(r),r.orderNo&&r.pay_channel?f().weixin?(P.browserStatus=!0,E()):f().alipay?(P.browserStatus=!0,k()):(P.errorText="请在微信或支付宝客户端打开",document.title="ERROR"):_({message:"支付订单信息错误请重新支付",showCancelButton:!1}).then((function(){e.back()}))})),function(){return l("div",{class:w},[P.browserStatus&&l(u,null,[l("div",{class:x},[l(g,{border:!1},{default:function(){return[l(v,{title:"订单金额",value:"¥ "+p(P.price)},null),l(v,{title:"订单信息",value:P.body},null)]}})]),l("div",{class:O},[l("p",null,["wx_pub"==P.pay_channel?"微信支付":"支付宝支付"]),l(d,{type:"spinner",color:"#01C1B5"},null)])]),!P.browserStatus&&l("div",{class:S},[P.errorText&&l(s,{class:j,name:"warning-o"},null),P.errorText])])}}}))}}}))}();
  5. >>>>>>>> online:dist/assets/index-legacy.37cefe01.js