活动:添加新任务类型

This commit is contained in:
qiaoxin
2021-06-04 18:35:29 +08:00
parent 2bf3122463
commit fe73748cd7
9 changed files with 116 additions and 25 deletions

View File

@@ -41,10 +41,12 @@ export class TreasureHuntFirstPageData {
export class ConsumeData {
count: number; // 第几次购买1开始
consume: string; //消耗资源 "2&31002&400"
discount: number; // 折扣
constructor(data: any) {
this.count = data.count;
this.consume = data.consume;
this.discount = data.discount;
}
}
@@ -56,6 +58,7 @@ export class TreasureHuntShopItem {
productID: string; // 商品id
reward: string; //奖励
countMax: number; //最大购买次数
discount: number; //折扣
imageName: string;
consume: ConsumeData[]; //每次购买价格不同
@@ -68,6 +71,7 @@ export class TreasureHuntShopItem {
this.productID = data.productID;
this.reward = data.reward;
this.countMax = data.countMax;
this.discount = data.discount;
this.imageName = data.imageName;
this.consume = [];
for (let obj of data.data) {