import{Z as t,s as a,c as s,y as e,o as l,b3 as o,z as d,e as n,f as i,w as c,_ as r,l as u,j as m,t as f,u as p,v as _,C as y,k as g,r as h,F as x,g as w,E as v,i as b,x as S,m as k,S as j}from"./index-9aa72eed.js";import{_ as C}from"./s-empty.3adf8b58.js";import{_ as N}from"./uni-load-more.93dce372.js";import{_ as T}from"./s-layout.bffb18b8.js";import{_ as $}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css                                                                */import"./form.c66b5271.js";const F=a=>t({url:"/distri/share-path/getTeam",method:"GET",params:a,custom:{showLoading:!1,showError:!1}}),z=$({__name:"team",setup(t){a.$platform.device.statusBarHeight,s((()=>a.$store("user").userInfo)),a.$platform.navbar;const $=e({currentTab:0,pagination:{list:0,total:0,pageSize:11,pageNo:1},loadStatus:"",descendants:{total:0,list:[]},teamCount:0,ancestor:{}});async function z(){$.loadStatus="loading";let{code:t,data:a}=await F({pageNo:$.pagination.pageNo,pageSize:$.pagination.pageSize});if(0!==t)return;$.teamCount=a.teamCount,$.ancestor=a.ancestor;let s=r.concat($.descendants.list,a.descendants.list);$.descendants.list=s,$.descendants.total=a.descendants.total,$.pagination.total=a.descendants.total,$.loadStatus=$.descendants.list.length<$.descendants.total?"more":"noMore"}function M(){"noMore"!==$.loadStatus&&($.pagination.pageNo++,z())}return s((()=>$.date[0]===$.date[1]?$.date[0]:$.date.join("~"))),l((()=>{$.today=o().format("YYYY-MM-DD"),$.date=[$.today,$.today],z()})),d((()=>{M()})),(t,s)=>{const e=v,l=b,o=S,d=u(k("s-empty"),C),r=j,F=u(k("uni-load-more"),N),z=u(k("s-layout"),T);return n(),i(z,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:c((()=>[m(l,{class:"model-box ss-flex-col"},{default:c((()=>[m(l,{class:"all-title ss-p-x-45 ss-p-t-30"},{default:c((()=>[m(e,{style:{float:"right"}},{default:c((()=>[f("共"+p($.teamCount)+"人",1)])),_:1})])),_:1}),m(l,{class:"list-box",style:{width:"100%",padding:"0",height:"calc(100vh - 5.5rem)"}},{default:c((()=>[m(l,null,{default:c((()=>[m(l,{class:"list-item ss-flex ss-col-center ss-row-between",style:{"padding-top":"30rpx","padding-bottom":"0"}},{default:c((()=>[m(l,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:c((()=>[m(l,null,{default:c((()=>[f("    ")])),_:1}),m(l,{class:"avatar-box ss-m-x-20"},{default:c((()=>[m(o,{class:"avatar-img",src:$.ancestor.avatar,mode:"aspectFill"},null,8,["src"])])),_:1}),m(l,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"calc(100% - 5.5rem)"}},{default:c((()=>[m(l,{class:"name",style:{width:"100%"}},{default:c((()=>[m(e,{style:{width:"40%",display:"inline-block"}},{default:c((()=>[f(p($.ancestor.ancNickName),1)])),_:1}),m(e,null,{default:c((()=>[f("推荐人")])),_:1})])),_:1}),m(l,{class:"time",style:{width:"100%"}},{default:c((()=>[f(p($.ancestor.socialStatusLevel||"等级1")+" ",1),m(e,{style:{float:"right"}},{default:c((()=>[f(p(_(a).$helper.timeFormat($.ancestor.createTime,"yyyy-mm-dd")),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),m(l,null,{default:c((()=>[m(r,{style:{width:"100%"},"scroll-y":"true",onTouchmove:s[0]||(s[0]=y((()=>{}),["stop"]))},{default:c((()=>[$.descendants.total>0?(n(),i(l,{key:0},{default:c((()=>[(n(!0),g(x,null,h($.descendants.list,((t,s)=>(n(),i(l,{class:"list-item ss-flex ss-col-center ss-row-between",key:t.id,style:{"padding-top":"30rpx","padding-bottom":"0"}},{default:c((()=>[m(l,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:c((()=>[m(l,null,{default:c((()=>[f(p(t.sort),1)])),_:2},1024),m(l,{class:"avatar-box ss-m-x-20"},{default:c((()=>[m(o,{class:"avatar-img",src:t.avatar||_(a).$url.static("/static/images/default_avatar.png"),mode:"aspectFill"},null,8,["src"])])),_:2},1024),m(l,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"calc(100% - 5.5rem)"}},{default:c((()=>[m(l,{class:"name",style:{width:"100%"}},{default:c((()=>[m(e,{style:{width:"40%",display:"inline-block"}},{default:c((()=>[f(p(t.descNickName||"空"),1)])),_:2},1024),m(e,null,{default:c((()=>[f(p(1==t.depth?"直推人":""),1)])),_:2},1024),m(e,{style:{float:"right"}},{default:c((()=>[f(p(t.descendantsCount),1)])),_:2},1024)])),_:2},1024),m(l,{class:"time",style:{width:"100%"}},{default:c((()=>[f(p(t.socialStatusLevel)+" ",1),m(e,{style:{float:"right"}},{default:c((()=>[f(p(_(a).$helper.timeFormat(t.createTime,"yyyy-mm-dd")),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):(n(),i(d,{key:1,text:"暂无团队成员",icon:"/static/data-empty.png"}))])),_:1})])),_:1})])),_:1})])),_:1}),$.descendants.total>0?(n(),i(F,{key:0,status:$.loadStatus,"content-text":{contentdown:"上拉加载更多"},onClick:M},null,8,["status"])):w("",!0)])),_:1})}}},[["__scopeId","data-v-e3ecd7f2"]]);export{z as default};
