龙虎榜
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 47s

This commit is contained in:
TJH 2025-12-31 15:20:50 +08:00
parent f6ead2deed
commit 9afb414503
2 changed files with 11 additions and 1 deletions

View File

@ -119,7 +119,7 @@ export class RewardList extends Component {
this.setRewardRadioBtn(type); this.setRewardRadioBtn(type);
if (!this.isTypeAvailable(type)) { if (!this.isTypeAvailable(type) || SlotRankingDataManager.instance.getRankListStatusByType(type) !== 0) {
console.log(`${type} 奖励榜单活动未开启`); console.log(`${type} 奖励榜单活动未开启`);
this.rewardLoadingNode.active = false; this.rewardLoadingNode.active = false;
this.showActivityNotOpenTip(); this.showActivityNotOpenTip();

View File

@ -29,6 +29,16 @@ export class SlotRankingDataManager {
return Date.now() <= (maxCloseTime * 1000); return Date.now() <= (maxCloseTime * 1000);
} }
getRankListStatusByType(type: string): number {
if (!this._rankList || !this._rankList.List || this._rankList.List.length === 0) {
return 2;
}
let item = this._rankList.List.find((item: any) => item.Type === type);
return item ? item.Status : 2;
}
getRankListStatus(): number { getRankListStatus(): number {
if (!this._rankList || !this._rankList.List || this._rankList.List.length === 0) { if (!this._rankList || !this._rankList.List || this._rankList.List.length === 0) {
return 2; return 2;