|
|
-import{k as e,A as a,l as t,p as o,a5 as l,a as s,w as n,L as r,V as i,o as u,e as c,Z as d,u as m,a6 as g,i as p,g as v,F as f,r as y,h,t as _,a3 as b,O as k,a4 as x}from"./index-DMfFvLXF.js";import{_ as C}from"./u-image.CMd1focx.js";const I=e({__name:"game",setup(e){const{t:I}=a(),w=t(""),T=t(""),R=t(""),U=t(0),N=t([]);return o(()=>{(async()=>{let e=(await r()).data.list.filter(e=>Number(e.gameType)===Number(R.value));N.value=e[0].platforms[U.value],console.log(N.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 u(),s(r,null,{default:n(()=>[c(l,{"nav-title":m(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"}},[c(o,{class:"roll-ball-section"},{default:n(()=>[c(o,{class:"other-games-flex"},{default:n(()=>[(u(!0),v(f,null,y(m(N).games,(e,a)=>(u(),s(o,{class:"other-game-item",key:a,onClick:a=>(e=>{let a={platType:N.value.platType,gameType:R.value,gameCode:e.gameCode};localStorage.getItem("youke_token")?b({title:I("试玩账户不可进入"),icon:"none"}):localStorage.getItem("token")?k({title:I("提示"),content:I("确认进入并转入余额?"),success:e=>{e.confirm&&x(a).then(e=>{window.location.href=e.data.url})}}):b({title:I("请先登录"),icon:"none"})})(e)},{default:n(()=>[c(t,{src:e.logo,width:"120px",height:"120px","border-radius":"8px",mode:"aspectFit"},null,8,["src"]),c(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-f3c260a2"]]);export{I as default};
|
|
|
+import{k as e,A as a,l as t,p as o,a5 as l,a as s,w as n,K as r,V as i,o as u,e as c,Z as d,u as m,a6 as g,i as p,g as v,F as f,r as y,h,t as _,a3 as b,N as k,a4 as x}from"./index-DoMJOAF9.js";import{_ as C}from"./u-image.DFKjYE-M.js";const I=e({__name:"game",setup(e){const{t:I}=a(),w=t(""),T=t(""),N=t(""),R=t(0),U=t([]);return o(()=>{(async()=>{let e=(await r()).data.list.filter(e=>Number(e.gameType)===Number(N.value));U.value=e[0].platforms[R.value],console.log(U.value)})()}),l(e=>{w.value=decodeURIComponent(e.name),N.value=decodeURIComponent(e.gameType),R.value=decodeURIComponent(e.gameIndex),T.value=decodeURIComponent(e.gameName)}),(e,a)=>{const t=C,o=p,l=d,r=i("global-ku-root");return u(),s(r,null,{default:n(()=>[c(l,{"nav-title":m(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"}},[c(o,{class:"roll-ball-section"},{default:n(()=>[c(o,{class:"other-games-flex"},{default:n(()=>[(u(!0),v(f,null,y(m(U).games,(e,a)=>(u(),s(o,{class:"other-game-item",key:a,onClick:a=>(e=>{let a={platType:U.value.platType,gameType:N.value,gameCode:e.gameCode};localStorage.getItem("youke_token")?b({title:I("试玩账户不可进入"),icon:"none"}):localStorage.getItem("token")?k({title:I("提示"),content:I("确认进入并转入余额?"),success:e=>{e.confirm&&x(a).then(e=>{window.location.href=e.data.url})}}):b({title:I("请先登录"),icon:"none"})})(e)},{default:n(()=>[c(t,{src:e.logo,width:"120px",height:"120px","border-radius":"8px",mode:"aspectFit"},null,8,["src"]),c(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-f3c260a2"]]);export{I as default};
|