|
|
|
|
+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 d,u as c,a7 as g,i as p,h as v,F as f,r as b,j as y,t as h,a4 as _,Q as x,a5 as k}from"./index-B1IqfjRo.js";import{_ as C}from"./u-image.CZ0xoo4z.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=d,r=i("global-ku-root");return m(),s(r,null,{default:n((()=>[u(l,{"nav-title":c(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,b(c(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")?_({title:I("试玩账户不可进入"),icon:"none"}):localStorage.getItem("token")?x({title:I("提示"),content:I("确认进入并转入余额?"),success:e=>{e.confirm&&k(a).then((e=>{window.location.href=e.data.url}))}}):_({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((()=>[y(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-6b6eb760"]]);export{I as default};
|