活动:开始时间
This commit is contained in:
@@ -88,9 +88,10 @@ export abstract class ActivityBase {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ACTIVITY_TIME_TYPE.DATE_TIME: {
|
case ACTIVITY_TIME_TYPE.DATE_TIME: {
|
||||||
this.beginTime = moment(activityData.beginTime).startOf('d').add(REFRESH_TIME, 'h').valueOf();
|
this.beginTime = activityData.beginTime.valueOf();
|
||||||
this.endTime = moment(activityData.endTime).startOf('d').add(REFRESH_TIME, 'h').valueOf();
|
this.endTime = activityData.endTime.valueOf();
|
||||||
this.todayIndex = deltaDays(moment(this.beginTime).toDate(), new Date) + 1;
|
let startOfBeginDay = moment(activityData.beginTime).startOf('d').add(REFRESH_TIME, 'h');
|
||||||
|
this.todayIndex = deltaDays(startOfBeginDay.toDate(), new Date) + 1;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user