index-legacy.c0c76abe.js 10 KB

12345
  1. <<<<<<<< HEAD:dist/assets/index-legacy.90d95367.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 o=null!=arguments[t]?arguments[t]:{};t%2?e(Object(o),!0).forEach((function(e){n(r,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,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,o,a,i){try{var c=e[a](i),u=c.value}catch(p){return void n(p)}c.done?r(u):Promise.resolve(u).then(t,o)}var o=document.createElement("style");o.innerHTML="._paydefine_gyhp9_1{overflow:hidden;background:#fff;min-height:100vh}._paydefine_gyhp9_1 .van-cell__title,._paydefine_gyhp9_1 .van-cell__value{font-size:.4rem;color:#4f4f4f}._paydefine_gyhp9_1 .van-button{font-size:.42667rem;width:86%;margin:.53333rem auto}._amount_gyhp9_16{padding:.93333rem 0 1.46667rem;font-size:1.09333rem;font-weight:700;color:#333;line-height:.96rem;text-align:center}._amount_gyhp9_16 span{font-size:.82667rem}._error-text_gyhp9_27{font-size:.4rem;width:100%;text-align:center;color:#3f3f3f;margin-top:2.66667rem}._error-icon_gyhp9_34{display:block;color:#ffb07b;font-size:.42667rem;margin-bottom:.53333rem}\n",document.head.appendChild(o),System.register(["./index-legacy.48c8d62c.js","./index-legacy.269a0b91.js","./index-legacy.087e0425.js"],(function(e){"use strict";var n,o,a,i,c,u,p,l,d,s,y,f,_,m,g,h;return{setters:[function(e){n=e.d,o=e.aV,a=e.r,i=e.$,c=e.c,u=e.q,p=e.b3,l=e.B,d=e.a5,s=e.o,y=e.m,f=e.e,_=e.bh,m=e.bf},function(e){g=e.C},function(e){h=e.C}],execute:function(){var v={paydefine:"_paydefine_gyhp9_1",amount:"_amount_gyhp9_16","error-text":"_error-text_gyhp9_27","error-icon":"_error-icon_gyhp9_34"};e("default",n({name:"pay-define",setup:function(){var e=o(),n=a({browserStatus:!1,errorText:"",code:null,pay_channel:e.query.pay_channel,wxAppId:e.query.wxAppId,body:e.query.body,price:e.query.price,orderNo:e.query.orderNo,userId:e.query.userId,payInfo:{}}),b=function(){var e,o=(e=regeneratorRuntime.mark((function e(){var t,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(parseFloat(n.price)<=0)){e.next=4;break}return s("支付金额异常"),e.abrupt("return");case 4:return t={merOrderNo:n.orderNo,paymentChannel:n.pay_channel,userId:n.userId},"wx_pub"==n.pay_channel&&(t.code=n.code),console.log(t,"payMap"),e.next=9,y.post("/api-student/open/userOrder/executePayment",{hideLoading:!1,data:r({},t)});case 9:o=e.sent,a=o.data,console.log(a,"payment"),x(a.reqParams),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),console.log(e.t0);case 18:case"end":return e.stop()}}),e,null,[[0,15]])})),function(){var r=this,n=arguments;return new Promise((function(o,a){var i=e.apply(r,n);function c(e){t(i,o,a,c,u,"next",e)}function u(e){t(i,o,a,c,u,"throw",e)}c(void 0)}))});return function(){return o.apply(this,arguments)}}(),x=function(e){if("alipay_qr"==n.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("wx_pub"==n.pay_channel){var t=JSON.parse(e.expend.pay_info);n.payInfo=t,void 0===window.WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",w,!1):document.attachEvent&&document.attachEvent("WeixinJSBridgeReady",w)(document).attachEvent("onWeixinJSBridgeReady",w):w()}},w=function(){var e=n.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="+n.orderNo)}))};return i((function(){console.log(n),function(){var e=n.pay_channel;if(f().weixin)if("wx_pub"===e){var r=_();console.log(r),r?n.code=r:m(n.wxAppId),n.browserStatus=!0,document.title="微信支付"}else"alipay_qr"==e&&(n.errorText="请使用支付宝扫码");else f().alipay?"wx_pub"===e?n.errorText="请使用微信扫码":"alipay_qr"==e&&(n.browserStatus=!0,document.title="支付宝支付"):n.errorText="请在微信或支付宝客户端打开";n.errorText&&(document.title="ERROR")}()})),function(){return c("div",{class:v.paydefine},[n.browserStatus&&c("div",{class:v.container},[c("div",{class:v.amount},[c("span",null,[u("¥ ")]),p(n.price)]),c(g,{inset:!0},{default:function(){return[c(h,{title:"订单信息",value:n.body,valueClass:v.values},null),c(h,{title:"支付方式",value:"wx_pub"===n.pay_channel?"微信":"支付宝"},null),c(h,{title:"实付金额",value:"¥ ".concat(p(n.price),"元")},null)]}}),c(l,{type:"primary",block:!0,size:"large",onClick:b,round:!0},{default:function(){return[u("立即支付")]}})]),!n.browserStatus&&c("div",{class:v.container},[c("div",{class:v["error-text"]},[n.errorText&&c(d,{class:v["error-icon"],name:"warning-o"},null),n.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),u=c.value}catch(p){return void n(p)}c.done?r(u):Promise.resolve(u).then(t,a)}var a=document.createElement("style");a.innerHTML="._paydefine_gyhp9_1{overflow:hidden;background:#fff;min-height:100vh}._paydefine_gyhp9_1 .van-cell__title,._paydefine_gyhp9_1 .van-cell__value{font-size:.4rem;color:#4f4f4f}._paydefine_gyhp9_1 .van-button{font-size:.42667rem;width:86%;margin:.53333rem auto}._amount_gyhp9_16{padding:.93333rem 0 1.46667rem;font-size:1.09333rem;font-weight:700;color:#333;line-height:.96rem;text-align:center}._amount_gyhp9_16 span{font-size:.82667rem}._error-text_gyhp9_27{font-size:.4rem;width:100%;text-align:center;color:#3f3f3f;margin-top:2.66667rem}._error-icon_gyhp9_34{display:block;color:#ffb07b;font-size:.42667rem;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,u,p,l,d,s,y,f,_,m,g,h;return{setters:[function(e){n=e.d,a=e.ah,o=e.r,i=e.$,c=e.c,u=e.q,p=e.b6,l=e.B,d=e.a5,s=e.o,y=e.m,f=e.f,_=e.bm,m=e.bk},function(e){g=e.C},function(e){h=e.C}],execute:function(){var v={paydefine:"_paydefine_gyhp9_1",amount:"_amount_gyhp9_16","error-text":"_error-text_gyhp9_27","error-icon":"_error-icon_gyhp9_34"};e("default",n({name:"pay-define",setup:function(){var e=a(),n=o({browserStatus:!1,errorText:"",code:null,pay_channel:e.query.pay_channel,wxAppId:e.query.wxAppId,body:e.query.body,price:e.query.price,orderNo:e.query.orderNo,userId:e.query.userId,payInfo:{}}),b=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var t,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(parseFloat(n.price)<=0)){e.next=4;break}return s("支付金额异常"),e.abrupt("return");case 4:return t={merOrderNo:n.orderNo,paymentChannel:n.pay_channel,userId:n.userId},"wx_pub"==n.pay_channel&&(t.code=n.code),console.log(t,"payMap"),e.next=9,y.post("/api-student/open/userOrder/executePayment",{hideLoading:!1,data:r({},t)});case 9:a=e.sent,o=a.data,console.log(o,"payment"),x(o.reqParams),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),console.log(e.t0);case 18:case"end":return e.stop()}}),e,null,[[0,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,u,"next",e)}function u(e){t(i,a,o,c,u,"throw",e)}c(void 0)}))});return function(){return a.apply(this,arguments)}}(),x=function(e){if("alipay_qr"==n.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("wx_pub"==n.pay_channel){var t=JSON.parse(e.expend.pay_info);n.payInfo=t,void 0===window.WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",w,!1):document.attachEvent&&document.attachEvent("WeixinJSBridgeReady",w)(document).attachEvent("onWeixinJSBridgeReady",w):w()}},w=function(){var e=n.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="+n.orderNo)}))};return i((function(){console.log(n),function(){var e=n.pay_channel;if(f().weixin)if("wx_pub"===e){var r=_();console.log(r),r?n.code=r:m(n.wxAppId),n.browserStatus=!0,document.title="微信支付"}else"alipay_qr"==e&&(n.errorText="请使用支付宝扫码");else f().alipay?"wx_pub"===e?n.errorText="请使用微信扫码":"alipay_qr"==e&&(n.browserStatus=!0,document.title="支付宝支付"):n.errorText="请在微信或支付宝客户端打开";n.errorText&&(document.title="ERROR")}()})),function(){return c("div",{class:v.paydefine},[n.browserStatus&&c("div",{class:v.container},[c("div",{class:v.amount},[c("span",null,[u("¥ ")]),p(n.price)]),c(g,{inset:!0},{default:function(){return[c(h,{title:"订单信息",value:n.body,valueClass:v.values},null),c(h,{title:"支付方式",value:"wx_pub"===n.pay_channel?"微信":"支付宝"},null),c(h,{title:"实付金额",value:"¥ ".concat(p(n.price),"元")},null)]}}),c(l,{type:"primary",block:!0,size:"large",onClick:b,round:!0},{default:function(){return[u("立即支付")]}})]),!n.browserStatus&&c("div",{class:v.container},[c("div",{class:v["error-text"]},[n.errorText&&c(d,{class:v["error-icon"],name:"warning-o"},null),n.errorText])])])}}}))}}}))}();
  5. >>>>>>>> online:dist/assets/index-legacy.c0c76abe.js