From 9c9a881aa94a414825be47ef74b4dc6bc01c641e Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 28 Apr 2022 13:43:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=EF=BC=9A=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E7=A4=BC=E5=8C=85=E5=A2=9E=E5=8A=A0=E7=A4=BC=E5=8C=85=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/domain/activityField/popUpShopField.ts | 5 +++++ 1 file changed, 5 insertions(+) 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;