System.register(["./index-legacy-8e0406b0.js"],(function(e,r){"use strict";var t,n,o,c,a,i,d,p,u,l;return{setters:[function(e){t=e.d,n=e.q,o=e.U,c=e.x,a=e.y,i=e.a,d=e.I,p=e.R,u=e.bA,l=e.bB}],execute:function(){var r=document.createElement("style");r.textContent="._payCenter_19c4e_1{min-height:100vh;overflow:hidden}._error-icon_19c4e_5{display:block;color:#ffb07b;font-size:.8rem;margin-bottom:.8rem;font-weight:700}._error-text_19c4e_12{font-size:.4rem;width:100%;text-align:center;color:#3f3f3f;margin-top:2.66667rem}\n",document.head.appendChild(r);var y="_payCenter_19c4e_1",_="_error-icon_19c4e_5",s="_error-text_19c4e_12";e("default",t({name:"pay-center",setup:function(){var e=n(),r=o(),t=c({errorText:"",code:null,pay_channel:r.query.pay_channel,wxAppId:r.query.wxAppId,body:r.query.body,price:r.query.price,orderNo:r.query.orderNo,userId:r.query.userId}),x=function(){e.replace({path:"/payDefine",query:{pay_channel:t.pay_channel,wxAppId:t.wxAppId,body:t.body,price:t.price,code:t.code,orderNo:t.orderNo,userId:t.userId}})};return a((function(){!function(){var e=t.pay_channel;if(p().weixin)if("wx_pub"===e){var r=u();console.log(r),r?(t.code=r,x()):l(t.wxAppId),document.title="微信支付"}else"alipay_qr"==e&&(t.errorText="请使用支付宝扫码");else p().alipay?"wx_pub"===e?t.errorText="请使用微信扫码":"alipay_qr"==e&&(document.title="支付宝支付",x()):t.errorText="请在微信或支付宝客户端打开";t.errorText&&(document.title="ERROR")}()})),function(){return i("div",{class:y},[i("div",{class:s},[t.errorText&&i(d,{class:_,name:"warning-o"},null),t.errorText])])}}}))}}}));
