PageSourceSearch

http://leniu.com/_nuxt/DJIfR7Az.js

js leniu.com collected 2026-10-08 16:06:38 UTC 7,538 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CrEEREdI.js","./zvn0cNGl.js","./entry.svzjQdmQ.css"])))=>i.map(i=>d[i]);
2import{e as D,h as R,f as U,o as d,m as M,w as y,a as e,b as x,u as r,c as h,F as B,i as G,p as N,k as X,r as f,l as E,_ as z,q as te,s as A,v as se,t as q,n as ae,d as oe,x as ne}from"./zvn0cNGl.js";import{_ as le}from"./D5wWsRGa.js";import{u as H,_ as J}from"./CrCj67ZY.js";import{S as K,a as Q}from"./jktBE6xP.js";import{A as W,P as ie}from"./ehYkOlr0.js";import{t as I,a as F,b as re}from"./_E0dZalI.js";/* empty css        */const ce={class:"games-swiper-container"},ue={class:"games-swiper-box"},de={class:"game-card"},me=["src"],ve=["src"],_e=["href"],pe=D({__name:"GameSwiper",async setup(O){let u,b;const a=f(0),n=f(),{data:w}=([u,b]=R(()=>H("getGames",()=>$fetch("/api/commom/getGameList"))),u=await u,b(),u),$=f([]),l=E(()=>w.value||[]),p=l.value.length*2;for(let m=0;m<p;m++)$.value.push({...l.value[m%l.value.length],id:m});U(()=>{[...new Set(l.value.map(v=>I(v.card_effect_url)).filter(Boolean))].forEach(v=>{const c=new Image;c.src=v})});const L=m=>{var c;const v=Number((c=m.slides[m.activeIndex])==null?void 0:c.dataset.swiperSlideIndex);a.value=v};return(m,v)=>{const c=J;return d(),M(c,null,{default:y(()=>[e("div",ce,[v[0]||(v[0]=e("div",{class:"games-swiper-mask"},null,-1)),e("div",ue,[x(r(K),{ref_key:"swiperRef",ref:n,"slides-per-view":7.8,"space-between":0,loop:!0,"initial-slide":0,"centered-slides":!0,autoplay:{delay:2500},"slide-to-clicked-slide":!0,"loop-fill-group-with-blank":!0,modules:[r(W)],onSlideChange:L,class:"games-swiper"},{default:y(()=>[(d(!0),h(B,null,G($.value,(t,g)=>(d(),M(r(Q),{key:t.id,class:"slide-item"},{default:y(()=>[e("div",de,[e("img",{src:r(I)(t.card_url),class:N(["game-image game-image-normal",{"is-hidden":a.value===g}])},null,10,me),e("img",{src:r(I)(t.card_effect_url),class:N(["game-image game-image-effect",{"is-visible":a.value===g}])},null,10,ve),r(F)(t.url)?(d(),h("a",{key:0,class:"game-link",href:r(F)(t.url),target:"_blank",rel:"noopener noreferrer"},null,8,_e)):X("",!0)])]),_:2},1024))),128))]),_:1},8,["modules"])])])]),_:1})}}}),fe=z(pe,[["__scopeId","data-v-476f51ff"]]),ge={class:"game-showcase"},he={class:"tabs-slider-wrapper"},we=["aria-label"],ye={class:"content-wrapper"},be={class:"tabs-section"},$e={class:"tabs-container"},ke=["onClick"],Se=D({__name:"GameShowcase",async setup(O){let u,b;const{data:a}=([u,b]=R(()=>H("getLifeData",()=>$fetch("/api/home/getLifeData"))),u=await u,b(),u),n=f(0),w=f(0),$=f(!1),l=f(null),p=f([]),L=f(n.value),m=E(()=>{var o;if(!a.value||!a.value[n.value])return{description:""};const s=(o=a.value[n.value].recommend)==null?void 0:o[w.value];return{description:(s==null?void 0:s.description)||""}}),v=i=>{const s=I(i);if(!s)return;const o=new Image;o.src=s},c=()=>{a.value&&a.value.forEach(i=>{var s;(s=i.recommend)==null||s.forEach(o=>{o.img&&v(o.img)})})},t=(i,s)=>{i&&(p.value[s]=i)},g=i=>{var s,o,S;return((o=(s=p.value[i])==null?void 0:s.$el)==null?void 0:o.swiper)||((S=p.value[i])==null?void 0:S.swiper)},V=async i=>{var o;if(i===n.value)return;l.value&&clearTimeout(l.value),L.value=n.value,p.value.forEach((S,C)=>{var _;const k=g(C);(_=k==null?void 0:k.autoplay)==null||_.stop()}),w.value=0,n.value=i,await ae();const s=g(i);s&&(s.slideTo(0,0),(o=s.autoplay)==null||o.start())},j=(i,s)=>{if(s!==n.value||(w.value=i.realIndex,l.value&&clearTimeout(l.value),!a.value||!a.value[s]))return;const o=a.value[s].recommend||[];i.realIndex===o.length-1&&!$.value&&(l.value=setTimeout(()=>{const C=(n.value+1)%a.value.length;V(C)},3e3))},Y=()=>{$.value=!0,l.value&&clearTimeout(l.value)},Z=()=>{if($.value=!1,!a.value||!a.value[n.value])return;const i=a.value[n.value].recommend||[];w.value===i.length-1&&(l.value=setTimeout(()=>{const o=(n.value+1)%a.value.length;V(o)},3e3))};return U(()=>{c()}),te(()=>{l.value&&clearTimeout(l.value),p.value.forEach((i,s)=>{const o=g(s);o&&o.destroy()})}),(i,s)=>{var S,C;const o=J;return d(),h("div",ge,[e("div",{class:"image-carousel",onMouseenter:Y,onMouseleave:Z},[e("div",he,[e("div",{class:"tabs-slider",style:A({transform:`translateX(-${n.value*(100/(((S=r(a))==null?void 0:S.length)||1))}%)`,width:`${(((C=r(a))==null?void 0:C.length)||1)*100}%`})},[x(o,null,{default:y(()=>[(d(!0),h(B,null,G(r(a),(k,_)=>{var P;return d(),h("div",{key:`swiper-${_}`,class:N(["swiper-container",{"visible-tab":_===n.value,"hidden-tab":_!==n.value}]),style:A({width:`${100/(((P=r(a))==null?void 0:P.length)||1)}%`})},[x(r(K),{ref_for:!0,ref:T=>t(T,_),"slides-per-view":1,"space-between":0,loop:!0,autoplay:{delay:3e3},pagination:{clickable:!0},"preload-images":!1,modules:[r(W),r(ie)],onSlideChange:T=>j(T,_),class:"showcase-swiper"},{default:y(()=>[(d(!0),h(B,null,G(k.recommend,(T,ee)=>(d(),M(r(Q),{key:ee,class:"slide-item"},{default:y(()=>[e("div",{class:"carousel-image",style:A({backgroundImage:r(re)(T.img)}),"aria-label":`${k.name} - ${T.title}`},null,12,we)]),_:2},1024))),128))]),_:2},1032,["modules","onSlideChange"])],6)}),128))]),_:1})],4)])],32),e("div",ye,[s[1]||(s[1]=e("div",{class:"content-icon"},null,-1)),se([n.value,w.value],()=>(d(),h("div",{class:"content-section"},[oe(q(m.value.description),1)])),s,0)]),e("div",be,[e("div",$e,[s[2]||(s[2]=e("div",{class:"tabs-dirver"},null,-1)),(d(!0),h(B,null,G(r(a),(k,_)=>(d(),h("button",{key:_,class:N(["tab-button",{active:n.value===_}]),onClick:P=>V(_)},q(k.name),11,ke))),128))])])])}}}),xe=z(Se,[["__scopeId","data-v-d62236a8"]]),Ce={class:"home-page"},Te={class:"kv"},Ie=["src","poster"],Le={class:"content"},Ve={class:"content-game"},Ee={class:"sub-title"},Be={class:"content-game-swiper"},Ge={class:"content-life"},Me={class:"sub-title"},Ne={class:"showcase-section"},je={class:"join-section"},Pe={class:"join-left"},Ae=D({__name:"index",async setup(O){let u,b;const{data:a}=([u,b]=R(()=>H("homeVideo",()=>$fetch("/api/commom/getVideo",{query:{abbreviation:"home_banner"}}))),u=await u,b(),u),n=E(()=>{var c,t;return((t=(c=a.value)==null?void 0:c.recommend)==null?void 0:t[0])||{}}),w=E(()=>I(n.value.video)),$=E(()=>I(n.value.thumb)),l=f(!1),p=f(),L=()=>{l.value=!0},m=()=>{l.value=!0},v=c=>{l.value=!0};return U(async()=>{p.value&&p.value.readyState>=3&&(l.value=!0);try{const{initNews:c}=await ne(async()=>{const{initNews:t}=await import("./CrEEREdI.js");return{initNews:t}},__vite__mapDeps([0,1,2]),import.meta.url);await c(),console.log("协议数据初始化完成")}catch(c){console.error("协议数据初始化失败:",c)}}),(c,t)=>{const g=le,V=fe,j=xe;return d(),h("div",Ce,[e("div",Te,[e("video",{ref_key:"homeVideo",ref:p,src:r(w),poster:r($),autoplay:"",loop:"",muted:"",onCanplay:L,onError:v,onLoadedmetadata:m},null,40,Ie),t[0]||(t[0]=e("div",{class:"kv-slg"},null,-1))]),e("div",Le,[e("div",Ve,[e("div",Ee,[t[2]||(t[2]=e("div",{class:"game-title-text"},null,-1)),x(g,{to:"/game"},{default:y(()=>[...t[1]||(t[1]=[e("div",{class:"more"},null,-1)])]),_:1})])]),e("div",Be,[x(V)]),t[8]||(t[8]=e("div",{class:"home-divide"},null,-1)),e("div",Ge,[e("div",Me,[t[4]||(t[4]=e("div",{class:"lift-title-text"},null,-1)),x(g,{to:"/culture"},{default:y(()=>[...t[3]||(t[3]=[e("div",{class:"more"},null,-1)])]),_:1})])]),e("div",Ne,[r(l)?(d(),M(j,{key:0})):X("",!0)]),e("div",je,[e("div",Pe,[t[6]||(t[6]=e("div",{class:"join-title"},null,-1)),x(g,{to:"/join"},{default:y(()=>[...t[5]||(t[5]=[e("div",{class:"join-btn"},null,-1)])]),_:1}
2)]),t[7]||(t[7]=e("div",{class:"join-right"},[e("div",{class:"join-img"})],-1))])])])}}}),Fe=z(Ae,[["__scopeId","data-v-f992bcf4"]]);export{Fe as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.