时间问题

This commit is contained in:
luying
2022-08-29 16:39:07 +08:00
parent 9da78b5497
commit 0a57b2f00c
6 changed files with 14 additions and 10 deletions
@@ -68,7 +68,7 @@ export class FirstGiftPage {
public setPlayerRecord(playerData: ActivityFirstGiftModelType) {
if(playerData) {
this.state = FIRST_GIFT_STATE.PAY;
this.todayIndex = deltaDays(moment(playerData.createdAt).startOf('d').toDate(), new Date) + 1;
this.todayIndex = deltaDays(playerData.createdAt, new Date, true) + 1;
let daysNum = playerData.days||[];
for (let obj of this.items) {