tg_web_dist/js/pay.uJwY-HJx.js
2025-07-03 15:19:14 +08:00

2 lines
2.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{bf as a,bw as e,ad as l,o as s,aB as o,c as t,e as d,N as i,w as n,g as u,l as c,O as m,E as p,bz as h,t as r,bA as f,aj as _,ak as y,b9 as v,bB as g}from"./index.BE3jgw84.js";import{E as b,a as C}from"./el-tab-pane.CMwFEgma.js";import{E as D}from"./el-text.CHX4yJxC.js";import{o as w}from"./custom.BoqMaoae.js";const N={class:"pay-code"},j={class:"pay-code"},x={style:{margin:"20px 0"}},T={class:"pay-hash"},U={class:"dialog-footer"},V=a({__name:"pay",props:{showDialog:{type:Boolean,default:!1}},emits:["update:showDialog","handleConfrimPay"],setup(a,{emit:V}){const{copy:k}=e({legacy:!0}),E=V,H=l({payCode:"/img/pay-code.DPIhp-36.jpeg",payHash:"",activeName:"first"}),P=(a,e)=>{"second"===H.activeName&&A()},B=f((a=>{k(a).then((()=>{g.success("复制成功")}))}),300),I=()=>{H.hash="",E("update:showDialog",!1)},S=()=>{"second"==H.activeName?E("handleConfrimPay",H.hash,"hash"):E("handleConfrimPay","","code"),H.hash="",E("update:showDialog",!1)};s((()=>{H.activeName="first"}));const A=()=>{w().then((a=>{H.payHash=a.USDT_ACCOUNT}))};return(e,l)=>{const s=o("InfoFilled"),f=p,g=D,w=h,V=C,k=o("DocumentCopy"),E=_,A=b,F=y,M=v;return d(),t("div",null,[i(M,{"model-value":a.showDialog,title:"支付",width:"600",onClose:I},{footer:n((()=>[c("div",U,[i(F,{onClick:I},{default:n((()=>l[6]||(l[6]=[m("关闭")]))),_:1,__:[6]}),i(F,{type:"primary",onClick:S},{default:n((()=>l[7]||(l[7]=[m(" 支付完成 ")]))),_:1,__:[7]})])])),default:n((()=>[i(A,{modelValue:u(H).activeName,"onUpdate:modelValue":l[2]||(l[2]=a=>u(H).activeName=a),class:"demo-tabs",onTabChange:P},{default:n((()=>[i(V,{label:"扫码支付",name:"first"},{default:n((()=>[c("div",N,[i(g,null,{default:n((()=>[i(f,null,{default:n((()=>[i(s)])),_:1}),l[3]||(l[3]=m("通过加密钱包(如 Trust Wallet、MetaMask扫描支付"))])),_:1,__:[3]}),c("div",null,[i(w,{src:u(H).payCode,class:"pay-code-img"},null,8,["src"])])])])),_:1}),i(V,{label:"转账支付",name:"second"},{default:n((()=>[c("div",j,[i(g,null,{default:n((()=>[i(f,null,{default:n((()=>[i(s)])),_:1}),l[4]||(l[4]=m("向此 USDT 钱包地址手动转账并上传交易哈希支付"))])),_:1,__:[4]}),c("div",x,[m("USDT 钱包地址:"+r(u(H).payHash),1),i(f,{style:{"margin-left":"4px"},onClick:l[0]||(l[0]=a=>u(B)(u(H).payHash))},{default:n((()=>[i(k)])),_:1})]),c("div",T,[i(g,null,{default:n((()=>l[5]||(l[5]=[m("上传交易哈希:")]))),_:1,__:[5]}),i(E,{placeholder:"请输入交易哈希",modelValue:u(H).hash,"onUpdate:modelValue":l[1]||(l[1]=a=>u(H).hash=a),style:{width:"70%","margin-left":"20px"},clearable:""},null,8,["modelValue"])])])])),_:1})])),_:1},8,["modelValue"])])),_:1},8,["model-value"])])}}},[["__scopeId","data-v-d3bdd3e6"]]);export{V as default};