import{Z as t,s as a,c as s,y as e,o as l,b2 as o,z as d,e as n,f as i,w as r,_ as c,l as m,j as u,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 j,S as k}from"./index-147ae61b.js";import{_ as N}from"./s-empty.033e4ba7.js";import{_ as C}from"./uni-load-more.347785f3.js";import{_ as T}from"./s-layout.21a11bc7.js";import{_ as $}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css                                                                */import"./form.c6b6ef18.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=c.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=m(j("s-empty"),N),c=k,F=m(j("uni-load-more"),C),z=m(j("s-layout"),T);return n(),i(z,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:r((()=>[u(l,{class:"model-box ss-flex-col"},{default:r((()=>[u(l,{class:"all-title ss-p-x-45 ss-p-t-30"},{default:r((()=>[u(e,{style:{float:"right"}},{default:r((()=>[f("共"+p($.teamCount)+"人",1)])),_:1})])),_:1}),u(l,{class:"list-box",style:{width:"100%",padding:"0",height:"calc(100vh - 5.5rem)"}},{default:r((()=>[u(l,null,{default:r((()=>[u(l,{class:"list-item ss-flex ss-col-center ss-row-between",style:{"padding-top":"30rpx","padding-bottom":"0"}},{default:r((()=>[u(l,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:r((()=>[u(l,null,{default:r((()=>[f("    ")])),_:1}),u(l,{class:"avatar-box ss-m-x-20"},{default:r((()=>[u(o,{class:"avatar-img",src:$.ancestor.avatar,mode:"aspectFill"},null,8,["src"])])),_:1}),u(l,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"calc(100% - 5.5rem)"}},{default:r((()=>[u(l,{class:"name",style:{width:"100%"}},{default:r((()=>[f(p($.ancestor.ancNickName)+" ",1),u(e,{class:"ss-m-l-16",style:{float:"right"}},{default:r((()=>[f("推荐人")])),_:1})])),_:1}),u(l,{class:"time",style:{width:"100%"}},{default:r((()=>[f(" 身价 "),u(e,{style:{float:"right"}},{default:r((()=>[f(p(_(a).$helper.timeFormat($.ancestor.createTime,"yyyy-mm-dd")),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),u(l,null,{default:r((()=>[u(c,{style:{width:"100%"},"scroll-y":"true",onTouchmove:s[0]||(s[0]=y((()=>{}),["stop"]))},{default:r((()=>[$.descendants.total>0?(n(),i(l,{key:0},{default:r((()=>[(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:r((()=>[u(l,{class:"ss-flex ss-col-center",style:{width:"100%"}},{default:r((()=>[u(l,null,{default:r((()=>[f(p(t.sort),1)])),_:2},1024),u(l,{class:"avatar-box ss-m-x-20"},{default:r((()=>[u(o,{class:"avatar-img",src:t.avatar||_(a).$url.static("/static/img/shop/default_avatar.png"),mode:"aspectFill"},null,8,["src"])])),_:2},1024),u(l,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"calc(100% - 5.5rem)"}},{default:r((()=>[u(l,{class:"name",style:{width:"100%"}},{default:r((()=>[f(p(t.descNickName||"空")+" ",1),u(e,{style:{float:"right"}},{default:r((()=>[f(p(1==t.depth?"直推人":"团队成员"),1)])),_:2},1024)])),_:2},1024),u(l,{class:"time",style:{width:"100%"}},{default:r((()=>[f(" 身价 "),u(e,{style:{float:"right"}},{default:r((()=>[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-67ea8289"]]);export{z as default};
