活动:删除多余代码
This commit is contained in:
@@ -30,7 +30,7 @@ export class MonthlyTicketData extends ActivityBase {
|
||||
this.endTime = moment(data.endTime).valueOf();
|
||||
if (moment(new Date).valueOf() < this.endTime) {
|
||||
this.isOpen = true;
|
||||
this.todayIndex = deltaDays(data.createdAt, new Date) + 1;
|
||||
this.todayIndex = deltaDays(moment(data.createdAt).startOf('d').toDate(), new Date) + 1;
|
||||
} else {
|
||||
this.todayIndex = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user