|
|
|
|
+import{l as e,B as a,m as t,q as s,am as l,a as o,w as n,L as r,V as i,o as c,f as u,Z as d,u as m,a8 as g,h as p,F as f,r as y,i as h,a3 as b,a4 as v,P as _}from"./index-DBdatRiR.js";import{_ as k}from"./u-image.D8c5Tolj.js";const x=e({__name:"index",setup(e){const{t:x}=a(),w=t(""),T=t(""),I=t([]);return s(()=>{(async()=>{const e=(await r()).data.list.filter(e=>Number(e.gameType)===Number(T.value));I.value=e})()}),l(e=>{w.value=decodeURIComponent(e.name),T.value=decodeURIComponent(e.gameType)}),(e,a)=>{const t=k,s=h,l=d,r=i("global-ku-root");return c(),o(r,null,{default:n(()=>[u(l,{"nav-title":m(w),style:{background:"linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)),\r\n url('/static/images/enter-bg.png') no-repeat","background-size":"cover"}},{default:n(()=>[g("div",{style:{padding:"24rpx",height:"100%","overflow-y":"auto"}},[(c(!0),p(f,null,y(m(I),(e,a)=>(c(),o(s,{class:"roll-ball-section",key:"other-"+a},{default:n(()=>[u(s,{class:"other-games-flex"},{default:n(()=>[(c(!0),p(f,null,y(e.platforms,(a,l)=>(c(),o(s,{class:"other-game-item",key:l,onClick:t=>((e,a)=>{let t={platType:e.platType,gameType:a};localStorage.getItem("youke_token")?b({title:x("试玩账户不可进入"),icon:"none"}):localStorage.getItem("token")?v(t).then(e=>{_({title:x("提示"),content:x("确认进入并转入余额?"),success:()=>{window.location.href=e.data.url}})}):b({title:x("请先登录"),icon:"none"})})(a,e.gameType)},{default:n(()=>[u(t,{src:a.logo,width:"120px",height:"120px","border-radius":"8px",mode:"aspectFit"},null,8,["src"])]),_:2},1032,["onClick"]))),128))]),_:2},1024)]),_:2},1024))),128)),g("div",{style:{height:"calc(50px + env(safe-area-inset-bottom))"}})])]),_:1},8,["nav-title"])]),_:1})}}},[["__scopeId","data-v-99e8b3d8"]]);export{x as default};
|