pages-user-wallet-team.17e0f0a2.js 5.2 KB

1
  1. import{a0 as t,s as a,c as s,y as e,o as l,az as o,z as d,e as n,f as i,w as r,_ as c,l as u,j as f,t as m,u as p,v as _,C as g,k as y,r as h,F as x,g as b,E as w,i as v,x as S,m as k,S as j}from"./index-b48a414d.js";import{_ as C}from"./s-empty.6d3471cc.js";import{_ as N}from"./uni-load-more.647920f4.js";import{p as z,_ as M}from"./s-layout.d6dcdc81.js";import{_ as T}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css */import"./phone-international-input.feef99c7.js";const Y=a=>t({url:"/distri/share-path/getTeam",method:"GET",params:a,custom:{showLoading:!0,showError:!1}}),$=T({__name:"team",setup(t){a.$platform.device.statusBarHeight,s((()=>a.$store("user").userInfo)),a.$platform.navbar;const T=e({currentTab:0,pagination:{list:0,total:0,pageSize:11,pageNo:1},loadStatus:"",descendants:{total:0,list:[]},teamCount:0,ancestor:{}});async function $(){T.loadStatus="loading";let{code:t,data:a}=await Y({pageNo:T.pagination.pageNo,pageSize:T.pagination.pageSize});if(0!==t)return;T.teamCount=a.teamCount,T.ancestor=a.ancestor;let s=c.concat(T.descendants.list,a.descendants.list);T.descendants.list=s,T.descendants.total=a.descendants.total,T.pagination.total=a.descendants.total,T.loadStatus=T.descendants.list.length<T.descendants.total?"more":"noMore"}function E(){"noMore"!==T.loadStatus&&(T.pagination.pageNo++,$())}return s((()=>T.date[0]===T.date[1]?T.date[0]:T.date.join("~"))),l((()=>{T.today=o().format("YYYY-MM-DD"),T.date=[T.today,T.today],$()})),d((()=>{E()})),(t,s)=>{const e=w,l=v,o=S,d=u(k("s-empty"),C),c=j,Y=u(k("uni-load-more"),N),$=u(k("s-layout"),M);return n(),i($,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:r((()=>[f(l,{class:"model-box ss-flex-col"},{default:r((()=>[f(l,{class:"all-title ss-p-x-45 ss-p-t-30"},{default:r((()=>[f(e,{style:{float:"right"}},{default:r((()=>[m("共"+p(T.teamCount)+"人",1)])),_:1})])),_:1}),f(l,{class:"list-box",style:{width:"100%",padding:"0",height:"calc(100vh - 7.5rem)"}},{default:r((()=>[f(l,null,{default:r((()=>[f(l,{class:"list-item ss-flex ss-col-center ss-row-between",style:{"padding-top":"30rpx","padding-bottom":"0"}},{default:r((()=>[f(l,{class:"ss-flex ss-col-center",style:{width:"100%","border-bottom":"1px solid #ededed","padding-bottom":"30rpx"}},{default:r((()=>[f(l,null,{default:r((()=>[m("    ")])),_:1}),f(l,{class:"avatar-box ss-m-x-20"},{default:r((()=>[f(o,{class:"avatar-img",src:T.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:r((()=>[f(l,{class:"name",style:{width:"100%"}},{default:r((()=>[f(e,{style:{width:"50%",display:"inline-block"}},{default:r((()=>[m(p(T.ancestor.username||"昵称:"+T.ancestor.descNickName),1)])),_:1}),m(),f(e,{class:"time",style:{float:"right",color:"#666666"}},{default:r((()=>[m("保留绩效值:"+p(_(z)(T.ancestor.residueSocial)),1)])),_:1})])),_:1}),f(l,{class:"time",style:{width:"100%",color:"#999"}},{default:r((()=>[f(e,null,{default:r((()=>[m(p(T.ancestor.socialStatusLevel||"等级1"),1)])),_:1}),m(" / "),f(e,null,{default:r((()=>[m("推荐人")])),_:1}),f(e,{style:{float:"right"}},{default:r((()=>[m("团队:"+p(T.ancestor.descendantsCount)+"人",1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),f(l,null,{default:r((()=>[f(c,{style:{width:"100%"},"scroll-y":"true",onTouchmove:s[0]||(s[0]=g((()=>{}),["stop"]))},{default:r((()=>[T.descendants.total>0?(n(),i(l,{key:0},{default:r((()=>[(n(!0),y(x,null,h(T.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((()=>[f(l,{class:"ss-flex ss-col-center",style:{width:"100%","border-bottom":"1px solid #ededed","padding-bottom":"30rpx"}},{default:r((()=>[f(l,null,{default:r((()=>[m(p(t.sort),1)])),_:2},1024),f(l,{class:"avatar-box ss-m-x-20"},{default:r((()=>[f(o,{class:"avatar-img",src:t.avatar||_(a).$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:r((()=>[f(l,{class:"name",style:{width:"100%"}},{default:r((()=>[f(e,{style:{width:"50%",display:"inline-block"}},{default:r((()=>[m(p(t.username||"昵称:"+t.descNickName),1)])),_:2},1024),f(e,{class:"time",style:{float:"right",color:"#666666"}},{default:r((()=>[m("新增绩效值:"+p(_(z)(t.residueSocial)),1)])),_:2},1024)])),_:2},1024),f(l,{class:"time",style:{width:"100%",color:"#999"}},{default:r((()=>[m(p(t.socialStatusLevel)+" / ",1),f(e,null,{default:r((()=>[m(p(1==t.depth?"直推人":""),1)])),_:2},1024),f(e,{style:{float:"right"}},{default:r((()=>[m("团队:"+p(t.descendantsCount)+"人",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}),T.descendants.total>0?(n(),i(Y,{key:0,status:T.loadStatus,"content-text":{contentdown:"点击加载更多"},onClick:E},null,8,["status"])):b("",!0)])),_:1})}}},[["__scopeId","data-v-45e71bbf"]]);export{$ as default};