1 |
- import{s as e,c as t,v as s,o as a,m as l,a as o,b as d,d as r,w as n,b_ as i,_ as c,e as u,f,g as m,j as p,u as _,t as y,z as g,N as x,x as b,y as h,F as w,l as v,i as k,k as j,K as U}from"./index-dGICJBA1.js";import{_ as A}from"./s-empty.DZWZVG5X.js";import{_ as S}from"./uni-load-more.OaCK512J.js";import{_ as C}from"./s-layout.2n749i-h.js";import{p as B}from"./useGoods.jFp9m3ab.js";import{_ as z}from"./_plugin-vue_export-helper.BCo6x5W8.js";/* empty css */import"./s-menu-tools.BHmVopdZ.js";import"./s-search-block.vue_vue_type_style_index_0_scoped_f692e81a_lang.BkXbqiPQ.js";import"./uni-icons.BZJC71FJ.js";import"./s-layout.vue_vue_type_style_index_0_scoped_c1143e8c_lang.C9LLV9dD.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_0f0268ff_lang.DfrFtxCM.js";import"./s-search-block.DW-gs1wX.js";import"./phone-international-input.BSO1ObdH.js";const N=z({__name:"team",setup(z){e.$platform.device.statusBarHeight,t((()=>e.$store("user").userInfo)),e.$platform.navbar;const N=s({currentTab:0,pagination:{list:0,total:0,pageSize:10,pageNo:1},loadStatus:"",descendants:{total:0,list:[]},teamCount:0,referrerUser:{},areaUsers:{}});async function $(){N.loadStatus="loading";let{code:e,data:t}=await i.getTeam({pageNo:N.pagination.pageNo,pageSize:N.pagination.pageSize});if(0!==e)return;N.referrerCount=t.referrerCount,N.referrerUser=t.referrerUser,N.areaUsers=t.areaUsers;let s=c.concat(N.descendants.list,t.descendants.list);N.descendants.list=s,N.descendants.total=t.descendants.total,N.pagination.total=t.descendants.total,N.loadStatus=N.descendants.list.length<N.descendants.total?"more":"noMore"}function F(){"noMore"!==N.loadStatus&&(N.pagination.pageNo++,$())}return t((()=>N.date[0]===N.date[1]?N.date[0]:N.date.join("~"))),a((()=>{$()})),l((()=>{F()})),(t,s)=>{const a=v,l=k,i=j,c=o(d("s-empty"),A),z=U,$=o(d("uni-load-more"),S),T=o(d("s-layout"),C);return u(),r(T,{class:"wallet-wrap",bgStyle:{backgroundColor:"#ffffff"},title:"",navbar:"normal"},{default:n((()=>[f(l,{class:"model-box ss-flex-col"},{default:n((()=>[f(l,{class:"all-title ss-p-x-45 ss-p-t-30"},{default:n((()=>[f(a,{style:{float:"right"}},{default:n((()=>[m(p(_(y)("team.total_people",{count:N.referrerCount})),1)])),_:1})])),_:1}),f(l,{class:"list-box",style:{width:"100%",padding:"0",height:"calc(100vh - 7.5rem)"}},{default:n((()=>[N.referrerUser?(u(),r(l,{key:0},{default:n((()=>[f(l,{class:"list-item ss-flex ss-col-center ss-row-between",style:{"padding-top":"30rpx","padding-bottom":"0"}},{default:n((()=>[f(l,{class:"ss-flex ss-col-center",style:{width:"100%","border-bottom":"1px solid #ededed","padding-bottom":"30rpx"}},{default:n((()=>[f(l,null,{default:n((()=>[m(" ")])),_:1}),f(l,{class:"avatar-box ss-m-x-20"},{default:n((()=>[f(i,{class:"avatar-img",src:N.referrerUser.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.8rem)"}},{default:n((()=>[f(l,{class:"name",style:{width:"100%"}},{default:n((()=>[f(a,{style:{width:"50%",display:"inline-block"}},{default:n((()=>[m(p(N.referrerUser.username),1)])),_:1})])),_:1}),f(l,{class:"time",style:{width:"100%",color:"#999"}},{default:n((()=>[f(a,null,{default:n((()=>[m(p(_(y)("team.referrer")),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})):g("",!0),N.areaUsers.A?(u(),r(l,{key:1},{default:n((()=>[f(l,{class:"list-item ss-flex ss-col-center ss-row-between",style:{"padding-top":"30rpx","padding-bottom":"0"}},{default:n((()=>[f(l,{class:"ss-flex ss-col-center",style:{width:"100%","border-bottom":"1px solid #ededed","padding-bottom":"30rpx"}},{default:n((()=>[f(l,null,{default:n((()=>[m(" ")])),_:1}),f(l,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:n((()=>[f(l,{class:"name",style:{width:"100%"}},{default:n((()=>[f(a,{style:{width:"50%",display:"inline-block"}},{default:n((()=>[m("A区")])),_:1}),f(a,{class:"time",style:{float:"right",color:"#666666"}},{default:n((()=>[m("业绩:"+p(_(B)(N.areaUsers.A.addAmount)),1)])),_:1})])),_:1}),f(l,{class:"time",style:{width:"100%",color:"#999"}},{default:n((()=>[f(a,{class:"time",style:{float:"right",color:"#666666"}},{default:n((()=>[m("存余:"+p(_(B)(N.areaUsers.A.surplusAmount)),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})):g("",!0),N.areaUsers.B?(u(),r(l,{key:2},{default:n((()=>[f(l,{class:"list-item ss-flex ss-col-center ss-row-between",style:{"padding-top":"30rpx","padding-bottom":"0"}},{default:n((()=>[f(l,{class:"ss-flex ss-col-center",style:{width:"100%","border-bottom":"1px solid #ededed","padding-bottom":"30rpx"}},{default:n((()=>[f(l,null,{default:n((()=>[m(" ")])),_:1}),f(l,{class:"ss-flex ss-m-t-10",style:{"flex-direction":"column","align-items":"flex-start",width:"100%"}},{default:n((()=>[f(l,{class:"name",style:{width:"100%"}},{default:n((()=>[f(a,{style:{width:"50%",display:"inline-block"}},{default:n((()=>[m("B区")])),_:1}),f(a,{class:"time",style:{float:"right",color:"#666666"}},{default:n((()=>[m("业绩:"+p(_(B)(N.areaUsers.B.addAmount)),1)])),_:1})])),_:1}),f(l,{class:"time",style:{width:"100%",color:"#999"}},{default:n((()=>[f(a,{class:"time",style:{float:"right",color:"#666666"}},{default:n((()=>[m("存余:"+p(_(B)(N.areaUsers.B.surplusAmount)),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})):g("",!0),f(l,{style:{padding:"30rpx","padding-bottom":"0"}},{default:n((()=>[m(" 直推人列表 ")])),_:1}),f(l,null,{default:n((()=>[f(z,{style:{width:"100%"},"scroll-y":"true",onTouchmove:s[0]||(s[0]=x((()=>{}),["stop"]))},{default:n((()=>[N.descendants.total>0?(u(),r(l,{key:0},{default:n((()=>[(u(!0),b(w,null,h(N.descendants.list,((t,s)=>(u(),r(l,{class:"list-item ss-flex ss-col-center ss-row-between",key:t.id,style:{"padding-top":"30rpx","padding-bottom":"0"}},{default:n((()=>[f(l,{class:"ss-flex ss-col-center",style:{width:"100%","border-bottom":"1px solid #ededed","padding-bottom":"30rpx"}},{default:n((()=>[f(l,{style:{"word-wrap":"break-word"}},{default:n((()=>[m(p(s+1),1)])),_:2},1024),f(l,{class:"avatar-box ss-m-x-20"},{default:n((()=>[f(i,{class:"avatar-img",src:t.avatar||_(e).$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.8rem)"}},{default:n((()=>[f(l,{class:"name",style:{width:"100%"}},{default:n((()=>[f(a,{style:{width:"50%",display:"inline-block"}},{default:n((()=>[m(p(t.username),1)])),_:2},1024),f(a,{class:"time",style:{float:"right",color:"#666666"}},{default:n((()=>[m("业绩:"+p(_(B)(t.addAmount)),1)])),_:2},1024)])),_:2},1024),f(l,{class:"time",style:{width:"100%",color:"#999"}},{default:n((()=>[f(a,null,{default:n((()=>[m("直推人")])),_:1}),f(a,{class:"time",style:{float:"right",color:"#666666"}},{default:n((()=>[m("存余:"+p(_(B)(t.surplusAmount)),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):(u(),r(c,{key:1,text:_(y)("team.no_team_members"),icon:"/static/data-empty.png"},null,8,["text"]))])),_:1})])),_:1})])),_:1})])),_:1}),N.descendants.total>0?(u(),r($,{key:0,status:N.loadStatus,"content-text":{contentdown:_(y)("common.click_to_load_more")},onClick:F},null,8,["status","content-text"])):g("",!0)])),_:1})}}},[["__scopeId","data-v-527e42f4"]]);export{N as default};
|