index-legacy.e0c3c941.js 1.6 KB

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