From 706ccf5f798ed6bc9d8d47ae74b0168575ff983a Mon Sep 17 00:00:00 2001 From: Kostya Date: Thu, 25 Jan 2024 19:45:13 +0300 Subject: [PATCH] delete comments and added logic for notification end-game --- .../src/pages/games-pages/SapergamePage.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/luckydiamond/src/pages/games-pages/SapergamePage.vue b/luckydiamond/src/pages/games-pages/SapergamePage.vue index bac9942..e269254 100644 --- a/luckydiamond/src/pages/games-pages/SapergamePage.vue +++ b/luckydiamond/src/pages/games-pages/SapergamePage.vue @@ -216,7 +216,6 @@ export default { const maxCircles = 25 - this.amountCrystals if (this.gamesCircle < maxCircles && this.gameStart !== false) { - console.log(value) this.offEventPointers = false let AnswerServer @@ -230,7 +229,6 @@ export default { findIndex = Math.ceil(X_Cordinates / 5) * 5 findY = Math.ceil(findIndex / 5) - 1 findX = X_Cordinates - findIndex + 4 - console.log(findX, findY) } else if (X_Cordinates <= 5) { findX = X_Cordinates - 1 @@ -253,7 +251,6 @@ export default { .then(response => { AnswerServer = response this.winningAmount = response.Item1.WinningMoney - console.log(response.Item1.WinningMoney) }) } catch (e) { @@ -269,6 +266,11 @@ export default { this.gameStart = false this.winningAmount = 0 this.flippedCards = [] + + this.ValidationPlay.endGame = true + setTimeout(() => { + this.ValidationPlay.endGame = false + }, 1200) } } @@ -356,11 +358,11 @@ export default { } } }, - validationCheck() { - if (this.ValidationPlay.CrystalValidate === true && this.ValidationPlay.DiamondValidate === true) { - return true - } - }, + // validationCheck() { + // if (this.ValidationPlay.CrystalValidate === true && this.ValidationPlay.DiamondValidate === true) { + // return true + // } + // }, playNotification() { this.ValidationPlay.startGame = true setTimeout(() => {