This commit is contained in:
parent
f6ead2deed
commit
9afb414503
@ -119,7 +119,7 @@ export class RewardList extends Component {
|
||||
|
||||
this.setRewardRadioBtn(type);
|
||||
|
||||
if (!this.isTypeAvailable(type)) {
|
||||
if (!this.isTypeAvailable(type) || SlotRankingDataManager.instance.getRankListStatusByType(type) !== 0) {
|
||||
console.log(`${type} 奖励榜单活动未开启`);
|
||||
this.rewardLoadingNode.active = false;
|
||||
this.showActivityNotOpenTip();
|
||||
|
||||
@ -29,6 +29,16 @@ export class SlotRankingDataManager {
|
||||
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 {
|
||||
if (!this._rankList || !this._rankList.List || this._rankList.List.length === 0) {
|
||||
return 2;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user