| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import { Data } from "../../../mk/data/Data";
- /**
- * @description 奖励数据
- * @author 邹勇 薛鸿潇
- */
- export class RewardData extends Data {
- /**
- * 标志位
- * - 初始化红包封面样式
- */
- public init_luck_style: boolean = false;
- /** 默认幸运红包 */
- private _lid_type: LidType = LidType.none;
- /** 是幸运红包 不是通关红包 */
- set lid_type(value: LidType) {
- this._lid_type = value;
- this.init_luck_style = true;
- }
- get lid_type(): LidType {
- return this._lid_type;
- }
- /** 奖励列表 */
- data: Array<any> = [];
- /**
- * 标志位
- * - 初始化提现样式
- */
- public init_cash_style: boolean = true;
- /**
- * 盖子类型
- * - 外部赋值 lid_type 时,使用此变量赋值
- */
- public type_lid: typeof LidType = LidType
- }
- /**
- * 盖子类型
- */
- enum LidType {
- /** 无盖子 */
- none = 0,
- /** 幸运红包盖子 */
- luck = 1,
- /** 通关红包盖子 */
- mission = 2
- }
|