活动:糜家商店挑战统计

This commit is contained in:
qiaoxin
2021-06-09 17:07:35 +08:00
parent 9209378b9d
commit 7ed630f85e
7 changed files with 70 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ import { ActivityBase } from './activityField';
export class SelfServiceShopItemInfo {
cellIndex: number; // 第几个坑位从1开始
cellType: number; //坑位类型 SELF_SERVICE_SHOP_CELL_TYPE 1.特殊 2.普通
gift: number; //礼包内容
gift: string; //礼包内容
constructor(data: any) {
this.cellIndex = data.cellIndex;
@@ -56,6 +56,7 @@ export class SelfServiceShopData extends ActivityBase {
unitCountMax: number = 0;//元宝购买代币最大次数
unitReward: string = '';//购买获得代币资源
challengeCount: number = 0;//挑战次数
unitBuyCount: number = 0;//元宝购买代币次数
roundIndex: number = 0; //第几周期 从1开始
@@ -87,6 +88,7 @@ export class SelfServiceShopData extends ActivityBase {
this.unitPrice = dataObj.unitPrice;
this.unitCountMax = dataObj.unitCountMax;
this.unitReward = dataObj.unitReward;
this.challengeCount = 0;
let arr = dataObj.data;
for (let obj of arr) {