活动:记录完成任务获得的点数

This commit is contained in:
qiaoxin
2021-06-22 11:46:53 +08:00
parent ddfd8455c8
commit 5e940001eb
4 changed files with 18 additions and 7 deletions

View File

@@ -94,13 +94,11 @@ export class RefreshTaskData extends ActivityBase {
if (index != -1) {
item.totalCount = data[index].totalCount ? data[index].totalCount : 0;
item.receiveRewardCount = data[index].receiveRewardCount ? data[index].receiveRewardCount : 0;
if (item.receiveRewardCount) {
this.totalPoint += item.point;
}
}
}
}
this.totalPoint = pointRecordData && pointRecordData.totalPoint ? pointRecordData.totalPoint : 0;
let pointRecords = pointRecordData && pointRecordData.records ? pointRecordData.records : [];
for (let record of pointRecords) {
this.exchangePoint += record.point;