9 lines
29 KiB
JavaScript
9 lines
29 KiB
JavaScript
import{aB as qt,_ as ct,j as o,c as m,b as t,D as s,n as _,q as r,F as z,x as A,Q as S,t as l,v as Z,S as u,an as ut,k as Ft,P as Ht,aW as Et,r as g,o as Gt,a as Pt,l as d,ac as Wt,m as c,a_ as U,Y as B,G as F,y as St}from"./index-CIAVq8iD-1776148658686.js";import{_ as tt}from"./coin-Dqu2_ND9-1776148658686.js";import{c as Ot}from"./appConnector-B5Pbaops-1776148658686.js";import{g as Kt,a as Qt}from"./imagePaths-Bi1Bwe4Z-1776148658686.js";import{p as Dt}from"./imagePreloader-C_QM-Nv8-1776148658686.js";import{h as D,a as Rt}from"./imageHandler-DstQGL3Z-1776148658686.js";import{c as Yt,g as jt,b as Jt}from"./activity-Dn8ZkLM2-1776148658686.js";import{B as Xt}from"./BackgroundLayer-DJYogygx-1776148658686.js";import{i as y}from"./itemCenter-DveKthYv-1776148658686.js";import{m as Zt}from"./MaskLayer-CMaJd7Gb-1776148658686.js";const te=qt("gamesKing",{state:()=>({checkDate:"",checkStatus:!1}),actions:{setGamesKing(f,h){this.checkDate=f,this.checkStatus=h}},persist:!0}),ee={style:{width:"100%"}},ie=["src"],ne=["src"],ae={key:0,class:"scroll-wrapper"},se={class:"scroll-content"},le={src:tt,alt:"",style:{display:"block",width:"1.1em"}},oe={__name:"topUser",props:{ranking:{type:String,default:""},avatarUrl:{type:String,default:""},BorderImgUrl:{type:String,required:!0},name:{type:String,default:""},distributionValue:{type:String,default:""}},setup(f){const h=f,L=u(()=>{switch(h.ranking){case"1":return"55vw";case"2":return"57.09vw";case"3":case"4":return"52.43vw";case"5-7":return"45.09vw";case"8-10":return"40.23vw";default:return"59.36vw"}}),V=u(()=>{switch(h.ranking){case"1":return"93%";case"2":return"93%";case"3":return"90%";case"4":return"90%";case"5-7":return"85%";case"8-10":return"85%";default:return"93%"}}),et=u(()=>{switch(h.ranking){case"1":return"36%";case"2":return"50%";case"3":return"41%";case"4":return"41%";case"5-7":return"45%";case"8-10":return"45%";default:return"36%"}}),P=u(()=>{switch(h.ranking){case"1":return"23%";case"2":return"37%";case"3":return"39%";case"4":return"39%";case"5-7":return"43%";case"8-10":return"41%";default:return"22%"}}),W=u(()=>{switch(h.ranking){case"1":return"height: 50%; width: 36%;";case"2":return"height: 39%; width: 90%;";case"3":return"height: 26%; width: 70%;";case"4":return"height: 26%; width: 75%;";case"5-7":return"height: 23%; width: 78%;";case"8-10":return"height: 27%; width: 78%;";default:return"height: 100%; width: 72%;"}}),i=u(()=>h.ranking==="1"?"top1Text":"text"),O=u(()=>h.ranking==="1");return(v,E)=>{const R=ut("smart-img");return o(),m("div",ee,[t("div",{style:_([{position:"relative"},{minHeight:L.value}])},[s(t("img",{src:f.BorderImgUrl,alt:"",width:"100%",style:{display:"block",position:"relative","z-index":"2"}},null,8,ie),[[R]]),t("div",{style:_([{position:"absolute",top:"0",left:"0",right:"0","z-index":"1",display:"flex","justify-content":"center","align-items":"center"},{height:V.value}])},[t("div",{style:_({width:et.value})},[t("img",{src:f.avatarUrl||"",alt:"",width:"100%",style:{display:"block","border-radius":"50%","aspect-ratio":"1/1","object-fit":"cover"},onError:E[0]||(E[0]=(...j)=>r(D)&&r(D)(...j))},null,40,ne)],4)],4),t("div",{style:_([{position:"absolute",bottom:"0",left:"0",right:"0","z-index":"3",display:"flex","flex-direction":"column","align-items":"center",gap:"2px"},{height:P.value}])},[t("div",{style:_([{display:"flex","align-items":"center",overflow:"hidden",width:"100%"},W.value])},[f.name?(o(),m("div",ae,[(o(),m(z,null,A(3,j=>t("div",se,[t("div",{style:{color:"#fff","font-weight":"700","white-space":"nowrap"},class:S(i.value)},l(f.name),3),s(t("img",le,null,512),[[R]]),t("div",{style:{"font-weight":"700",background:"linear-gradient(180deg, #ffe656 0%, #fff 100%)","background-clip":"text","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"},class:S(["showText",O.value?"top1Text":"text"])},l(f.distributionValue),3)])),64))])):Z("",!0)],4)],4)],4)])}}},H=ct(oe,[["__scopeId","data-v-e698a308"]]),re={style:{width:"100%"}},de=["src"],ce={__name:"topUserDaily",props:{ranking:{type:String,default:""},avatarUrl:{type:String,default:""},name:{type:String,default:""},rankingType:{type:String,default:""},distributionValue:{type:String,default:""}},setup(f){const h=f,L=u(()=>h.ranking==="1"),V=u(()=>{switch(h.ranking){case"1":return"85%";case"2":return"78%";case"3":return"78%";default:return"78%"}}),et=u(()=>{switch(h.ranking){case"1":return"80%";case"2":return"60%";case"3":return"60%";default:return"38%"}}),P=u(()=>{switch(h.ranking){case"1":return"31%";case"2":return"32%";case"3":return"28%";default:return"29%"}}),W=u(()=>{switch(h.ranking){case"1":return"40%";case"2":return"39%";case"3":return"43%";default:return"38%"}}),i=u(()=>{switch(h.ranking){case"1":return"70%";case"2":return"70%";case"3":return"70%";default:return"40%"}}),O=u(()=>{switch(h.ranking){case"1":return"60%";case"2":return"50%";case"3":return"50%";default:return"40%"}}),v=u(()=>{switch(h.ranking){case"1":return"1em";case"2":return"0.9em";case"3":return"0.9em";default:return"0.9em"}});return(E,R)=>{const j=ut("smart-img");return o(),m("div",re,[t("div",{style:_([{position:"relative"},{minHeight:f.ranking=="1"?"46vw":"33vw"}])},[t("div",{style:_([{position:"relative","z-index":"-1",display:"flex","justify-content":"center","align-items":"center"},{height:V.value}])},[t("div",{style:_({width:et.value})},[t("img",{src:f.avatarUrl||"",alt:"",width:"100%",style:{display:"block","border-radius":"50%","aspect-ratio":"1/1","object-fit":"cover"},onError:R[0]||(R[0]=(...M)=>r(D)&&r(D)(...M))},null,40,de)],4)],4),t("div",{style:_([{position:"absolute",bottom:"0",left:"0",right:"0","z-index":"3",display:"flex","flex-direction":"column","align-items":"center",gap:"1vw"},{height:P.value}])},[t("div",{style:_([{display:"flex","justify-content":"center","align-items":"center"},{width:i.value,height:W.value}])},[t("div",{style:{direction:"ltr","font-weight":"700"},class:S(["showText",L.value?"top1Text":"text"])},l(f.name),3)],4),t("div",{style:_([{"border-radius":"40px","box-shadow":"0 0 2.558px 0 rgba(0, 0, 0, 0.4) inset",border:"0.64px solid #ffdf36",padding:"1px 2px",display:"flex","justify-content":"center","align-items":"center"},{width:O.value,background:f.ranking=="1"?"linear-gradient(270deg, #3A0607 0%, #D8494B 47.45%, #3A0607 100%)":f.ranking=="2"?"linear-gradient(270deg, #D1A3FD 0%, #801DBD 50%, #D0A3FD 100%)":"linear-gradient(270deg, #A3FDB7 0%, #1DBD3A 50%, #A3FDB2 100%)"}])},[s(t("img",{src:tt,alt:"",style:_([{display:"block"},{width:v.value}])},null,4),[[j]]),t("div",{style:_([{"font-weight":"590"},{color:f.ranking=="1"?"#FFE601":"#FFF"}]),class:S(["showText",L.value?"top1Text":"text"])},l(f.distributionValue),7)],4)],4)],4)])}}},dt=ct(ce,[["__scopeId","data-v-08bdb6bb"]]),ue={class:"fullPage"},ve={key:0,class:"loading-container"},ge=["src"],ye={key:1},me=["src"],he={class:"bg"},pe=["src"],fe={style:{display:"flex","justify-content":"center","margin-top":"11vw"}},we={style:{"margin-top":"6vw",display:"flex","justify-content":"flex-end","align-items":"center"}},ke=["src"],_e={class:"timeBox"},be={style:{width:"20%"}},xe={class:"timeText",style:{}},Ue={style:{width:"20%"}},Be={class:"timeText",style:{}},Se={style:{width:"20%"}},De={class:"timeText",style:{}},Re={style:{width:"20%"}},je={class:"timeText",style:{}},Ie={style:{display:"flex","justify-content":"space-around","margin-top":"2vw"}},Te=["src"],Ce=["src"],$e=["src"],ze={style:{display:"flex","flex-direction":"column","align-items":"center"}},Ae={style:{width:"100%",display:"flex","justify-content":"space-between","align-items":"center",gap:"2vw"}},Ve={style:{width:"8vw","align-self":"stretch",display:"flex","justify-content":"center","align-items":"center"}},Le=["src"],Me={style:{width:"8vw","align-self":"stretch",display:"flex","justify-content":"center","align-items":"center"}},Ne=["src"],qe={style:{"font-size":"1.3em","font-weight":"590","background-image":`-webkit-linear-gradient(
|
|
top,
|
|
rgb(243, 183, 0),
|
|
rgb(255, 238, 198)
|
|
)`,"background-clip":"text","-webkit-text-fill-color":"transparent"}},Fe=["src"],He={style:{display:"flex","justify-content":"space-around","margin-top":"2vw"}},Ee={style:{"font-weight":"700","font-size":"1.3em"}},Ge={style:{"font-weight":"700","font-size":"1.3em"}},Pe={style:{position:"relative",width:"100%",margin:"4px 0 10px"}},We={style:{position:"relative","z-index":"1"}},Oe={style:{display:"flex","justify-content":"center"}},Ke={style:{display:"flex","justify-content":"space-between","margin-top":"-5vw"}},Qe={style:{width:"100%",display:"flex","justify-content":"space-between"}},Ye={style:{width:"100%",display:"flex","justify-content":"space-between"}},Je={key:0,style:{position:"relative","z-index":"2"}},Xe={style:{flex:"1","min-width":"0",display:"flex","justify-content":"space-around","align-items":"center",gap:"8px"}},Ze={style:{color:"#ffe601","font-weight":"700"}},ti=["src"],ei={style:{flex:"1","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around"}},ii={style:{color:"#fff","font-weight":"860",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},class:"UserNickname"},ni={style:{color:"#fff","font-weight":"590"},class:"UserNickname"},ai={style:{width:"auto","min-width":"0",display:"flex","align-items":"center"}},si={src:tt,alt:"",style:{display:"block",width:"1.5em","aspect-ratio":"1/1","object-fit":"cover"}},li={style:{color:"#ffe601","font-weight":"700"},class:"UserNickname"},oi=["src"],ri={style:{position:"relative",width:"100%",margin:"4px 0 10px"}},di={style:{position:"relative","z-index":"1"}},ci={style:{display:"flex","justify-content":"center"}},ui={style:{"margin-top":"-5vw"},class:"top2-3"},vi={key:0,style:{"margin-top":"-2vw",position:"relative","z-index":"-1"}},gi={style:{flex:"1","min-width":"0",display:"flex","justify-content":"space-around","align-items":"center",gap:"8px"}},yi={style:{color:"#ffe601","font-weight":"700"}},mi=["src"],hi={style:{flex:"1","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around"}},pi={style:{color:"#fff","font-weight":"860",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},class:"UserNickname"},fi={style:{color:"#fff","font-weight":"590"},class:"UserNickname"},wi={style:{width:"auto","min-width":"0",display:"flex","align-items":"center"}},ki={src:tt,alt:"",style:{display:"block",width:"1.5em","aspect-ratio":"1/1","object-fit":"cover"}},_i={style:{color:"#ffe601","font-weight":"700"},class:"UserNickname"},bi=["src"],xi={style:{display:"flex","flex-direction":"column","align-items":"center"}},Ui={style:{display:"flex","justify-content":"space-around","margin-top":"2vw"}},Bi={style:{"font-weight":"700","font-size":"1.3em"}},Si={style:{"font-weight":"700","font-size":"1.3em"}},Di={style:{width:"100%","aspect-ratio":"1/1",display:"flex","justify-content":"center","align-items":"center"}},Ri=["src","onError"],ji={style:{width:"100%",display:"flex","justify-content":"center","align-items":"center"}},Ii={style:{"min-width":"0",color:"#f9e447","text-align":"center","font-size":"1.2em","font-weight":"900"}},Ti={style:{width:"100%","aspect-ratio":"1/1",display:"flex","justify-content":"center","align-items":"center"}},Ci=["src","onError"],$i={style:{width:"100%",display:"flex","justify-content":"center","align-items":"center"}},zi={style:{"min-width":"0",color:"#f9e447","text-align":"center","font-size":"1.2em","font-weight":"900"}},Ai=["src"],Vi={key:0,style:{height:"22vw"}},Li={style:{flex:"1","min-width":"0",display:"flex","justify-content":"space-around","align-items":"center",gap:"8px"}},Mi={style:{color:"#ffe601","font-weight":"700"}},Ni=["src"],qi={style:{flex:"1","min-width":"0",display:"flex","flex-direction":"column"}},Fi={style:{color:"#fff","font-weight":"860",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},class:"UserNickname"},Hi={style:{width:"auto","min-width":"0",display:"flex","align-items":"center"}},Ei={src:tt,alt:"",style:{display:"block",width:"1.5em","aspect-ratio":"1/1","object-fit":"cover"}},Gi={style:{color:"#ffe601","font-weight":"700"}},Pi=["src"],Wi=["src"],Oi={__name:"index",setup(f){const h=te(),L=g(!0),{t:V,locale:et}=Ft(),P=Ht(),W=u(()=>P.selectedLang?.type||"en"),i=n=>Kt("Ranking/GamesKing/",n),O=n=>Qt("Ranking/GamesKing/",n),v=n=>W.value==="ar"?`${n}_ar`:n,{checkDate:E,checkStatus:R}=Et(h),j=g(!1),M=g(!1),It=u(()=>j.value||M.value),at=n=>{switch(K(),n){case"help":j.value=!0;break;case"dailyPopUp":M.value=!0;break}},K=()=>{console.log("点击关闭弹窗"),j.value=!1,M.value=!1,M.value&&(R.value=!0)},Tt=()=>{const n=new Date,e=n.getMonth()+"-"+n.getDate();e!=E.value?(E.value=e,R.value=!1,at("dailyPopUp")):R.value||at("dailyPopUp")},vt=g(0),gt=g(0),yt=g(0),mt=g(0);let ht=null;const Q=g(!1),N=g(!0),Y=g(!1),st=n=>{switch(n){case"history":Q.value=!0,N.value=!1,Y.value=!1;break;case"ranking":Q.value=!1,N.value=!0,Y.value=!1;break;case"rewards":Q.value=!1,N.value=!1,Y.value=!0}},I=g([]),T=g(0),q=g(!0),G=g(!1),J=g([]),X=g([]),pt=g({}),ft=g({}),wt=g([]),it=u(()=>q.value?pt.value:ft.value),nt=n=>{switch(n){case"week":q.value=!0,G.value=!1;break;case"daily":q.value=!1,G.value=!0;break}},kt=g([i("top1RewardBg"),i("top2_4RewardBg"),i("top5_7RewardBg"),i("top8_10RewardBg")]),w=u(()=>{let n=[...J.value];if(J.value.length<10){let e=Array.from({length:10-J.value.length},()=>({avatar:"",nickname:"",quantity:""}));n.push(...e)}return n}),_t=u(()=>J.value.filter((n,e)=>e>=10)),b=u(()=>{let n=[...X.value];if(X.value.length<3){let e=Array.from({length:3-X.value.length},()=>({avatar:"",nickname:"",quantity:""}));n.push(...e)}return n}),bt=u(()=>X.value.filter((n,e)=>e>=3)),lt=g((()=>{const n=new Date,e=new Date(n.getTime()),C=n.getTime()+n.getTimezoneOffset()*6e4,p=new Date(C+8*36e5),a=p.getDay(),x=p.getHours(),k=a===0?6:a-1;let $;return k===0?x>=5?$=7:$=0:$=7-k,e.setDate(e.getDate()+$),e.setHours(5,0,0,0),e.getTime()})()),ot=n=>n<10?`0${n}`:n,xt=()=>{const n=Date.now();let e=lt.value-n;e<=0&&(Bt(),lt.value+=7*864e5,e=lt.value-n);const C=Math.floor(e/1e3);vt.value=Math.floor(C/(24*3600)),gt.value=ot(Math.floor(C%(24*3600)/3600)),yt.value=ot(Math.floor(C%3600/60)),mt.value=ot(Math.floor(C%60))},Ut=(n,e)=>["GOLD","DIAMOND","GIFT","FRAGMENTS"].includes(n)?e.content:n==="DOLLARS"?`$${e.content}`:`${e.quantity}Days`,Ct=async()=>{const n=await Yt("10");n.status&&n.body&&(I.value=n.body?.historicalList)},$t=async()=>{const e=await jt({activityType:10});console.log("resMyWeekStarRanking:",e),e.status&&e.body&&(pt.value=e.body.currentUserRank,J.value=e.body.rankingList)},zt=async()=>{const e=await jt({activityType:15,cycleType:1});console.log("resDailyListAndMy:",e),e.status&&e.body&&(ft.value=e.body.currentUserRank,X.value=e.body.rankingList)},At=async()=>{const n=await Jt("2001207026499137537");n.status&&n.body&&(wt.value=n.body.butOneRewards)},Bt=async()=>{await Promise.all([Ct(),$t(),zt(),At()])},Vt=async()=>{const n=[i("bg"),i("bg2"),i("closeBt"),i(v("dailyPopUpNew")),i("helpBt"),i(v("helpInfo")),i(v("historyBtActive")),i("myRankingBg"),i(v("rankingBtActive")),i(v("rewardBtActive")),i("RankingBottomBorder"),i("RankingCenterBg"),i("RankingItem"),i(v("RankingMain")),i("BtBg"),i("top1RewardDaily"),i("top2RewardDaily"),i("top3RewardDaily"),i("timeBg"),i("topBackBt"),i("topNextBt"),i("top1"),i("top2"),i("top3"),i("top4"),i("top5_7"),i("top8_10"),i("top1-3FrameDaily")];await Dt(n)},Lt=async()=>{try{await Promise.all([Bt(),Vt()])}catch(n){console.error("预加载过程中发生错误:",n)}finally{L.value=!1}},Mt=async()=>{const n=[i(v("historyTopBg")),i("historyTopFrame"),i(v("specialRewardsNew")),i("top1RewardBg"),i("top2_4RewardBg"),i("top5_7RewardBg"),i("top8_10RewardBg")];await Dt(n)},Nt=async()=>{await Ot(()=>{Lt()})};return Gt(()=>{Nt(),Mt(),Tt(),xt(),ht=setInterval(xt,1e3)}),Pt(()=>{clearInterval(ht)}),(n,e)=>{const C=Wt,p=ut("smart-img");return o(),m("div",ue,[L.value?(o(),m("div",ve,[d(Xt,{backgroundImages:[i("bg")]},null,8,["backgroundImages"]),s(t("img",{src:i("bg2"),alt:"",style:{display:"block",width:"100%",position:"absolute",inset:"80vw 0 0","z-index":"-1"}},null,8,ge),[[p]]),d(C),t("p",null,l(n.$t("loading"))+"...",1)])):(o(),m("div",ye,[s(t("img",{src:i("bg2"),alt:"",style:{display:"block",width:"100%",position:"absolute",inset:"80vw 0 0","z-index":"0"}},null,8,me),[[p]]),t("div",he,[d(y,{imgUrl:i("bg"),style:{"min-height":"100vw",position:"absolute","z-index":"0"}},{default:c(()=>[s(t("img",{src:O("bg"),alt:"",style:{"min-height":"100vw",display:"block",width:"100%","object-fit":"cover"}},null,8,pe),[[p]])]),_:1},8,["imgUrl"]),e[27]||(e[27]=t("div",{style:{height:"30px"}},null,-1)),t("div",fe,[d(H,{ranking:"1",BorderImgUrl:i("top1"),avatarUrl:w.value[0].avatar,name:w.value[0].nickname,distributionValue:w.value[0].quantity||"",style:{width:"55%"},onClick:e[0]||(e[0]=a=>r(U)(w.value[0].userId))},null,8,["BorderImgUrl","avatarUrl","name","distributionValue"])]),t("div",we,[s(t("img",{src:i("helpBt"),alt:"",style:{display:"block",position:"relative",width:"8vw","margin-right":"4vw"},onClick:e[1]||(e[1]=a=>at("help"))},null,8,ke),[[p]])]),t("div",_e,[t("div",be,[d(y,{imgUrl:i("timeBg")},{default:c(()=>[t("div",xe,l(vt.value)+"D",1)]),_:1},8,["imgUrl"])]),e[23]||(e[23]=t("div",{class:"timeText timeGap"},null,-1)),t("div",Ue,[d(y,{imgUrl:i("timeBg")},{default:c(()=>[t("div",Be,l(gt.value),1)]),_:1},8,["imgUrl"])]),e[24]||(e[24]=t("div",{class:"timeText timeGap"},":",-1)),t("div",Se,[d(y,{imgUrl:i("timeBg")},{default:c(()=>[t("div",De,l(yt.value),1)]),_:1},8,["imgUrl"])]),e[25]||(e[25]=t("div",{class:"timeText timeGap"},":",-1)),t("div",Re,[d(y,{imgUrl:i("timeBg")},{default:c(()=>[t("div",je,l(mt.value),1)]),_:1},8,["imgUrl"])])]),t("div",null,[t("div",Ie,[t("div",{style:{width:"30%",position:"relative"},onClick:e[2]||(e[2]=a=>st("history"))},[s(t("img",{src:i(v("historyBtActive")),alt:"",class:S({"grayscale-container":!Q.value}),style:{display:"block",width:"100%"}},null,10,Te),[[p]])]),t("div",{style:{width:"30%",position:"relative"},onClick:e[3]||(e[3]=a=>st("ranking"))},[s(t("img",{src:i(v("rankingBtActive")),alt:"",class:S({"grayscale-container":!N.value}),style:{display:"block",width:"100%"}},null,10,Ce),[[p]])]),t("div",{style:{width:"30%",position:"relative"},onClick:e[4]||(e[4]=a=>st("rewards"))},[s(t("img",{src:i(v("rewardBtActive")),alt:"",class:S({"grayscale-container":!Y.value}),style:{display:"block",width:"100%"}},null,10,$e),[[p]])])])]),t("div",null,[s(t("div",ze,[d(y,{style:{"min-height":"110.3vw"},imgUrl:i(v("historyTopBg")),contentStyle:`inset: 25vw 5vw 4vw;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap:2vw`},{default:c(()=>[t("div",Ae,[t("div",Ve,[s(t("img",{src:i("topBackBt"),alt:"",class:"flipImg",style:{display:"block",width:"100%","object-fit":"cover"},onClick:e[5]||(e[5]=a=>T.value--)},null,8,Le),[[p],[B,I.value.length>1&&T.value>0]])]),d(H,{BorderImgUrl:i("historyTopFrame"),avatarUrl:I.value[T.value].topUser.avatar,name:I.value[T.value].topUser.nickname,distributionValue:I.value[T.value].topUser.quantity||"",style:{flex:"1","min-width":"0"},onClick:e[6]||(e[6]=a=>r(U)(I.value[T.value].topUser.userId))},null,8,["BorderImgUrl","avatarUrl","name","distributionValue"]),t("div",Me,[s(t("img",{src:i("topNextBt"),alt:"",class:"flipImg",style:{display:"block",width:"100%","object-fit":"cover"},onClick:e[7]||(e[7]=a=>T.value++)},null,8,Ne),[[p],[B,I.value.length>1&&T.value+1<I.value.length]])])]),t("div",qe,l(I.value[T.value].cycleDisplay),1)]),_:1},8,["imgUrl"]),s(t("img",{src:i(v("specialRewardsNew")),alt:"",style:{display:"block",width:"100%","object-fit":"cover"}},null,8,Fe),[[p]])],512),[[B,Q.value]]),s(t("div",null,[t("div",He,[t("div",{style:{width:"40%",position:"relative"},onClick:e[8]||(e[8]=a=>nt("week"))},[d(y,{style:{"min-height":"8vw"},imgUrl:i("BtBg"),contentStyle:"padding-top: 1vw;",class:S({"grayscale-container":!q.value})},{default:c(()=>[t("div",Ee,l(r(V)("weekly_rank")),1)]),_:1},8,["imgUrl","class"])]),t("div",{style:{width:"40%",position:"relative"},onClick:e[9]||(e[9]=a=>nt("daily"))},[d(y,{style:{"min-height":"8vw"},imgUrl:i("BtBg"),contentStyle:"padding-top: 1vw;",class:S({"grayscale-container":!G.value})},{default:c(()=>[t("div",Ge,l(r(V)("daily_rank")),1)]),_:1},8,["imgUrl","class"])])]),s(t("div",Pe,[t("div",We,[d(y,{style:{"min-height":"132.2vw"},imgUrl:i(v("RankingMain")),contentStyle:"padding: 25% 4% 0;flex-direction: column;"},{default:c(()=>[t("div",null,[t("div",Oe,[d(H,{ranking:"2",BorderImgUrl:i("top2"),avatarUrl:w.value[1].avatar,name:w.value[1].nickname,distributionValue:w.value[1].quantity||"",style:{width:"40%"},onClick:e[10]||(e[10]=a=>r(U)(w.value[1].userId))},null,8,["BorderImgUrl","avatarUrl","name","distributionValue"])]),t("div",Ke,[d(H,{ranking:"3",BorderImgUrl:i("top3"),avatarUrl:w.value[2].avatar,name:w.value[2].nickname,distributionValue:w.value[2].quantity||"",style:{width:"38%"},onClick:e[11]||(e[11]=a=>r(U)(w.value[2].userId))},null,8,["BorderImgUrl","avatarUrl","name","distributionValue"]),d(H,{ranking:"4",BorderImgUrl:i("top4"),avatarUrl:w.value[3].avatar,name:w.value[3].nickname,distributionValue:w.value[3].quantity||"",style:{width:"38%"},onClick:e[12]||(e[12]=a=>r(U)(w.value[3].userId))},null,8,["BorderImgUrl","avatarUrl","name","distributionValue"])])])]),_:1},8,["imgUrl"]),d(y,{style:{"min-height":"90.13vw"},imgUrl:i("RankingCenterBg"),contentStyle:"padding: 0 5%;flex-direction: column;justify-content: space-around;"},{default:c(()=>[t("div",Qe,[(o(!0),m(z,null,A(w.value.slice(4,7),a=>(o(),F(H,{key:a.userId,ranking:"5-7",BorderImgUrl:i("top5_7"),avatarUrl:a.avatar,name:a.nickname,distributionValue:a.quantity||"",style:{width:"30%"},onClick:x=>r(U)(a.userId)},null,8,["BorderImgUrl","avatarUrl","name","distributionValue","onClick"]))),128))]),t("div",Ye,[(o(!0),m(z,null,A(w.value.slice(7,10),a=>(o(),F(H,{key:a.userId,ranking:"8-10",BorderImgUrl:i("top8_10"),avatarUrl:a.avatar,name:a.nickname,distributionValue:a.quantity||"",style:{width:"30%"},onClick:x=>r(U)(a.userId)},null,8,["BorderImgUrl","avatarUrl","name","distributionValue","onClick"]))),128))])]),_:1},8,["imgUrl"]),_t.value.length>0?(o(),m("div",Je,[(o(!0),m(z,null,A(_t.value,(a,x)=>(o(),F(y,{style:{"min-height":"26.4vw"},key:a.userId,imgUrl:i("RankingItem"),contentStyle:"padding: 0 10%",lazy:!0,immediate:x<2,onClick:k=>r(U)(a.userId)},{default:c(()=>[t("div",Xe,[t("div",Ze,l(a?.rank),1),t("img",{src:a?.avatar||"",alt:"",style:{display:"block",width:"13vw","aspect-ratio":"1/1","border-radius":"50%","object-fit":"cover"},onError:e[13]||(e[13]=(...k)=>r(D)&&r(D)(...k))},null,40,ti),t("div",ei,[t("div",ii,l(a?.nickname),1),t("div",ni,l(n.$t("user_id_prefix"))+" "+l(a?.account),1)])]),t("div",ai,[s(t("img",si,null,512),[[p]]),t("div",li,l(a?.quantity),1)])]),_:2},1032,["imgUrl","immediate","onClick"]))),128))])):Z("",!0),s(t("img",{src:i("RankingBottomBorder"),alt:"",width:"100%",style:{display:"block","margin-top":"-6vw",position:"relative","z-index":"2"}},null,8,oi),[[p]])])],512),[[B,q.value]]),s(t("div",ri,[t("div",di,[d(y,{style:{"min-height":"132.2vw"},imgUrl:i(v("RankingMain")),contentStyle:"padding: 25% 0 0;flex-direction: column;"},{default:c(()=>[d(y,{style:{"z-index":"0"},imgUrl:i("top1-3FrameDaily"),contentStyle:"flex-direction: column;padding: 17vw 9.5vw 7vw 10.2vw;justify-content: space-between;"},{default:c(()=>[t("div",ci,[d(dt,{ranking:"1",avatarUrl:b.value[0].avatar,name:b.value[0].nickname,distributionValue:b.value[0].quantity||"",style:{width:"40%"},onClick:e[14]||(e[14]=a=>r(U)(b.value[0].userId))},null,8,["avatarUrl","name","distributionValue"])]),t("div",ui,[d(dt,{ranking:"2",avatarUrl:b.value[1].avatar,name:b.value[1].nickname,distributionValue:b.value[1].quantity||"",style:{width:"38%"},onClick:e[15]||(e[15]=a=>r(U)(b.value[1].userId))},null,8,["avatarUrl","name","distributionValue"]),d(dt,{ranking:"3",avatarUrl:b.value[2].avatar,name:b.value[2].nickname,distributionValue:b.value[2].quantity||"",style:{width:"38%"},onClick:e[16]||(e[16]=a=>r(U)(b.value[2].userId))},null,8,["avatarUrl","name","distributionValue"])])]),_:1},8,["imgUrl"])]),_:1},8,["imgUrl"]),bt.value.length>0?(o(),m("div",vi,[(o(!0),m(z,null,A(bt.value,(a,x)=>(o(),F(y,{style:{"min-height":"26.4vw"},key:a.userId,imgUrl:i("RankingItem"),contentStyle:"padding: 0 10%",lazy:!0,immediate:x<2,onClick:k=>r(U)(a.userId)},{default:c(()=>[t("div",gi,[t("div",yi,l(a?.rank),1),t("img",{src:a?.avatar||"",alt:"",style:{display:"block",width:"13vw","aspect-ratio":"1/1","border-radius":"50%","object-fit":"cover"},onError:e[17]||(e[17]=(...k)=>r(D)&&r(D)(...k))},null,40,mi),t("div",hi,[t("div",pi,l(a?.nickname),1),t("div",fi,l(n.$t("user_id_prefix"))+" "+l(a?.account),1)])]),t("div",wi,[s(t("img",ki,null,512),[[p]]),t("div",_i,l(a?.quantity),1)])]),_:2},1032,["imgUrl","immediate","onClick"]))),128))])):Z("",!0),s(t("img",{src:i("RankingBottomBorder"),alt:"",width:"100%",style:{display:"block","margin-top":"-6vw",position:"relative","z-index":"2"}},null,8,bi),[[p]])])],512),[[B,G.value]])],512),[[B,N.value]]),s(t("div",xi,[t("div",Ui,[t("div",{style:{width:"40%",position:"relative"},onClick:e[18]||(e[18]=a=>nt("week"))},[d(y,{style:{"min-height":"8vw"},imgUrl:i("BtBg"),contentStyle:"padding-top: 1vw;",class:S({"grayscale-container":!q.value})},{default:c(()=>[t("div",Bi,l(r(V)("weekly_rewards")),1)]),_:1},8,["imgUrl","class"])]),t("div",{style:{width:"40%",position:"relative"},onClick:e[19]||(e[19]=a=>nt("daily"))},[d(y,{style:{"min-height":"8vw"},imgUrl:i("BtBg"),contentStyle:"padding-top: 1vw;",class:S({"grayscale-container":!G.value})},{default:c(()=>[t("div",Si,l(r(V)("daily_rewards")),1)]),_:1},8,["imgUrl","class"])])]),(o(!0),m(z,null,A(wt.value,(a,x)=>s((o(),m("div",{key:x,style:{position:"relative",width:"100%",margin:"4px 0 10px"}},[x==0?(o(),F(y,{key:0,style:{"min-height":"110.3vw"},imgUrl:kt.value[0],contentStyle:"display: grid;grid-template-columns: repeat(2, 1fr);gap: 2vw;padding: 28vw 4vw 8vw 37vw;"},{default:c(()=>[(o(!0),m(z,null,A(a.rewards,(k,$)=>(o(),m("div",{key:$,style:{width:"100%","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-between","align-items":"center"}},[t("div",Di,[t("img",{src:k.cover||"",alt:"",style:{display:"block",width:"70%","object-fit":"cover"},onError:rt=>r(Rt)(rt,k.type)},null,40,Ri)]),t("div",ji,[t("div",Ii,l(Ut(k.type,k)),1)])]))),128)),e[26]||(e[26]=t("div",{style:{position:"absolute",left:"3.5vw",bottom:"10vw",width:"28vw",display:"flex","justify-content":"center","align-items":"center"}},[t("div",{style:{color:"#f9e447","text-align":"center","font-size":"1.2em","font-weight":"900"}}," 7Days ")],-1))]),_:2},1032,["imgUrl"])):(o(),F(y,{key:1,style:{"min-height":"110.3vw"},imgUrl:kt.value[Number(a.rankRange)-1],contentStyle:"display: grid;grid-template-columns: repeat(3, 1fr);gap: 4vw;padding: 28vw 3vw 10vw;"},{default:c(()=>[(o(!0),m(z,null,A(a.rewards,(k,$)=>(o(),m("div",{key:$,style:_([{width:"100%"},$==3?"grid-row: 2;grid-column: 2;":""])},[t("div",Ti,[t("img",{src:k.cover||"",alt:"",style:{display:"block",width:"70%","object-fit":"cover"},onError:rt=>r(Rt)(rt,k.type)},null,40,Ci)]),t("div",$i,[t("div",zi,l(Ut(k.type,k)),1)])],4))),128))]),_:2},1032,["imgUrl"]))])),[[B,q.value]])),128)),(o(),m(z,null,A(3,(a,x)=>s(t("img",{src:i(`top${x+1}RewardDaily`),alt:"",style:{width:"100%",margin:"4px 0 10px"}},null,8,Ai),[[B,G.value]])),64))],512),[[B,Y.value]])]),N.value?(o(),m("div",Vi)):Z("",!0),N.value?(o(),F(y,{key:1,style:{"min-height":"24.33vw",position:"fixed",bottom:"0","z-index":"3"},imgUrl:i("myRankingBg"),contentStyle:"padding: 0 8%"},{default:c(()=>[t("div",Li,[t("div",Mi,l(it.value.rank||999),1),t("img",{src:it.value.avatar||"",alt:"",style:{display:"block",width:"15vw","aspect-ratio":"1/1","border-radius":"50%","object-fit":"cover"},onError:e[20]||(e[20]=(...a)=>r(D)&&r(D)(...a))},null,40,Ni),t("div",qi,[t("div",Fi,l(it.value.nickname),1)])]),t("div",Hi,[s(t("img",Ei,null,512),[[p]]),t("div",Gi,l(it.value.quantity||0),1)])]),_:1},8,["imgUrl"])):Z("",!0),d(Zt,{maskLayerShow:It.value,onClick:K},{default:c(()=>[t("div",{style:{width:"100vw",height:"100vh",display:"flex","justify-content":"center","align-items":"center"},onClick:K},[s(t("div",{onClick:e[21]||(e[21]=St(()=>{},["stop"]))},[d(y,{style:{"min-height":"156.33vw"},imgUrl:i(v("helpBg")),contentStyle:"inset: 15% 8% 3%;overflow-y: auto;display:block;"},{default:c(()=>[s(t("img",{src:i(v("helpInfo")),alt:"",style:{display:"block",width:"100%","object-fit":"cover","margin-bottom":"6vw"}},null,8,Pi),[[p]])]),_:1},8,["imgUrl"])],512),[[B,j.value]]),s(t("div",{onClick:e[22]||(e[22]=St(()=>{},["stop"]))},[d(y,{style:{"min-height":"147.2vw"},imgUrl:i(v("dailyPopUpNew")),contentStyle:"z-index: 0;"},{default:c(()=>[t("div",{style:{display:"block",position:"absolute","z-index":"9",width:"8vw",top:"3vw",right:"2vw",cursor:"pointer","-webkit-tap-highlight-color":"transparent","-webkit-touch-callout":"none","user-select":"none","touch-action":"manipulation"},onClick:K,onTouchend:K},[s(t("img",{src:i("closeBt"),alt:"",style:{display:"block",width:"100%","pointer-events":"none"}},null,8,Wi),[[p]])],32)]),_:1},8,["imgUrl"])],512),[[B,M.value]])])]),_:1},8,["maskLayerShow"])])]))])}}},ln=ct(Oi,[["__scopeId","data-v-3196cb78"]]);export{ln as default};
|