pages-commission-team.1a984d69.js 11 KB

1
  1. import{s as e,c as a,e as l,N as t,z as s,o as i,bL as c,A as n,f as o,g as A,w as r,E as m,_ as d,m as g,k as u,u as I,v as p,x as k,l as y,r as R,F as b,i as C,H as M,j as U,I as G,a3 as h,y as Y,n as Z}from"./index-ba48620e.js";import{_ as Q}from"./s-layout.04b95866.js";import{_ as w}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.dd3ca29e.js";import"./useGoods.edb8879f.js";const E=""+new URL("search-3de207ef.png",import.meta.url).href,z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN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YmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkJEMDUyMjAzRUYzMTFFOTg5ODRFNTE1QjlFODI5QkUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkJEMDUyMjEzRUYzMTFFOTg5ODRFNTE1QjlFODI5QkUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6z7iObAAAAzUlEQVR42mL8//8/Ay0BCzKnsLCQWH1mQHwKl2R/fz92C7AABygGgR9A3AFlbwDiGCDeR5IPcFhQD2V/RLKAC4i3ALEPIUuYKAheTqglTrSygChLmKiQUPBawkSl1IjTEiYqJnmslrBQweCFQLwAif+N2hY8AOIDtIxkBlom04G3gAVLIcaFxFegtgU80KTGSasg2gctwL7TMg6oagmuSKaaJfhSEVUsIZRMKbaEmKICZskSJDFQzcYBZR+g1AKYJQFoFhAFGGndbAEIMAB0ZyqZzcAeiwAAAABJRU5ErkJggg==",D=w({__name:"team",setup(w){M((e=>({"6cb6f254":k(D)}))),e.$platform.device.statusBarHeight,a((()=>e.$store("user").userInfo));const D=e.$url.css("/static/img/shop/user/withdraw_bg.png");l((e=>{S.scrollTop=e.scrollTop<=100}));let B=t();const S=s({summary:{},pagination:{pageNo:1,pageSize:8,list:[],total:0},loadStatus:"",level:1,nickname:t(""),sortKey:"",isAsc:""});function f(){S.pagination.list=[],F()}async function F(){S.loadStatus="loading";let{code:e,data:a}=await c.getBrokerageUserChildSummaryPage({pageNo:S.pagination.pageNo,pageSize:S.pagination.pageSize,level:S.level,"sortingField.order":S.isAsc,"sortingField.field":S.sortKey,nickname:S.nickname});0===e&&(S.pagination.list=d.concat(S.pagination.list,a.list),S.pagination.total=a.total,S.loadStatus=S.pagination.list.length<S.pagination.total?"more":"noMore")}function J(e){S.pagination.list=[],S.level=e+"",F()}function O(e,a){S.pagination.list=[],B=e+a.toUpperCase(),S.isAsc=a,S.sortKey=e,F()}return i((async()=>{await F();let{data:e}=await c.getBrokerageUserSummary();S.summary=e})),n((()=>{"noMore"!==S.loadStatus&&(S.pagination.pageNo++,F())})),(a,l)=>{const t=U,s=G,i=h,c=Y,n=g(Z("s-layout"),Q);return o(),A(n,{title:"我的团队",class:m(S.scrollTop?"team-wrap":""),navbar:"inner"},{default:r((()=>[u(t,{class:"promoter-list"},{default:r((()=>[u(t,{class:"promoterHeader bg-color",style:{backgroundcolor:"#e93323 !important",height:"218rpx",color:"#fff"}},{default:r((()=>[u(t,{class:"headerCon acea-row row-between",style:{padding:"28px 29px 0 29px"}},{default:r((()=>[u(t,null,{default:r((()=>[u(t,{class:"name",style:{color:"#fff"}},{default:r((()=>[I("推广人数")])),_:1}),u(t,null,{default:r((()=>[u(s,{class:"num",style:{color:"#fff"}},{default:r((()=>[I(p(S.summary.firstBrokerageUserCount+S.summary.secondBrokerageUserCount||0),1)])),_:1}),I(" 人 ")])),_:1})])),_:1}),u(t,{class:"iconfont icon-tuandui"})])),_:1})])),_:1}),u(t,{style:{padding:"0 30rpx"}},{default:r((()=>[u(t,{class:"nav acea-row row-around l1"},{default:r((()=>[u(t,{class:m(1==S.level?"item on":"item"),onClick:l[0]||(l[0]=e=>J(1))},{default:r((()=>[I(" 一级("+p(S.summary.firstBrokerageUserCount||0)+") ",1)])),_:1},8,["class"]),u(t,{class:m(2==S.level?"item on":"item"),onClick:l[1]||(l[1]=e=>J(2))},{default:r((()=>[I(" 二级("+p(S.summary.secondBrokerageUserCount||0)+") ",1)])),_:1},8,["class"])])),_:1}),u(t,{class:"search acea-row row-between-wrapper",style:{display:"flex",height:"100rpx","align-items":"center"}},{default:r((()=>[u(t,{class:"input"},{default:r((()=>[u(i,{placeholder:"点击搜索会员名称",modelValue:S.nickname,"onUpdate:modelValue":l[2]||(l[2]=e=>S.nickname=e),"confirm-type":"search",name:"search",onConfirm:f},null,8,["modelValue"])])),_:1}),u(c,{src:E,mode:"",style:{width:"60rpx",height:"64rpx"},onClick:f})])),_:1}),u(t,{class:"list"},{default:r((()=>[u(t,{class:"sortNav acea-row row-middle",style:{display:"flex","align-items":"center"}},{default:r((()=>["userCountDESC"===k(B)?(o(),A(t,{key:0,class:"sortItem",onClick:l[3]||(l[3]=e=>O("userCount","asc"))},{default:r((()=>[I(" 团队排序 "),u(c,{src:z})])),_:1})):"userCountASC"===k(B)?(o(),A(t,{key:1,class:"sortItem",onClick:l[4]||(l[4]=e=>O("userCount","desc"))},{default:r((()=>[I(" 团队排序 "),u(c,{src:N})])),_:1})):(o(),A(t,{key:2,class:"sortItem",onClick:l[5]||(l[5]=e=>O("userCount","desc"))},{default:r((()=>[I(" 团队排序 "),u(c,{src:j})])),_:1})),"priceDESC"===k(B)?(o(),A(t,{key:3,class:"sortItem",onClick:l[6]||(l[6]=e=>O("price","asc"))},{default:r((()=>[I(" 金额排序 "),u(c,{src:z})])),_:1})):"priceASC"===k(B)?(o(),A(t,{key:4,class:"sortItem",onClick:l[7]||(l[7]=e=>O("price","desc"))},{default:r((()=>[I(" 金额排序 "),u(c,{src:N})])),_:1})):(o(),A(t,{key:5,class:"sortItem",onClick:l[8]||(l[8]=e=>O("price","desc"))},{default:r((()=>[I(" 金额排序 "),u(c,{src:j})])),_:1})),"orderCountDESC"===k(B)?(o(),A(t,{key:6,class:"sortItem",onClick:l[9]||(l[9]=e=>O("orderCount","asc"))},{default:r((()=>[I(" 订单排序 "),u(c,{src:z})])),_:1})):"orderCountASC"===k(B)?(o(),A(t,{key:7,class:"sortItem",onClick:l[10]||(l[10]=e=>O("orderCount","desc"))},{default:r((()=>[I(" 订单排序 "),u(c,{src:N})])),_:1})):(o(),A(t,{key:8,class:"sortItem",onClick:l[11]||(l[11]=e=>O("orderCount","desc"))},{default:r((()=>[I(" 订单排序 "),u(c,{src:j})])),_:1}))])),_:1}),(o(!0),y(b,null,R(S.pagination.list,((a,l)=>(o(),A(t,{key:l,class:"item acea-row row-between-wrapper",style:{display:"flex"}},{default:r((()=>[u(t,{class:"picTxt acea-row row-between-wrapper",style:{display:"flex","align-items":"center"}},{default:r((()=>[u(t,{class:"pictrue"},{default:r((()=>[u(c,{src:a.avatar},null,8,["src"])])),_:2},1024),u(t,{class:"text"},{default:r((()=>[u(t,{class:"name line1"},{default:r((()=>[I(p(a.nickname),1)])),_:2},1024),u(t,null,{default:r((()=>[I(" 加入时间: "+p(k(e).$helper.timeFormat(a.brokerageTime,"yyyy-mm-dd hh:MM:ss")),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),u(t,{class:"right",style:{"justify-content":"center","flex-direction":"column",display:"flex","margin-left":"auto"}},{default:r((()=>[u(t,null,{default:r((()=>[u(s,{class:"num font-color"},{default:r((()=>[I(p(a.brokerageUserCount||0),1)])),_:2},1024),I("人 ")])),_:2},1024),u(t,null,{default:r((()=>[u(s,{class:"num"},{default:r((()=>[I(p(a.orderCount||0),1)])),_:2},1024),I("单")])),_:2},1024),u(t,null,{default:r((()=>[u(s,{class:"num"},{default:r((()=>[I(p(a.brokeragePrice||0),1)])),_:2},1024),I("元 ")])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128)),0===S.pagination.list.length?(o(),A(t,{key:0,style:{"text-align":"center"}},{default:r((()=>[I("暂无推广人数")])),_:1})):C("",!0)])),_:1})])),_:1})])),_:1})])),_:1},8,["class"])}}},[["__scopeId","data-v-aa4ccb64"]]);export{D as default};