活动:修改成长基金的数据结构

This commit is contained in:
qiaoxin
2021-05-27 17:56:09 +08:00
parent 8520adc7f5
commit 265bace67a
5 changed files with 83 additions and 74 deletions

View File

@@ -12,6 +12,7 @@ export class ShopItem {
price: number; //价格
productID: string; //商品id
imageName: string;
discount: number; //折扣
buyCount: number = 0; //购买过的次数
@@ -23,6 +24,7 @@ export class ShopItem {
this.price = data.price;
this.productID = data.productID;
this.imageName = data.imageName;
this.discount = data.discount ? data.discount : 0;
this.buyCount = 0;
}
}