1 |
- import{s as t,c as a,z as s,o as e,bg as l,A as o,f as d,g as n,w as i,bK as c,_ as r,m as u,k as f,u as m,v as p,x as _,G as g,l as y,r as x,F as h,i as b,I as w,j as v,y as S,n as j,D as k}from"./index-ba48620e.js";import{_ as C}from"./s-empty.a75760f9.js";import{_ as N}from"./uni-load-more.966faf1b.js";import{_ as z}from"./s-layout.04b95866.js";import{p as M}from"./useGoods.edb8879f.js";import{_ as Y}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css */import"./phone-international-input.dd3ca29e.js";const $=Y({__name:"team",setup(Y){t.$platform.device.statusBarHeight,a((()=>t.$store("user").userInfo)),t.$platform.navbar;const $=s({currentTab:0,pagination:{list:0,total:0,pageSize:10,pageNo:1},loadStatus:"",descendants:{total:0,list:[]},teamCount:0,ancestor:{}});async function D(){$.loadStatus="loading";let{code:t,data:a}=await c.getTeam({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 F(){"noMore"!==$.loadStatus&&($.pagination.pageNo++,D())}return a((()=>$.date[0]===$.date[1]?$.date[0]:$.date.join("~"))),e((()=>{$.today=l().format("YYYY-MM-DD"),$.date=[$.today,$.today],D()})),o((()=>{F()})),(a,s)=>{const e=w,l=v,o=S,c=u(j("s-empty"),C),r=k,Y=u(j("uni-load-more"),N),D=u(j("s-layout"),z);return d(),n(D,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:i((()=>[f(l,{class:"model-box ss-flex-col"},{default:i((()=>[f(l,{class:"all-title ss-p-x-45 ss-p-t-30"},{default:i((()=>[f(e,{style:{float:"right"}},{default:i((()=>[m("共"+p($.teamCount)+"人",1)])),_:1})])),_:1}),f(l,{class:"list-box",style:{width:"100%",padding:"0",height:"calc(100vh - 7.5rem)"}},{default:i((()=>[f(l,null,{default:i((()=>[f(l,{class:"list-item ss-flex ss-col-center ss-row-between",style:{"padding-top":"30rpx","padding-bottom":"0"}},{default:i((()=>[f(l,{class:"ss-flex ss-col-center",style:{width:"100%","border-bottom":"1px solid #ededed","padding-bottom":"30rpx"}},{default:i((()=>[f(l,null,{default:i((()=>[m(" ")])),_:1}),f(l,{class:"avatar-box ss-m-x-20"},{default:i((()=>[f(o,{class:"avatar-img",src:$.ancestor.avatar,mode:"aspectFill"},null,8,["src"])])),_:1}),f(l,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"calc(100% - 5.5rem)"}},{default:i((()=>[f(l,{class:"name",style:{width:"100%"}},{default:i((()=>[f(e,{style:{width:"50%",display:"inline-block"}},{default:i((()=>[m(p($.ancestor.username||"昵称:"+$.ancestor.descNickName),1)])),_:1}),f(e,{class:"time",style:{float:"right",color:"#666666"}},{default:i((()=>[m("保留绩效值:"+p(_(M)($.ancestor.residueSocial)),1)])),_:1})])),_:1}),f(l,{class:"time",style:{width:"100%",color:"#999"}},{default:i((()=>[f(e,null,{default:i((()=>[m(p($.ancestor.socialStatusLevel||"等级1"),1)])),_:1}),m(" / "),f(e,null,{default:i((()=>[m("推荐人")])),_:1}),f(e,{style:{float:"right"}},{default:i((()=>[m("团队:"+p($.ancestor.descendantsCount)+"人",1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),f(l,null,{default:i((()=>[f(r,{style:{width:"100%"},"scroll-y":"true",onTouchmove:s[0]||(s[0]=g((()=>{}),["stop"]))},{default:i((()=>[$.descendants.total>0?(d(),n(l,{key:0},{default:i((()=>[(d(!0),y(h,null,x($.descendants.list,((a,s)=>(d(),n(l,{class:"list-item ss-flex ss-col-center ss-row-between",key:a.id,style:{"padding-top":"30rpx","padding-bottom":"0"}},{default:i((()=>[f(l,{class:"ss-flex ss-col-center",style:{width:"100%","border-bottom":"1px solid #ededed","padding-bottom":"30rpx"}},{default:i((()=>[f(l,null,{default:i((()=>[m(p(a.sort),1)])),_:2},1024),f(l,{class:"avatar-box ss-m-x-20"},{default:i((()=>[f(o,{class:"avatar-img",src:a.avatar||_(t).$url.static("/static/images/default_avatar.png"),mode:"aspectFill"},null,8,["src"])])),_:2},1024),f(l,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"calc(100% - 5.5rem)"}},{default:i((()=>[f(l,{class:"name",style:{width:"100%"}},{default:i((()=>[f(e,{style:{width:"50%",display:"inline-block"}},{default:i((()=>[m(p(a.username||"昵称:"+a.descNickName),1)])),_:2},1024),f(e,{class:"time",style:{float:"right",color:"#666666"}},{default:i((()=>[m("新增绩效值:"+p(_(M)(a.residueSocial)),1)])),_:2},1024)])),_:2},1024),f(l,{class:"time",style:{width:"100%",color:"#999"}},{default:i((()=>[m(p(a.socialStatusLevel)+" / ",1),f(e,null,{default:i((()=>[m(p(1==a.depth?"直推人":""),1)])),_:2},1024),f(e,{style:{float:"right"}},{default:i((()=>[m("团队:"+p(a.descendantsCount)+"人",1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):(d(),n(c,{key:1,text:"暂无团队成员",icon:"/static/data-empty.png"}))])),_:1})])),_:1})])),_:1})])),_:1}),$.descendants.total>0?(d(),n(Y,{key:0,status:$.loadStatus,"content-text":{contentdown:"点击加载更多"},onClick:F},null,8,["status"])):b("",!0)])),_:1})}}},[["__scopeId","data-v-ccd00cff"]]);export{$ as default};
|