index-legacy-b66080b0.js 1.6 KB

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