RewardData.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { Data } from "../../../mk/data/Data";
  2. /**
  3. * @description 奖励数据
  4. * @author 邹勇 薛鸿潇
  5. */
  6. export class RewardData extends Data {
  7. /**
  8. * 标志位
  9. * - 初始化红包封面样式
  10. */
  11. public init_luck_style: boolean = false;
  12. /** 默认幸运红包 */
  13. private _lid_type: LidType = LidType.none;
  14. /** 是幸运红包 不是通关红包 */
  15. set lid_type(value: LidType) {
  16. this._lid_type = value;
  17. this.init_luck_style = true;
  18. }
  19. get lid_type(): LidType {
  20. return this._lid_type;
  21. }
  22. /** 奖励列表 */
  23. data: Array<any> = [];
  24. /**
  25. * 标志位
  26. * - 初始化提现样式
  27. */
  28. public init_cash_style: boolean = true;
  29. /**
  30. * 盖子类型
  31. * - 外部赋值 lid_type 时,使用此变量赋值
  32. */
  33. public type_lid: typeof LidType = LidType
  34. }
  35. /**
  36. * 盖子类型
  37. */
  38. enum LidType {
  39. /** 无盖子 */
  40. none = 0,
  41. /** 幸运红包盖子 */
  42. luck = 1,
  43. /** 通关红包盖子 */
  44. mission = 2
  45. }