diff --git a/luckydiamond/src/assets/css/PagesStyles/games-pages/crash.css b/luckydiamond/src/assets/css/PagesStyles/games-pages/crash.css
index 883c62a..ce268df 100644
--- a/luckydiamond/src/assets/css/PagesStyles/games-pages/crash.css
+++ b/luckydiamond/src/assets/css/PagesStyles/games-pages/crash.css
@@ -113,9 +113,17 @@
border-radius: 10px;
width: 300px;
height: 60px;
- font-family: 'Montserrat Alternates';
+ font-family: 'Inter';
font-weight: 700;
- font-size: 16px;
+ font-size: 18px;
+}
+
+.claim-btn-crash__prize {
+ background: #4E5EF2 !important;
+}
+
+.waiting-btn-crash {
+ background: #3D3F48 !important;
}
.crash-window__line {
diff --git a/luckydiamond/src/pages/games-pages/CrashgamePage.vue b/luckydiamond/src/pages/games-pages/CrashgamePage.vue
index 7acacd4..02afbe5 100644
--- a/luckydiamond/src/pages/games-pages/CrashgamePage.vue
+++ b/luckydiamond/src/pages/games-pages/CrashgamePage.vue
@@ -33,8 +33,9 @@
{{ textError }}
-
-
+
+
+
@@ -113,6 +114,7 @@ export default {
crashObject: '',
textError: '',
startGame: false,
+ prizeUser: 0,
}
},
setup() {
@@ -130,8 +132,13 @@ export default {
console.error(e)
}
+ if (this.crashObject.CurrentX !== null && this.crashObject.Players.some(player => player.UserName === GetCookie('SpUserName'))) {
+ this.getUserPrizer()
+ }
+
if (this.crashObject.Status === 'GameEnd' && this.startGame === true && this.crashObject.Players.some(player => player.UserName === GetCookie('SpUserName'))) {
this.startGame = false
+ this.prizeUser = 0
this.updateUserMoney()
}
if (
@@ -231,6 +238,17 @@ export default {
})
}
},
+ async getUserPrizer() {
+ const currentUser = this.crashObject.Players.find(player => player.UserName === GetCookie('SpUserName'));
+
+ if (currentUser) {
+ setTimeout(async () => {
+ this.prizeUser = currentUser.Bid * this.crashObject.CurrentX
+ }, 100)
+ } else {
+ return 0
+ }
+ },
async clickPlayBtn() {
this.v$.$touch()