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