diff --git a/shared/domain/activityField/popUpShopField.ts b/shared/domain/activityField/popUpShopField.ts index 5b198ae5c..6159052df 100644 --- a/shared/domain/activityField/popUpShopField.ts +++ b/shared/domain/activityField/popUpShopField.ts @@ -28,6 +28,7 @@ interface PopUpShopPackageInDb { interface PopUpShopItemInDb { id: number; // 档位唯一id,升降档的时候按照id顺序排,升档id+,降档id- + name: string; // 包名 conditionParam: string; // 条件类型的参数,填法根据conditionType表判断 price: number; // 商品价格 productID: string; // 商品id支付时使用 @@ -307,6 +308,7 @@ export class PopUpShopPackage { // 礼包,购买以此为单位 export class PopShopItem { id: number; // 档位唯一id,升降档的时候按照id顺序排,升档id+,降档id- + name: string; // 礼包名 param: string; conditionParam: number[]; // 条件类型的参数,填法根据conditionType表判断 price: number; // 商品价格 @@ -326,6 +328,7 @@ export class PopShopItem { constructor(data: PopUpShopItemInDb, parent: PopUpShopPackage) { this.id = data.id; + this.name = data.name; this.param = data.conditionParam; this.conditionParam = parseNumberList(data.conditionParam); this.price = data.price; @@ -477,6 +480,7 @@ export class PopUpShopItemShow { endTime: number; // 礼包消失时间 id: number; // 档位唯一id,升降档的时候按照id顺序排,升档id+,降档id- + name: string; // 礼包 price: number; // 商品价格 productID: string; // 商品id支付时使用 consume: string; // 消耗资源(这里优先rmb的price价格,其次资源消耗) @@ -490,6 +494,7 @@ export class PopUpShopItemShow { this.packageId = data.parent.id; this.endTime = data.endTime; this.id = data.id; + this.name = data.name; this.price = data.price; this.productID = data.productID; this.consume = data.consume;