| 1 |
- var C=(h,w,i)=>new Promise((m,x)=>{var y=a=>{try{u(i.next(a))}catch(r){x(r)}},c=a=>{try{u(i.throw(a))}catch(r){x(r)}},u=a=>a.done?m(a.value):Promise.resolve(a.value).then(y,c);u((i=i.apply(h,w)).next())});import{d as V,s as j,r as $,f as k,g as e,z as F,B as f,_ as L,D as _,o as v,h as t,F as p,j as P,G as S,L as o,M as l,H as q,I as U,n as A,P as G,Q as g,U as M,l as Q,q as R}from"./index-C2C--_0G.js";import{_ as H}from"./wd-navbar.DDwpvwje.js";import{_ as Z}from"./wd-img.CsYflkzc.js";import{_ as J}from"./wd-divider.Oblo2vqX.js";import{_ as K}from"./z-paging.CAp4nDA0.js";import{u as O}from"./useZPaging.DVknNCkP.js";import{r as W}from"./wallet.ITsSgq1V.js";const X="/static/icons/top-nav.png",Y=V({name:"TopChampions",__name:"topChampions",setup(h){const i=j().safeAreaInsets,m=$(null);O(m);function x(a){return{0:"#DEA90B",1:"#5E719E",2:"#D47128"}[a]||"#A5ADBD"}function y(a){return a+1}const c=$({users:{list:[]},updateTime:""});function u(a,r){return C(this,null,function*(){try{const d=yield W({size:r,page:a,type:1});c.value=d.data,m.value.complete(d.data.users.list)}catch(d){m.value.complete(!1)}})}return(a,r)=>{const d=f(_("wd-icon"),L),s=P,E=f(_("wd-navbar"),H),D=Q,B=G,I=f(_("wd-img"),Z),N=f(_("wd-divider"),J),z=f(_("z-paging"),K),T=F("layout-default-uni");return v(),k(T,null,{default:e(()=>[t(z,{ref_key:"paging",ref:m,modelValue:p(c).users.list,"onUpdate:modelValue":r[1]||(r[1]=n=>p(c).users.list=n),"use-page-scroll":"",onQuery:u},{top:e(()=>{var n;return[t(s,{class:"relative from-[#FA2B19] to-[#FE6232] bg-gradient-to-br",style:A({paddingTop:`${(n=p(i))==null?void 0:n.top}px`})},{default:e(()=>[t(E,{bordered:!1,"custom-class":"bg-transparent!"},{left:e(()=>[t(d,{name:"thin-arrow-left",color:"#fff",size:"32rpx",onClick:r[0]||(r[0]=()=>p(M)())})]),title:e(()=>[t(s,{class:"text-white font-bold text-32rpx!"},{default:e(()=>[o(l(a.$t("topChampions.title")),1)]),_:1})]),_:1}),t(D,{src:X,class:"absolute bottom-12rpx right-12rpx h-166.27rpx w-180rpx"})]),_:1},8,["style"])]}),default:e(()=>[t(s,null,{default:e(()=>[t(s,{class:"py-22rpx text-center text-22rpx text-#5C5C5C"},{default:e(()=>[o(l(p(c).updateTime||"-")+" Update ",1)]),_:1}),(v(!0),S(q,null,U(p(c).users.list,(n,b)=>(v(),k(s,{key:b,class:"relative mb-20rpx flex items-center justify-between bg-white p-24rpx"},{default:e(()=>[t(s,{class:"absolute left-24rpx top-0 h-52rpx w-48rpx flex items-center justify-center rounded-4rpx text-20rpx text-white font-bold",style:A({backgroundColor:x(b),clipPath:"polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%)"})},{default:e(()=>[t(s,{class:"flex flex-col items-center leading-none"},{default:e(()=>[t(B,{class:"text-16rpx"},{default:e(()=>[o(l(a.$t("topChampions.top")),1)]),_:1}),t(B,{class:"text-18rpx"},{default:e(()=>[o(l(y(b)),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["style"]),t(s,{class:"w-30% flex flex-col items-center justify-center text-center font-bold"},{default:e(()=>[t(I,{width:"80rpx",height:"80rpx","custom-class":"mb-3px",round:"",src:n.headPic},null,8,["src"]),t(s,{class:"mb-3px text-24rpx"},{default:e(()=>[o(l(n.name),1)]),_:2},1024),t(s,{class:"text-24rpx"},{default:e(()=>[o(" V"+l(n.vipLevel),1)]),_:2},1024)]),_:2},1024),t(N,{"custom-class":"h-80rpx! mx-40rpx!",color:"#A4A4A4",vertical:"",dashed:""}),t(s,{class:"grid grid-cols-2 flex-1 gap-24rpx"},{default:e(()=>[t(s,{class:"flex flex-col items-center"},{default:e(()=>[t(s,{class:"mb-3px text-22rpx text-#5B5B5B"},{default:e(()=>[o(l(a.$t("topChampions.invitedFriends")),1)]),_:1}),t(s,{class:"text-24rpx font-bold"},{default:e(()=>[o(l(p(g)(n.inviteNum,0)),1)]),_:2},1024)]),_:2},1024),t(s,{class:"flex flex-col items-center"},{default:e(()=>[t(s,{class:"mb-3px text-22rpx text-#5B5B5B"},{default:e(()=>[o(l(a.$t("topChampions.l7dEarnings")),1)]),_:1}),t(s,{class:"text-24rpx text-[var(--wot-color-theme)] font-bold"},{default:e(()=>[o(l(p(g)(n.l7DEarnings)),1)]),_:2},1024)]),_:2},1024),t(s,{class:"flex flex-col items-center"},{default:e(()=>[t(s,{class:"mb-3px text-22rpx text-#5B5B5B"},{default:e(()=>[o(l(a.$t("topChampions.teamMembers")),1)]),_:1}),t(s,{class:"text-24rpx font-bold"},{default:e(()=>[o(l(p(g)(n.teamNum,0)),1)]),_:2},1024)]),_:2},1024),t(s,{class:"flex flex-col items-center"},{default:e(()=>[t(s,{class:"mb-3px text-22rpx text-#5B5B5B"},{default:e(()=>[o(l(a.$t("topChampions.joinedGroups")),1)]),_:1}),t(s,{class:"text-24rpx font-bold"},{default:e(()=>[o(l(p(g)(n.groupNum,0)),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),pe=R(Y,[["__scopeId","data-v-01501e5a"]]);export{pe as default};
|