活动:任务刷新

This commit is contained in:
luying
2022-05-12 21:19:32 +08:00
parent 1fe5093757
commit 49131a1196
8 changed files with 43 additions and 56 deletions

View File

@@ -45,7 +45,8 @@ export class RefreshShopItem {
let refZeroPoint = getZeroPoint(this.refreshType);
let records = data.records ? data.records : [];
let buyRecords = records.filter(obj => {
let curRefTime = getZeroPointOfTime(obj.time);
let curRefTime = getZeroPointOfTime(obj.time, this.refreshType);
console.log(curRefTime, refZeroPoint)
return obj && obj.id === this.id && obj.pageIndex == this.pageIndex && curRefTime == refZeroPoint
});
this.buyCount = buyRecords.length;