pages-commission-team.b1e08135.js 11 KB

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