CashProData.ts 826 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * @description 提现数据类
  3. * @author kaka
  4. */
  5. import { Data } from "../../../mk/data/Data";
  6. export default class CashProData extends Data {
  7. init_data = false;
  8. cashPro_type: cashProType;
  9. cashPro_money = 0;
  10. init_success = false;
  11. init_fail = false;
  12. cashFun = null;
  13. openCashPro(type: cashProType, money, cashFun) {
  14. this.cashPro_type = type;
  15. this.cashPro_money = money;
  16. this.init_data = true;
  17. this.cashFun = cashFun;
  18. mk.ui.openPanel('module/cashPro/cashPro');
  19. }
  20. onCash() {
  21. if (this.cashFun) {
  22. this.cashFun();
  23. }
  24. }
  25. }
  26. /** 提现类型枚举 */
  27. export enum cashProType {
  28. blessing_bigCash, //福袋大额红包提现
  29. blessing_taskCash, //福袋任务提现
  30. }