feat(节日活动): 添加划龙舟活动

This commit is contained in:
luying
2023-05-22 21:08:28 +08:00
parent 8e53bff441
commit b158099101
10 changed files with 379 additions and 6 deletions

View File

@@ -15,7 +15,8 @@ interface RefreshShopPageInDb {
viewcount: number;
preNeedBuyCnt: number; // 添加:上一页需要购买的
name: string;
items: RefreshShopItemInDb[]
items: RefreshShopItemInDb[];
type: number;
}
interface RefreshShopItemInDb {
@@ -91,6 +92,7 @@ export class RefreshShopPage {
viewCount: number; //随机可购买的商品个数
preNeedBuyCnt: number; // 添加:上一页需要购买的
items: Array<RefreshShopItem> = [];//商品列表
type: number = 1; // 1-限时商店 2-限时返场商店
constructor(data: RefreshShopPageInDb) {
this.pageIndex = data.pageIndex;
this.name = data.name;
@@ -99,6 +101,7 @@ export class RefreshShopPage {
}
this.preNeedBuyCnt = data.preNeedBuyCnt;
this.viewCount = data.viewcount ? data.viewcount : this.items.length;
if(data.type) this.type = data.type;
}
}