优化中奖,后台新增彩金池实时显示

This commit is contained in:
2026-03-10 18:53:57 +08:00
parent 54aa0bd34f
commit 84d499145d
4 changed files with 117 additions and 27 deletions

View File

@@ -14,10 +14,22 @@
<span class="text-gray-500">池子名称</span>
<span>{{ pool.name }}</span>
</div>
<div class="flex items-center gap-2">
<span class="text-gray-500">池子盈利</span>
<span class="font-mono text-lg" :class="profitAmountClass">{{ displayProfitAmount }}</span>
<span class="text-gray-400 text-sm">实时不可修改</span>
<div class="profit-row mb-3">
<div class="flex items-center gap-2">
<span class="text-gray-500">彩金池盈利profit_amount</span>
<span class="font-mono text-lg" :class="profitAmountClass">{{ displayProfitAmount }}</span>
<span class="realtime-badge">实时</span>
</div>
<div class="profit-calc-hint">
计算方式每局抽奖累加 (100 该局中奖档位 real_ev)弹窗打开期间每 2 秒自动刷新
</div>
</div>
<div class="tip-block">
<div class="tip-title">抽奖档位规则</div>
<div class="tip-content">
当彩金池盈利 <strong>低于安全线</strong> <strong>玩家</strong> T*_weight 权重抽取抽奖档位
当彩金池盈利 <strong>高于或等于安全线</strong> <strong>当前彩金池</strong> T*_weight 权重抽取档位
</div>
</div>
</div>
<el-form ref="formRef" :model="formData" :rules="rules" label-width="120px">
@@ -233,4 +245,48 @@
.pool-info {
padding: 8px 0;
}
.profit-row {
margin-bottom: 8px;
}
.profit-calc-hint {
margin-top: 4px;
font-size: 12px;
color: var(--el-text-color-secondary);
line-height: 1.4;
}
.realtime-badge {
font-size: 11px;
padding: 2px 6px;
border-radius: 4px;
background: var(--el-color-success-light-9);
color: var(--el-color-success);
}
.tip-block {
margin-top: 12px;
padding: 10px 12px;
background: var(--el-fill-color-light);
border-radius: 6px;
border-left: 3px solid var(--el-color-primary);
}
.tip-title {
font-size: 13px;
font-weight: 600;
color: var(--el-text-color-primary);
margin-bottom: 6px;
}
.tip-content {
font-size: 12px;
color: var(--el-text-color-regular);
line-height: 1.5;
}
.tip-content strong {
color: var(--el-color-primary);
}
</style>