活动:统计限购礼包
This commit is contained in:
@@ -38,6 +38,11 @@ export class LimitShopData extends ActivityBase {
|
||||
nextRefreshTime: number;//下次刷新时间
|
||||
roundIndex: number = 1;//周期数从1开始
|
||||
|
||||
public findItemByProductID(productID: string) {
|
||||
let index = this.list.findIndex(obj => { return obj && obj.productID === productID });
|
||||
return (index != -1) ? this.list[index] : null
|
||||
}
|
||||
|
||||
public findItem(id: number) {
|
||||
let index = this.list.findIndex(obj => { return obj && obj.id === id });
|
||||
return (index != -1) ? this.list[index] : null
|
||||
|
||||
Reference in New Issue
Block a user