mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
fixed visual bug with start game on click max-btn
This commit is contained in:
@@ -25,6 +25,7 @@ export default {
|
|||||||
.then(response => {
|
.then(response => {
|
||||||
this.balance = response.currentMoney
|
this.balance = response.currentMoney
|
||||||
})
|
})
|
||||||
|
eventBus.emit('Updatebalance-saper')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -373,6 +373,14 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
eventBus.on('Updatebalance-saper', () => {
|
||||||
|
GetCurrentMoney(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
|
||||||
|
.then(response => {
|
||||||
|
this.balance = response
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
clickPlayButton() {
|
clickPlayButton() {
|
||||||
this.v$.$touch()
|
this.v$.$touch()
|
||||||
@@ -472,7 +480,12 @@ export default {
|
|||||||
if (content === 'max') {
|
if (content === 'max') {
|
||||||
await GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken'))
|
await GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken'))
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
this.amountDeposit = parseInt(response.currentMoney)
|
console.log(response.currentMoney, this.balance)
|
||||||
|
const responseBalance = response.currentMoney
|
||||||
|
|
||||||
|
if (responseBalance === this.balance) {
|
||||||
|
this.amountDeposit = parseInt(responseBalance)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user