活动:每日兑换铜币活动

This commit is contained in:
qiaoxin
2021-06-10 20:01:20 +08:00
parent 1b16ffc6ab
commit d5242ee9dd
12 changed files with 355 additions and 45 deletions

View File

@@ -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;