活动:修改bug

This commit is contained in:
qiaoxin
2021-06-01 11:08:11 +08:00
parent c98c1f5170
commit 9a45e182cf
2 changed files with 18 additions and 14 deletions

View File

@@ -1,8 +1,9 @@
import { ACTIVITY_TYPE } from "../../consts";
import { ActivityPopUpShopModelType } from "../../db/ActivityPopUpShop";
// 弹框商店
export class PopUpShopData {
type: number//活动类型
activityId: number; // 活动id
id: number; // 第几个从1开始
name: string; //名字
@@ -34,6 +35,7 @@ export class PopUpShopData {
public initData(data: any) {
this.type = ACTIVITY_TYPE.POP_UP_SHOP;
this.id = data.id;
this.reward = data.reward;
this.consume = data.consume ? data.consume : '';