System.register(["./index-legacy-fdce4919.js"],(function(e,r){"use strict";var t,o,n,c,a,d,i,p,l,s,u=document.createElement("style");return u.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(u),{setters:[e=>{t=e.d,o=e.q,n=e.U,c=e.x,a=e.y,d=e.a,i=e.I,p=e.R,l=e.bj,s=e.bk}],execute:function(){const r="_payCenter_19c4e_1",u="_error-icon_19c4e_5",y="_error-text_19c4e_12";e("default",t({name:"pay-center",setup(){const e=o(),t=n(),_=c({errorText:"",code:null,pay_channel:t.query.pay_channel,wxAppId:t.query.wxAppId,body:t.query.body,price:t.query.price,orderNo:t.query.orderNo,userId:t.query.userId}),x=()=>{e.replace({path:"/payDefine",query:{pay_channel:_.pay_channel,wxAppId:_.wxAppId,body:_.body,price:_.price,code:_.code,orderNo:_.orderNo,userId:_.userId}})};return a((()=>{(()=>{const e=_.pay_channel;if(p().weixin)if("wx_pub"===e){const e=l();console.log(e),e?(_.code=e,x()):s(_.wxAppId),document.title="微信支付"}else"alipay_qr"==e&&(_.errorText="请使用支付宝扫码");else p().alipay?"wx_pub"===e?_.errorText="请使用微信扫码":"alipay_qr"==e&&(document.title="支付宝支付",x()):_.errorText="请在微信或支付宝客户端打开";_.errorText&&(document.title="ERROR")})()})),()=>d("div",{class:r},[d("div",{class:y},[_.errorText&&d(i,{class:u,name:"warning-o"},null),_.errorText])])}}))}}}));
