diff --git a/luckydiamond/src/assets/css/PagesStyles/games-pages/crash.css b/luckydiamond/src/assets/css/PagesStyles/games-pages/crash.css
index 7f377fc..46d41b9 100644
--- a/luckydiamond/src/assets/css/PagesStyles/games-pages/crash.css
+++ b/luckydiamond/src/assets/css/PagesStyles/games-pages/crash.css
@@ -163,4 +163,18 @@
height: 300px;
}
-/* /Crash-Players */
\ No newline at end of file
+/* /Crash-Players */
+
+/* Notification */
+
+.notification-crash {
+ text-align: center;
+ top: 20%;
+ left: 50%;
+ position: absolute;
+ background: #000;
+ width: 200px;
+ height: 40px;
+}
+
+/* /Notification */
\ No newline at end of file
diff --git a/luckydiamond/src/pages/games-pages/CrashgamePage.vue b/luckydiamond/src/pages/games-pages/CrashgamePage.vue
index 91fbfa5..b5d463e 100644
--- a/luckydiamond/src/pages/games-pages/CrashgamePage.vue
+++ b/luckydiamond/src/pages/games-pages/CrashgamePage.vue
@@ -63,7 +63,9 @@
-
+
+
{{ notificationText }}
+
@@ -92,10 +94,12 @@ export default {
clickedBtn: null,
ErrorClick: false,
ErrorJoin: false,
+ notificationShow: false,
balance: 0,
amountDeposit: 0,
crashObject: '',
textError: '',
+ notificationText: '',
startGame: false,
}
},
@@ -246,6 +250,15 @@ export default {
return
}
+ else if (response === 'Success') {
+ this.notificationText = 'Успешное добавление в очередь'
+ this.notificationShow = true
+
+ setTimeout(() => {
+ this.notificationText = ''
+ this.notificationShow = false
+ }, 1000)
+ }
this.startGame = true
})
}
@@ -268,13 +281,19 @@ export default {
.then((response) => {
console.log(response)
this.startGame = false
+
+ if (response.startsWith('Win')) {
+ this.notificationText = 'Деньги успешно зачислены. Игра покинута.'
+ this.notificationShow = true
+
+ setTimeout(() => {
+ this.notificationText = ''
+ this.notificationShow = false
+ }, 1500)
+ }
+
this.updateUserMoney()
})
- // await GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken'))
- // .then((response) => {
- // this.balance = response.currentMoney
- // return eventBus.emit('Updatebalance')
- // })
}
},
async clickedBtnChoice(index, content) {