调整弹出礼包展示字段

This commit is contained in:
liangtongchuan
2022-07-28 15:59:22 +08:00
parent 20de6959f0
commit 7774724a7a
3 changed files with 13 additions and 13 deletions
@@ -365,6 +365,7 @@ export class PopShopItem {
isPushing: boolean = false; // 是否有推送
hasPushCnt: number = 0;
code: string = ''; // 推送唯一code
hasShown: boolean = false; // 客户端是否已经展示
beginTime: number = 0; // 推送开始时间
endTime: number = 0; // 推送结束时间
@@ -389,6 +390,7 @@ export class PopShopItem {
public setPlayerRecords(data: ActivityPopUpShopModelType, item: ActivityPopUpShopItem) {
this.code = data.code;
this.hasShown = data.hasShown;
this.beginTime = data.beginTime.getTime();
this.endTime = data.endTime.getTime();
this.hasBoughtCnt = item.hasBoughtCnt;
@@ -547,6 +549,7 @@ export class PopUpShopItemShow {
code: string; // 本次推送的code,用于购买中传给param
packageId: number; // 礼包类型id
endTime: number; // 礼包消失时间
hasShown: boolean; // 礼包是否已经在客户端展示
id: number; // 档位唯一id,升降档的时候按照id顺序排,升档id+,降档id-
name: string; // 礼包
@@ -560,6 +563,7 @@ export class PopUpShopItemShow {
constructor(data: PopShopItem) {
this.code = data.code;
this.hasShown = data.hasShown;
this.packageId = data.parent.id;
this.endTime = data.endTime;
this.id = data.id;