活动:每日特惠礼包修改
This commit is contained in:
@@ -70,14 +70,13 @@ export class DailyRMBGiftsData extends ActivityBase {
|
||||
}
|
||||
|
||||
public calTodayReceiveStatus() {
|
||||
this.unReceiveCount = this.unReceived.length;
|
||||
if(this.isBuy) {
|
||||
let hasAllReceived = !this.list.find(item => !item.isReceive);
|
||||
console.log('##### calTodayReceiveStatus', this.unReceived, this.todayIndex, hasAllReceived)
|
||||
if(!hasAllReceived && this.unReceived.indexOf(this.todayIndex) == -1) {
|
||||
this.unReceived.push(this.todayIndex);
|
||||
this.unReceiveCount++;
|
||||
}
|
||||
}
|
||||
this.unReceiveCount = this.unReceived.length;
|
||||
}
|
||||
|
||||
public calButtonStatus() {
|
||||
@@ -88,6 +87,10 @@ export class DailyRMBGiftsData extends ActivityBase {
|
||||
} else {
|
||||
this.buttonStatus = DAILY_RMB_GIFT_STATUS.CAN_RECEIVE;
|
||||
}
|
||||
} else {
|
||||
if(this.unReceiveCount > 0) {
|
||||
this.buttonStatus = DAILY_RMB_GIFT_STATUS.HAS_RECEIVED;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user