|
@@ -44,10 +44,17 @@ export class ConfigRecharge {
|
|
bonusList: GoodInfo[];
|
|
bonusList: GoodInfo[];
|
|
firstRechargeList: GoodInfo[];
|
|
firstRechargeList: GoodInfo[];
|
|
}
|
|
}
|
|
|
|
+export class ConfigBadge {
|
|
|
|
+ addition: number;
|
|
|
|
+ desc: string;
|
|
|
|
+ id: number;
|
|
|
|
+ type: number;
|
|
|
|
+}
|
|
export class Config {
|
|
export class Config {
|
|
goodList: ConfigGood[];
|
|
goodList: ConfigGood[];
|
|
storeList: ConfigStore[];
|
|
storeList: ConfigStore[];
|
|
rechargeList: ConfigRecharge[];
|
|
rechargeList: ConfigRecharge[];
|
|
|
|
+ badgeList: ConfigBadge[];
|
|
}
|
|
}
|
|
|
|
|
|
export class ClientConfig {
|
|
export class ClientConfig {
|
|
@@ -60,6 +67,9 @@ export class ConfigGrade {
|
|
addition: number;
|
|
addition: number;
|
|
}
|
|
}
|
|
export default class ConfigM {
|
|
export default class ConfigM {
|
|
|
|
+ getBadge(id: number): ConfigBadge {
|
|
|
|
+ return this._config.badgeList.find((item) => item.id == id);
|
|
|
|
+ }
|
|
getGradeAllocation(_grade: number) {
|
|
getGradeAllocation(_grade: number) {
|
|
let r = [5, 10, 10, 24, 26, 20, 5];
|
|
let r = [5, 10, 10, 24, 26, 20, 5];
|
|
return r[_grade - 1];
|
|
return r[_grade - 1];
|