补充前端模块状态说明注释
This commit is contained in:
@@ -108,6 +108,7 @@ export async function loadAdminCurrentLossCoverEvent() {
|
||||
return;
|
||||
}
|
||||
|
||||
// 待开始、进行中和待结算活动允许管理员手动结束,已结束/已关闭状态不再展示按钮。
|
||||
const canClose = ["scheduled", "active", "settlement_pending"].includes(event.status);
|
||||
const closeButton = canClose
|
||||
? `<button type="button" data-blc-close-current="${Number(event.id)}" style="margin-top:10px; padding:7px 14px; border:none; border-radius:999px; background:#dc2626; color:#fff; font-size:12px; font-weight:bold; cursor:pointer;">立即结束</button>`
|
||||
@@ -145,6 +146,7 @@ export async function openAdminBaccaratLossCoverModal() {
|
||||
}
|
||||
|
||||
const now = new Date();
|
||||
// 默认活动 30 分钟,领奖截止延后 24 小时,便于管理员打开后直接微调。
|
||||
const end = new Date(now.getTime() + 30 * 60 * 1000);
|
||||
const claimDeadline = new Date(end.getTime() + 24 * 60 * 60 * 1000);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user