活动:每日限购活动扩展资源消耗的字段

This commit is contained in:
qiaoxin
2021-06-16 20:36:32 +08:00
parent ca6fa2523c
commit 045ce1bf77
2 changed files with 12 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ export class ShopItem {
name: string; //名字
price: number; //价格
productID: string; //商品id
consume: string; //消耗
imageName: string;
discount: number; //折扣
@@ -26,6 +27,7 @@ export class ShopItem {
this.productID = data.productID;
this.imageName = data.imageName;
this.discount = data.discount ? data.discount : 0;
this.consume = data.consume ? data.consume : '';
this.buyCount = 0;
}
}