优化显示快速下单金额
This commit is contained in:
@@ -434,13 +434,17 @@
|
||||
get quickBetAmounts() {
|
||||
const min = this.minBet || 100;
|
||||
const max = this.maxBet || 100000;
|
||||
return [
|
||||
|
||||
// 生成阶梯:最小值, 10倍, 100倍, 500倍, 最大值
|
||||
let steps = [
|
||||
min,
|
||||
Math.min(min * 5, max),
|
||||
Math.min(min * 10, max),
|
||||
Math.min(min * 50, max),
|
||||
Math.min(min * 100, max)
|
||||
].filter((v, i, a) => a.indexOf(v) === i);
|
||||
min * 10,
|
||||
min * 100,
|
||||
min * 500,
|
||||
max
|
||||
].map(v => Math.min(v, max));
|
||||
|
||||
return [...new Set(steps)].sort((a, b) => a - b).slice(0, 5);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user