chatapp-h5/h5/js/BankCards-t_69XDdY-1776148658686.js
2026-04-14 17:58:21 +08:00

2 lines
6.0 KiB
JavaScript

import{_ as v}from"./arrow-Cf0JWzXk-1776148658686.js";import{_ as D,k as L,r as p,I as N,o as S,c as a,l as g,q as i,b as e,t,v as _,m as k,D as y,J as j,ai as G,aj as E,S as F,u as K,an as O,j as n,n as P,F as Q,x as T}from"./index-CIAVq8iD-1776148658686.js";import{G as U}from"./GeneralHeader-ClI1i1Ud-1776148658686.js";import{G as x}from"./GradientBorder-CfwSeIMB-1776148658686.js";const V={class:"bank-cards"},W={style:{padding:"16px",position:"relative",display:"flex","flex-direction":"column",gap:"2vw"}},Y={style:{display:"flex","flex-direction":"column",gap:"2vw"}},q={style:{display:"flex","justify-content":"space-between"}},A={style:{"font-size":"1.4em","font-weight":"600"}},J={style:{"font-weight":"400",color:"rgba(0, 0, 0, 0.4)"}},M={style:{"font-weight":"510",color:"rgba(0, 0, 0, 0.8)"}},R={src:v,alt:"",style:{width:"6vw"},class:"flipImg"},H={key:1,style:{display:"flex","flex-direction":"column",gap:"2vw"}},$={style:{"font-weight":"500",color:"rgba(0, 0, 0, 0.8)"}},X={style:{"font-weight":"510",color:"rgba(0, 0, 0, 0.4)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Z={style:{"font-weight":"500",color:"rgba(0, 0, 0, 0.8)"}},ee={style:{"font-weight":"510",color:"rgba(0, 0, 0, 0.4)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},te={style:{"font-weight":"500",color:"rgba(0, 0, 0, 0.8)"}},se={style:{"font-weight":"510",color:"rgba(0, 0, 0, 0.4)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},oe={style:{display:"flex","flex-direction":"column",gap:"2vw"}},ie={style:{display:"flex","justify-content":"space-between","align-items":"center"}},ae={style:{display:"flex","align-items":"center"}},ne={style:{"font-size":"1.4em","font-weight":"600"}},le={key:0,style:{"font-size":"1.4em","font-weight":"600",margin:"0 4px"}},re={key:1,style:{"font-weight":"510","font-size":"0.9em",background:"linear-gradient(248deg, #75ff98 5.66%, #3dff54 42.49%)","background-clip":"text","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"}},de={key:2,style:{"font-weight":"510","font-size":"0.9em",background:"linear-gradient(248deg, #ff7578 5.66%, #ff3d40 42.49%)","background-clip":"text","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"}},ce={key:3,style:{"font-weight":"510","font-size":"0.9em",background:"linear-gradient(248deg, #ffe675 5.66%, #ffc53d 42.49%)","background-clip":"text","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"}},_e={style:{padding:"16px"}},ue={style:{"font-weight":"510","font-size":"1em"}},fe={src:v,alt:"",style:{width:"6vw"},class:"flipImg"},pe={key:1,style:{width:"100%",display:"flex","flex-direction":"column",gap:"8px"}},ge={style:{display:"flex","justify-content":"space-between","align-items":"center"}},ye={style:{"font-weight":"510","font-size":"1em"}},ve={style:{display:"flex","align-items":"center",gap:"4px"}},he=["src"],we={style:{"font-weight":"500"}},me={style:{color:"rgba(0, 0, 0, 0.4)","font-weight":"600","font-size":"0.8em","overflow-wrap":"break-word"}},be={style:{"font-weight":"500"}},ke={style:{color:"rgba(0, 0, 0, 0.4)","font-weight":"600","font-size":"0.8em","overflow-wrap":"break-word"}},xe={__name:"BankCards",setup(Ce){const{t:o,locale:h}=L(),w=K(),C=j(),z=p(C.query||null);h.value&&N(h.value);const l=p(null),r=p(null),f=F(()=>r.value!=null),m=()=>{w.push("/bank-card")},b=()=>{w.push("/KYC")},B=async()=>{try{const s=await G();if(console.log("银行卡列表:",s),s.status&&s.body){const c=s.body.find(d=>d.use);c?l.value=c:l.value=null}}catch(s){console.error("获取银行卡列表失败:",s)}},I=async()=>{try{const s=await E();if(console.log("提现信息列表:",s),s.status&&s.body?.length>0){let d=JSON.parse(s.body[0].passportFrontUrl).map(u=>u);r.value={previewUrls:d,...s.body[0]}}}catch(s){console.error("获取提现信息列表失败:",s),showError(s.response?.errorMsg)}};return S(()=>{B(),I()}),(s,c)=>{const d=O("smart-img");return n(),a("div",V,[g(U,{showLanguageList:!0,title:i(o)("bank_cards_link"),backQuery:z.value,color:"black"},null,8,["title","backQuery"]),e("div",W,[e("div",Y,[e("div",q,[e("div",A,t(i(o)("bank_card")),1),l.value?(n(),a("div",{key:0,style:{display:"flex","align-items":"center"},onClick:m},[e("div",J,t(i(o)("more")),1)])):_("",!0)]),g(x,null,{default:k(()=>[e("div",{style:P([{padding:"12px"},l.value?"border-radius: 11.75px;border: 0.5px solid rgba(255, 255, 255, 0.08);":""]),onClick:c[0]||(c[0]=u=>s.cashOutTypeShow=!0)},[l.value?(n(),a("div",H,[e("div",$,t(i(o)("category")),1),e("div",X,t(l.value?.cardType),1),e("div",Z,t(i(o)("card_number_label")),1),e("div",ee,t(l.value?.cardNo),1),e("div",te,t(i(o)("payee"))+":",1),e("div",se,t(l.value?.payee),1)])):(n(),a("div",{key:0,style:{display:"flex","justify-content":"space-between","align-items":"center"},onClick:m},[e("div",M,t(i(o)("add_payment_method")),1),y(e("img",R,null,512),[[d]])]))],4)]),_:1})]),e("div",oe,[e("div",ie,[e("div",ae,[e("div",ne,t(i(o)("kyc")),1),f.value?(n(),a("div",le,":")):_("",!0),r.value?.status==="PASS"?(n(),a("div",re,t(i(o)("review_passed")),1)):_("",!0),r.value?.status==="NOT_PASS"?(n(),a("div",de,t(i(o)("review_failed")),1)):_("",!0),r.value?.status==="PENDING"?(n(),a("div",ce,t(i(o)("awaiting_review")),1)):_("",!0)]),f.value?y((n(),a("img",{key:0,src:v,alt:"",style:{width:"6vw"},class:"flipImg",onClick:b},null,512)),[[d]]):_("",!0)]),g(x,null,{default:k(()=>[e("div",_e,[f.value?(n(),a("div",pe,[e("div",ge,[e("span",ye,t(i(o)("passport_id_card_title"))+":",1)]),e("div",ve,[(n(!0),a(Q,null,T(r.value.previewUrls,u=>(n(),a("img",{src:u,alt:"",style:{display:"block",width:"15vw","aspect-ratio":"1/1","object-fit":"cover","border-radius":"5vw"}},null,8,he))),256))]),e("div",we,t(i(o)("contact_number"))+":",1),e("div",me,t(r.value.contactNumber),1),e("div",be,t(i(o)("other_description"))+":",1),e("div",ke,t(r.value.otherDescription),1)])):(n(),a("div",{key:0,style:{display:"flex","justify-content":"space-between","align-items":"center"},onClick:b},[e("span",ue,t(i(o)("complete_information")),1),y(e("img",fe,null,512),[[d]])]))])]),_:1})])])])}}},Le=D(xe,[["__scopeId","data-v-8b3fa6f3"]]);export{Le as default};