diff --git a/luckydiamond/src/assets/css/PagesStyles/jackpot-history.css b/luckydiamond/src/assets/css/PagesStyles/jackpot-history.css index 79e077c..effce30 100644 --- a/luckydiamond/src/assets/css/PagesStyles/jackpot-history.css +++ b/luckydiamond/src/assets/css/PagesStyles/jackpot-history.css @@ -1,6 +1,5 @@ .jackpot-history__content { display: flex; - flex-wrap: wrap; max-width: 80%; max-height: 800px; overflow-y: auto; @@ -8,6 +7,9 @@ } .jackpot-history__element { + display: flex; + flex-direction: column; + flex-wrap: wrap; margin: 15px; } diff --git a/luckydiamond/src/assets/js/jackpot/JackpotLogic.js b/luckydiamond/src/assets/js/jackpot/JackpotLogic.js index ef1fa78..0adb1e8 100644 --- a/luckydiamond/src/assets/js/jackpot/JackpotLogic.js +++ b/luckydiamond/src/assets/js/jackpot/JackpotLogic.js @@ -85,3 +85,25 @@ export async function JoinJackpotGame(userData, amount) { console.log('Fetch error') } } + +export async function getJackpotHistoryGame () { + try { + const response = await fetch(`${BackendApiUrl}/GameJackpot/GetNewestJackpotGames`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json' + }, + redirect: "follow" + }) + + if (!response.ok) { + console.log('Fetch error:', response.status) + } + + console.log(response) + return await response.json() + } + catch (error) { + console.log('Fetch error') + } +} \ No newline at end of file diff --git a/luckydiamond/src/pages/JackopthistoryPage.vue b/luckydiamond/src/pages/JackopthistoryPage.vue index 52a9c37..1d5304e 100644 --- a/luckydiamond/src/pages/JackopthistoryPage.vue +++ b/luckydiamond/src/pages/JackopthistoryPage.vue @@ -8,44 +8,58 @@ t - - - - - - + + + + + + + + + {{ game.winnerUserName }} + + {{ game.winStake }} + + + + + + + Шанс {{ game.winnerPercentage.toFixed(2) }}% + + - - FUpir - - 1000 - - - - - - - Шанс 15.55% - - - - - + +