龙虎榜

This commit is contained in:
TJH 2025-12-31 15:20:31 +08:00
parent 79990a2ae8
commit d2788abfbd
2 changed files with 13 additions and 4 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

@ -83,6 +83,15 @@ 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;