|
|
+import{l as e,B as a,m as t,q as o,a6 as l,a as s,w as n,M as r,W as i,o as m,f as u,a0 as c,u as d,a7 as g,i as p,h as v,F as f,r as y,j as h,t as _,a4 as b,a5 as x,Q as k}from"./index-BhbAoHBY.js";import{_ as C}from"./u-image.Dqn4ClQV.js";const I=e({__name:"game",setup(e){const{t:I}=a(),w=t(""),T=t(""),R=t(""),U=t(0),j=t([]);return o(()=>{(async()=>{let e=(await r()).data.list.filter(e=>Number(e.gameType)===Number(R.value));j.value=e[0].platforms[U.value],console.log(j.value)})()}),l(e=>{w.value=decodeURIComponent(e.name),R.value=decodeURIComponent(e.gameType),U.value=decodeURIComponent(e.gameIndex),T.value=decodeURIComponent(e.gameName)}),(e,a)=>{const t=C,o=p,l=c,r=i("global-ku-root");return m(),s(r,null,{default:n(()=>[u(l,{"nav-title":d(T),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"}},[u(o,{class:"roll-ball-section"},{default:n(()=>[u(o,{class:"other-games-flex"},{default:n(()=>[(m(!0),v(f,null,y(d(j).games,(e,a)=>(m(),s(o,{class:"other-game-item",key:a,onClick:a=>(e=>{let a={platType:j.value.platType,gameType:R.value,gameCode:e.gameCode};localStorage.getItem("youke_token")?b({title:I("试玩账户不可进入"),icon:"none"}):localStorage.getItem("token")?x(a).then(e=>{let a=e.data;k({title:I("提示"),content:I("确认进入并转入余额?"),success:e=>{e.confirm&&(window.location.href=a.url)}})}):b({title:I("请先登录"),icon:"none"})})(e)},{default:n(()=>[u(t,{src:e.logo,width:"120px",height:"120px","border-radius":"8px",mode:"aspectFit"},null,8,["src"]),u(o,{style:{"margin-top":"4px"}},{default:n(()=>[h(_(e.name),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1}),g("div",{style:{height:"calc(50px + env(safe-area-inset-bottom))"}})])]),_:1},8,["nav-title"])]),_:1})}}},[["__scopeId","data-v-5c7668e9"]]);export{I as default};
|