活动:弹出礼包增加礼包名

This commit is contained in:
luying
2022-04-28 13:43:47 +08:00
parent 5ed0e2d927
commit 9c9a881aa9

View File

@@ -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;