1 |
- import{z as a,o as e,f as t,g as s,w as n,bL as r,m as o,k as l,u as i,v as c,l as u,r as m,F as f,i as d,s as p,I as y,j as _,b9 as g,n as k,E as w,x as b,y as h}from"./index-0faec82b.js";import{_ as D}from"./s-layout.88d8cb8b.js";import{f as j}from"./useGoods.b071619b.js";import{_ as x}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.38423d06.js";const v=x({__name:"commission-ranking",setup(x){const v=["周排行","月排行"],L=a({currentTab:0,position:0,rankList:[]});async function T(){const{code:a,data:e}=await r.getBrokerageUserChildSummaryPageByPrice({pageNo:1,pageSize:10,"times[0]":L.times[0],"times[1]":L.times[1]});0===a&&(L.rankList=e.list)}async function C(){const{code:a,data:e}=await r.getRankByPrice({times:L.times});0===a&&(L.position=e)}function F(a){return p.$helper.timeFormat(a,"yyyy-mm-dd hh:MM:ss")}function M(){let a;a=0===L.currentTab?function(){const a=new Date,e=a.getDay();return[new Date(a.getFullYear(),a.getMonth(),a.getDate()-e,0,0,0),new Date(a.getFullYear(),a.getMonth(),a.getDate()+(6-e),23,59,59)]}():function(){const a=new Date,e=a.getFullYear(),t=a.getMonth(),s=new Date(e,t,1,0,0,0),n=new Date(e,t+1,1),r=new Date(n.getTime()-1);return[s,r]}(),L.times=[F(a[0]),F(a[1])]}return e((function(){M(),T(),C()})),(a,e)=>{const r=y,p=_,x=h,F=g("emptyPage"),P=o(k("s-layout"),D);return t(),s(P,{title:"佣金排行榜"},{default:n((()=>[l(p,{class:"CommissionRank"},{default:n((()=>[l(p,{class:"header"},{default:n((()=>[L.position?(t(),s(p,{key:0,class:"rank"},{default:n((()=>[i(" 您目前的排名 "),l(r,{class:"num"},{default:n((()=>[i(c(L.position),1)])),_:1}),i(" 名 ")])),_:1})):(t(),s(p,{key:1,class:"rank"},{default:n((()=>[i("您目前暂无排名")])),_:1}))])),_:1}),l(p,{class:"wrapper"},{default:n((()=>[l(p,{class:"nav acea-row row-around",style:{"justify-content":"space-around",display:"flex"}},{default:n((()=>[(t(),u(f,null,m(v,((a,e)=>l(p,{class:w(["item",L.currentTab===e?"font-color":""]),key:e,onClick:a=>async function(a){L.currentTab=a,L.rankList=[],M(),T(),C()}(e)},{default:n((()=>[i(c(a),1)])),_:2},1032,["class","onClick"]))),64))])),_:1}),l(p,{class:"list"},{default:n((()=>[(t(!0),u(f,null,m(L.rankList,((a,e)=>(t(),s(p,{class:"item acea-row row-between-wrapper",key:e},{default:n((()=>[e<=2?(t(),s(p,{key:0,class:"num"},{default:n((()=>[l(x,{src:"/static/images/medal0"+(e+1)+".png"},null,8,["src"])])),_:2},1024)):(t(),s(p,{key:1,class:"num"},{default:n((()=>[i(c(e+1),1)])),_:2},1024)),l(p,{class:"picTxt acea-row row-between-wrapper"},{default:n((()=>[l(p,{class:"pictrue"},{default:n((()=>[l(x,{src:a.avatar},null,8,["src"])])),_:2},1024),l(p,{class:"text line1"},{default:n((()=>[i(c(a.nickname),1)])),_:2},1024)])),_:2},1024),l(p,{class:"people font-color"},{default:n((()=>[i("¥"+c(b(j)(a.brokeragePrice)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),0!==L.rankList.length||1===L.page&&0!==L.active?d("",!0):(t(),s(p,{key:0,class:"noCommodity"},{default:n((()=>[l(F,{title:"暂无排行~"})])),_:1}))])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-3976bf4a"]]);export{v as default};
|