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

2 lines
8.0 KiB
JavaScript

import{_ as D,k as T,I as $,o as M,c as r,l as v,q as s,b as e,m,S as A,r as y,u as H,j as n,t,F as x,x as g,y as w,G as N,a0 as G,v as k}from"./index-CIAVq8iD-1776148658686.js";import{_ as E}from"./records-DqyZBoKN-1776148658686.js";import{h}from"./imageHandler-DstQGL3Z-1776148658686.js";import{a as I}from"./bdCenter-Dx55XoC5-1776148658686.js";import{a as O,g as P}from"./bdLeaderCenter-DSDd-cru-1776148658686.js";import{G as R}from"./GeneralHeader-ClI1i1Ud-1776148658686.js";import{m as V}from"./MaskLayer-CMaJd7Gb-1776148658686.js";import{h as F}from"./historySalary-Dx1-gVKG-1776148658686.js";import{G as U}from"./GradientBorder-CfwSeIMB-1776148658686.js";const q={class:"bd-center"},J={style:{padding:"16px",position:"relative","z-index":"2",display:"flex","flex-direction":"column",gap:"12px"}},K={style:{padding:"16px",display:"flex","flex-direction":"column",gap:"10px"}},Q={style:{display:"flex","justify-content":"space-between","align-items":"center"}},W={style:{"font-weight":"600"}},X={style:{display:"flex","justify-content":"space-between","align-items":"center"}},Y={style:{"font-size":"0.8em","font-weight":"600"}},Z={style:{"font-size":"0.8em","font-weight":"600"}},ee={style:{"background-color":"#ffe5a1",padding:"10px 16px","border-radius":"12px","box-shadow":"0 2px 8px rgba(0, 0, 0, 0.1)",display:"flex","align-items":"center","justify-content":"space-between",gap:"4px"}},te={style:{width:"3.5em",display:"flex","align-items":"center","justify-content":"center"}},se=["src"],ie={style:{flex:"1","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"center",gap:"4px"}},oe={style:{"font-weight":"700",width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},ae={style:{color:"rgba(0, 0, 0, 0.4)","font-size":"0.8em","font-weight":"500"}},le={style:{width:"auto","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around"}},ne={style:{"font-size":"0.8em","font-weight":"500"}},de={style:{"font-size":"0.8em","font-weight":"500"}},re={style:{position:"fixed",bottom:"0",width:"100%"}},ce={style:{display:"flex","justify-content":"center","align-items":"center"}},fe={style:{margin:"0","font-size":"18px","font-weight":"600",color:"#333"}},ue={style:{"border-radius":"12px",background:"#fff",padding:"12px",margin:"0 4px"}},ye={style:{display:"grid",gap:"4px"}},pe={style:{"font-size":"0.9em","font-weight":"600"}},_e={style:{"font-size":"0.9em","font-weight":"600"}},me={style:{"font-size":"14px","font-weight":"600",color:"#333"}},he={style:{"overflow-y":"auto"},class:"salaryList"},ve={style:{display:"flex","flex-direction":"column",gap:"8px"}},xe={class:"contentTime"},ge={style:{flex:"1","min-width":"0",display:"flex","flex-direction":"column",gap:"2px"}},be={class:"contentText"},we={class:"contentText"},ke={class:"contentTime"},Le={style:{flex:"1","min-width":"0",display:"flex","flex-direction":"column",gap:"2px"}},Se={class:"contentText"},ze={class:"contentText"},je={style:{"font-weight":"600"}},Be={style:{display:"flex","align-items":"center",gap:"6vw"}},Ce={style:{"font-size":"0.7em","font-weight":"600"}},De={style:{"font-size":"0.7em","font-weight":"600"}},Te={class:"overflow-y-auto",style:{"max-height":"50vh",display:"flex","flex-direction":"column",gap:"10px"}},$e={style:{"border-radius":"8px",background:"#ffe5a1",padding:"12px",display:"flex","align-items":"center","justify-content":"space-around",gap:"4px"}},Me={style:{width:"3.5em",display:"flex","align-items":"center","justify-content":"center"}},Ae=["src"],He={style:{flex:"1","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"center",gap:"4px"}},Ne={style:{"font-weight":"700",width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Ge={style:{color:"rgba(0, 0, 0, 0.4)","font-size":"0.8em","font-weight":"500"}},Ee={style:{width:"auto","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around"}},Ie={style:{"font-size":"0.8em","font-weight":"500"}},Oe={style:{"font-size":"0.8em","font-weight":"500"}},Pe={__name:"bdList",setup(Re){const{t:o,locale:b}=T();H(),b.value&&$(b.value);const f=y(!1),p=y(!1),c=y({}),u=y({}),d=y({}),L=A(()=>f.value||p.value),S=()=>{f.value=!1,p.value=!1},z=async()=>{const l=await I("BDLEADER");l.status&&l.body&&(d.value=l.body||{},c.value.incomeDetails&&c.value.incomeDetails.unshift(d.value.bdHistoryCO))},j=async()=>{const l=await O();l.status&&l.body&&(c.value=l.body||{},d.value.bdHistoryCO&&c.value.incomeDetails.unshift(d.value.bdHistoryCO))},B=async l=>{const a=await P(l);a.status&&a.body&&(u.value=a.body||{},f.value=!1,p.value=!0)},C=async()=>{z(),j()};return M(()=>{C()}),(l,a)=>(n(),r("div",q,[v(R,{showLanguageList:!0,title:s(o)("bd_list_link"),color:"black"},null,8,["title"]),e("div",J,[v(U,{style:{}},{default:m(()=>[e("div",K,[e("div",Q,[e("div",W,t(d.value.billTitle),1),e("img",{src:E,alt:"",style:{display:"block",width:"1.3em"},onClick:a[0]||(a[0]=i=>f.value=!0)})]),e("div",X,[e("div",Y,t(s(o)("number_of_bd"))+": "+t(d.value.memberCount),1),e("div",Z,t(s(o)("team_salary"))+": $"+t(d.value.totalSalary),1)]),(n(!0),r(x,null,g(d.value.memberBillList,i=>(n(),r("div",ee,[e("div",te,[e("img",{src:i.agentAvatar||"",alt:"",style:{display:"block",width:"100%","aspect-ratio":"1/1","border-radius":"50%","object-fit":"cover"},onError:a[1]||(a[1]=(..._)=>s(h)&&s(h)(..._))},null,40,se)]),e("div",ie,[e("div",oe,t(i.agentName),1),e("div",ae,t(s(o)("user_id_prefix"))+" "+t(i.agentAccount),1)]),e("div",le,[e("div",ne,t(s(o)("team_salary"))+": $"+t(i.teamSalaryAmount),1),e("div",de,t(s(o)("agencies"))+": "+t(i.teamMemberCount),1)])]))),256))])]),_:1})]),v(V,{maskLayerShow:L.value,onClick:S},{default:m(()=>[e("div",re,[f.value?(n(),r("div",{key:0,style:{background:"linear-gradient(0deg, #fffbe3 0%, #fffbe3 100%)","border-radius":"16px 16px 0 0","max-height":"80vh",display:"flex","flex-direction":"column",gap:"10px",padding:"10px 20px 20px"},class:"overflow-y-auto",onClick:a[2]||(a[2]=w(()=>{},["stop"]))},[e("div",ce,[e("div",fe,t(s(o)("bd_leader_history")),1)]),e("div",ue,[e("div",null,[e("div",ye,[e("div",pe,t(s(o)("total_income"))+" $"+t(c.value.totalIncome),1),e("div",_e,t(s(o)("previous_period_income"))+": $"+t(c.value.previousPeriodIncome),1)])])]),e("div",me,t(s(o)("income_details_label")),1),e("div",he,[e("div",ve,[(n(!0),r(x,null,g(c.value.incomeDetails,i=>(n(),N(F,{type:i.statusText,long:"true",onShowMore:_=>B(i.billBelong)},G({_:2},[i.statusText=="In Progress"?{name:"content",fn:m(()=>[e("div",xe,t(i.billTitle),1),e("div",ge,[e("div",be,t(s(o)("bd_number"))+": "+t(i.bdNumber||0),1),e("div",we,t(s(o)("team_salary"))+": $"+t(i.teamSalaryAmount||0),1)])]),key:"0"}:{name:"content",fn:m(()=>[e("div",ke,t(i.billTitle),1),e("div",Le,[e("div",Se,t(s(o)("bd_number"))+": "+t(i.bdNumber||0),1),e("div",ze,t(s(o)("team_salary"))+": $"+t(i.teamSalaryAmount||0),1)])]),key:"1"}]),1032,["type","onShowMore"]))),256))])])])):k("",!0),p.value?(n(),r("div",{key:1,style:{background:"linear-gradient(0deg, #fffbe3 0%, #fffbe3 100%)","border-radius":"16px 16px 0 0","max-height":"80vh",display:"flex","flex-direction":"column",gap:"10px",padding:"20px"},class:"overflow-y-auto",onClick:a[4]||(a[4]=w(()=>{},["stop"]))},[e("div",je,t(u.value.period),1),e("div",Be,[e("div",Ce,t(s(o)("team_salary"))+": $"+t(u.value.teamSalary),1),e("div",De,t(s(o)("bd_number"))+": $"+t(u.value.bdNumber),1)]),e("div",Te,[(n(!0),r(x,null,g(u.value.memberDetails,i=>(n(),r("div",$e,[e("div",Me,[e("img",{src:i.bdUserAvatar||"",alt:"",style:{display:"block",width:"100%","aspect-ratio":"1/1","border-radius":"50%","object-fit":"cover"},onError:a[3]||(a[3]=(..._)=>s(h)&&s(h)(..._))},null,40,Ae)]),e("div",He,[e("div",Ne,t(i.bdUserName),1),e("div",Ge,t(s(o)("user_id_prefix"))+" "+t(i.account),1)]),e("div",Ee,[e("div",Ie,t(s(o)("salary"))+": $"+t(i.salary),1),e("div",Oe,t(s(o)("agencies"))+":"+t(i.agencyCount),1)])]))),256))])])):k("",!0)])]),_:1},8,["maskLayerShow"])]))}},Ye=D(Pe,[["__scopeId","data-v-0e6c74b8"]]);export{Ye as default};