mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
added logic for setvalue timer in crash
This commit is contained in:
@@ -74,6 +74,7 @@ import '@/assets/css/PagesStyles/games-pages/crash.css'
|
||||
import SaperNumbers from "@/mocks/SaperNumbers";
|
||||
import {GetCurrentMoney} from "@/assets/js/rest/RestMethods";
|
||||
import {GetCookie} from "@/assets/js/storage/CookieStorage";
|
||||
import {eventBus} from "@/main";
|
||||
|
||||
export default {
|
||||
components: { HeaderComponent, AsideBarComponent, ChatComponent, CrashGraphComponent },
|
||||
@@ -81,12 +82,26 @@ export default {
|
||||
return {
|
||||
SaperNumbers,
|
||||
amountDeposit: 0,
|
||||
autoRatio: 0
|
||||
autoRatio: 0,
|
||||
timerGame: ''
|
||||
}
|
||||
},
|
||||
setup() {
|
||||
return { v$: useVuelidate() }
|
||||
},
|
||||
mounted() {
|
||||
eventBus.on('crash', (dataCrash) => {
|
||||
try {
|
||||
const dataCrashParse = JSON.parse(dataCrash)
|
||||
|
||||
this.timerGame = dataCrashParse.WaitingTime
|
||||
console.log(this.timerGame)
|
||||
}
|
||||
catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
})
|
||||
},
|
||||
validations() {
|
||||
return {
|
||||
amountDeposit: { required, numeric, minValue: minValue(1), maxValue: maxValue(100), integer },
|
||||
|
||||
Reference in New Issue
Block a user