✨ feat(节日活动): 添加划龙舟活动
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user