活动:修改成长基金的数据结构
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user