mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
I can't
This commit is contained in:
@@ -176,21 +176,18 @@
|
|||||||
height: 50px;
|
height: 50px;
|
||||||
border-radius: 18px;
|
border-radius: 18px;
|
||||||
margin-left: 455px;
|
margin-left: 455px;
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: auto auto auto;
|
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid-item {
|
.crash-history__component {
|
||||||
background-color: rgba(255, 255, 255, 0.8);
|
background: linear-gradient(#18213E, #263873);
|
||||||
border: 1px solid rgba(0, 0, 0, 0.8);
|
width: 12%;
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.crash-history__element {
|
|
||||||
height: 80%;
|
height: 80%;
|
||||||
border-radius: 18px;
|
display: inline;
|
||||||
background: rgba(34, 37, 47, 0.8);
|
margin: auto;
|
||||||
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Crash-Players */
|
/* Crash-Players */
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
import { BackendApiUrl } from '@/properties/Сonfig.js';
|
import { BackendApiUrl } from '@/properties/Сonfig.js';
|
||||||
import { GetCookie } from "@/assets/js/storage/CookieStorage";
|
import { GetCookie } from "@/assets/js/storage/CookieStorage";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export async function GetReferralData () {
|
export async function GetReferralData () {
|
||||||
|
|
||||||
const myHeaders = new Headers();
|
const myHeaders = new Headers();
|
||||||
|
|||||||
@@ -1,5 +1,24 @@
|
|||||||
import { BackendApiUrl } from '@/properties/Сonfig.js';
|
import { BackendApiUrl } from '@/properties/Сonfig.js';
|
||||||
|
|
||||||
|
|
||||||
|
export async function CrashHistory () {
|
||||||
|
const myHeaders = new Headers();
|
||||||
|
myHeaders.append("Cookie", "ARRAffinity=a6e48b9e9d2653435be7b61998d8624b44115214104213d6c8b8c526cc56dc70; ARRAffinitySameSite=a6e48b9e9d2653435be7b61998d8624b44115214104213d6c8b8c526cc56dc70");
|
||||||
|
|
||||||
|
const requestOptions = {
|
||||||
|
method: "POST",
|
||||||
|
headers: myHeaders,
|
||||||
|
redirect: "follow"
|
||||||
|
};
|
||||||
|
|
||||||
|
fetch("https://spsystemcore20231122004605.azurewebsites.net/api/GameCrash/GetCrashXHistory", requestOptions)
|
||||||
|
.then((response) => response.text())
|
||||||
|
.then((result) => console.log(result))
|
||||||
|
.catch((error) => console.error(error));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export async function JoinCrashGame(userData, amount) {
|
export async function JoinCrashGame(userData, amount) {
|
||||||
const data = {
|
const data = {
|
||||||
userCredentials: {
|
userCredentials: {
|
||||||
|
|||||||
@@ -52,27 +52,36 @@
|
|||||||
<section class="crash-game__players" v-if="crashObject && crashObject.Players">
|
<section class="crash-game__players" v-if="crashObject && crashObject.Players">
|
||||||
<div class="crash-game-players__content">
|
<div class="crash-game-players__content">
|
||||||
<div class="crash__history">
|
<div class="crash__history">
|
||||||
<div class="crash-history__element"><br>
|
<div class="crash-history__component"> <h2>{{ game.winX }}</h2> </div>
|
||||||
В РАЗРАБОТКЕ
|
<div class="crash-history__component"></div>
|
||||||
</div>
|
<div class="crash-history__component"></div>
|
||||||
|
<div class="crash-history__component"></div>
|
||||||
|
<div class="crash-history__component"></div>
|
||||||
|
<div class="crash-history__component"></div>
|
||||||
|
<div class="crash-history__component"></div>
|
||||||
|
<div class="crash-history__component"></div>
|
||||||
</div>
|
</div>
|
||||||
<ul class="user-list" v-if="crashObject.Players.length">
|
<ul class="user-list" v-if="crashObject.Players.length">
|
||||||
<li class="user-crash" v-for="(player, index) in crashObject.Players.sort((a, b) => b.Bid - a.Bid)" :key="index">
|
<li class="user-crash" v-for="(player, index) in crashObject.Players.sort((a, b) => b.Bid - a.Bid)" :key="index">
|
||||||
<div class="user-crash-content" :class="{ 'user-crash-content__lose' : crashObject.Status === 'GameEnd' && player.WinningX <= 0, 'user-crash-content__win' : player.WinningX >= 1 }">
|
<div class="user-crash-content" :class="{ 'user-crash-content__lose' : crashObject.Status === 'GameEnd' && player.WinningX <= 0, 'user-crash-content__win' : player.WinningX >= 1 }">
|
||||||
|
|
||||||
<div class="user-name-crash">
|
<div class="user-name-crash">
|
||||||
<img class="user-crash__icon" :src="`https://avatar.spworlds.ru/face/55/${player.UserName}`">
|
<img class="user-crash__icon" :src="`https://avatar.spworlds.ru/face/55/${player.UserName}`">
|
||||||
<h2>{{ player.UserName }}</h2>
|
<h2>{{ player.UserName }}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="user-bid-crash">
|
<div class="user-bid-crash">
|
||||||
<h2 v-if="player.WinningMoney >= 1" class="wingame__win-bid-crash">{{ player.WinningMoney.toFixed(2) }}</h2>
|
<h2 v-if="player.WinningMoney >= 1" class="wingame__win-bid-crash">{{ player.WinningMoney.toFixed(2) }}</h2>
|
||||||
<h2 v-else>{{ player.Bid }}</h2>
|
<h2 v-else>{{ player.Bid }}</h2>
|
||||||
<img src="@/assets/icons-games/saper-game/icon-diamond-ore-saper.png">
|
<img src="@/assets/icons-games/saper-game/icon-diamond-ore-saper.png">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="user-game-status-crash">
|
<div class="user-game-status-crash">
|
||||||
<h2 class="ingame-crash" v-if="crashObject.Status === 'WaitingForPlayers' && player.WinningX <= 1 || crashObject.Status === 'InGame' && player.WinningX <= 0">В игре</h2>
|
<h2 class="ingame-crash" v-if="crashObject.Status === 'WaitingForPlayers' && player.WinningX <= 1 || crashObject.Status === 'InGame' && player.WinningX <= 0">В игре</h2>
|
||||||
<h2 class="lostgame-crash" v-if="crashObject.Status === 'GameEnd' && player.WinningX <= 0">Проиграл</h2>
|
<h2 class="lostgame-crash" v-if="crashObject.Status === 'GameEnd' && player.WinningX <= 0">Проиграл</h2>
|
||||||
<h2 class="wingame-crash" v-if="player.WinningX >= 1">{{ player.WinningX.toFixed(2) }}x</h2>
|
<h2 class="wingame-crash" v-if="player.WinningX >= 1">{{ player.WinningX.toFixed(2) }}x</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -97,12 +106,13 @@ import SaperNumbers from "@/mocks/SaperNumbers";
|
|||||||
import {GetCurrentMoney} from "@/assets/js/rest/RestMethods";
|
import {GetCurrentMoney} from "@/assets/js/rest/RestMethods";
|
||||||
import {GetCookie} from "@/assets/js/storage/CookieStorage";
|
import {GetCookie} from "@/assets/js/storage/CookieStorage";
|
||||||
import {eventBus} from "@/main";
|
import {eventBus} from "@/main";
|
||||||
import {ExitAndTakeMoneyFromCrashGame, JoinCrashGame} from "@/assets/js/games/crash/CrashAPI";
|
import {ExitAndTakeMoneyFromCrashGame, JoinCrashGame, CrashHistory} from "@/assets/js/games/crash/CrashAPI";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { HeaderComponent, AsideBarComponent, ChatComponent, CrashGraphComponent },
|
components: { HeaderComponent, AsideBarComponent, ChatComponent, CrashGraphComponent },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
winX,
|
||||||
SaperNumbers,
|
SaperNumbers,
|
||||||
clickedBtn: null,
|
clickedBtn: null,
|
||||||
ErrorClick: false,
|
ErrorClick: false,
|
||||||
@@ -231,6 +241,10 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
props: ["payments"],
|
||||||
|
async created() {
|
||||||
|
this.CHistory = await CrashHistory();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async updateUserMoney() {
|
async updateUserMoney() {
|
||||||
if (GetCookie('AUTHTOKEN') && GetCookie('SearchToken')) {
|
if (GetCookie('AUTHTOKEN') && GetCookie('SearchToken')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user