活动:删除多余代码
This commit is contained in:
@@ -23,7 +23,7 @@ export abstract class ActivityBase {
|
||||
this.endTime = moment(activityData.endTime).valueOf();
|
||||
this.type = activityData.type;
|
||||
// this.data = activityData.data;
|
||||
this.todayIndex = deltaDays(activityData.beginTime, new Date) + 1;
|
||||
this.todayIndex = deltaDays(moment(activityData.beginTime).startOf('d').toDate(), new Date) + 1;
|
||||
// console.log('今天是活动第几天', activityData.beginTime, new Date, this.todayIndex)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user