mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
fixed bug with max-btn
This commit is contained in:
@@ -235,19 +235,44 @@ export default {
|
|||||||
let index
|
let index
|
||||||
switch (DepositCount) {
|
switch (DepositCount) {
|
||||||
case 1:
|
case 1:
|
||||||
index = 0
|
if (parseInt(this.balance) === DepositCount) {
|
||||||
|
index = 5
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
index = 0
|
||||||
|
}
|
||||||
break
|
break
|
||||||
case 5:
|
case 5:
|
||||||
index = 1
|
if (parseInt(this.balance) === DepositCount) {
|
||||||
|
index = 5
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
index = 1
|
||||||
|
}
|
||||||
break
|
break
|
||||||
case 10:
|
case 10:
|
||||||
index = 2
|
if (parseInt(this.balance) === DepositCount) {
|
||||||
|
index = 5
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
index = 2
|
||||||
|
}
|
||||||
break
|
break
|
||||||
case 50:
|
case 50:
|
||||||
index = 3
|
if (parseInt(this.balance) === DepositCount) {
|
||||||
|
index = 5
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
index = 3
|
||||||
|
}
|
||||||
break
|
break
|
||||||
case 100:
|
case 100:
|
||||||
index = 4
|
if (parseInt(this.balance) === DepositCount) {
|
||||||
|
index = 5
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
index = 4
|
||||||
|
}
|
||||||
break
|
break
|
||||||
case parseInt(this.balance):
|
case parseInt(this.balance):
|
||||||
index = 5
|
index = 5
|
||||||
|
|||||||
Reference in New Issue
Block a user