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

2 lines
6.1 KiB
JavaScript

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