活动:每日兑换铜币活动
This commit is contained in:
@@ -31,6 +31,11 @@ export class SelfServiceShopItem {
|
||||
|
||||
buyCount: number = 0; //已经购买次数
|
||||
|
||||
public findCellIndex(cellIndex: number) {
|
||||
let index = this.data.findIndex(obj => { return obj && obj.cellIndex === cellIndex });
|
||||
return (index != -1) ? this.data[index] : null;
|
||||
}
|
||||
|
||||
constructor(cellData: any) {
|
||||
this.index = cellData.index;
|
||||
this.name = cellData.name;
|
||||
|
||||
Reference in New Issue
Block a user