PigBankData.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /**
  2. * 存钱罐数据
  3. * - 提现描述显示:
  4. * 1.判断是否可提,
  5. * 可提显示“直接提现”
  6. * 不可提判断存款是否满足提现最低限制
  7. * 满足显示:“明日提现”,
  8. * 不满足显示:“满x可提”
  9. * @author 薛鸿潇
  10. */
  11. export class PigBankData {
  12. /** 标志位:是否需要刷新数据 */
  13. public init_data: boolean = true;
  14. /** 是否可提现 */
  15. private _cash_enable: boolean = true;
  16. set cash_enable(bool: boolean) {
  17. if (this._cash_enable != bool) {
  18. this._cash_enable = bool;
  19. this.init_data = true;
  20. }
  21. }
  22. get cash_enable(): boolean {
  23. return this._cash_enable;
  24. }
  25. /** 当前存款 */
  26. private _cur_cash_count: number = 0.36;
  27. set cur_cash_count(value: number) {
  28. if (this._cur_cash_count != value) {
  29. this._cur_cash_count = value;
  30. this.init_data = true;
  31. }
  32. }
  33. get cur_cash_count(): number {
  34. return this._cur_cash_count;
  35. }
  36. /** 提现最低限制 */
  37. public cash_min_limit: number = 0.3;
  38. /** 存款最高限制 */
  39. // public cash_max_limit: number = 0.45;
  40. /**
  41. * 视频数最低限制
  42. * 存钱罐提现次数*10【配置】,未满足视频数要求则不打款
  43. */
  44. // public ad_count_min_limit: number = 0;
  45. /**
  46. * 提现操作
  47. * - 此处需要对接服务端数据
  48. */
  49. public cashOP() {
  50. this.cash_enable = false;
  51. }
  52. }