CashWithdrawalView.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * @Author: mojunshou 1637302775@qq.com
  3. * @Date: 2025-03-21 15:03:37
  4. * @LastEditors: mojunshou 1637302775@qq.com
  5. * @LastEditTime: 2025-04-14 18:15:34
  6. * @Description: 微信提现到零钱,需要有一个动画展示步骤
  7. */
  8. import { _decorator } from 'cc';
  9. import { DeviceUtil } from 'db://oops-framework/core/utils/DeviceUtil';
  10. import { GameComponent } from "db://oops-framework/module/common/GameComponent";
  11. import { ServerHandler } from '../common/manager/ServerHandler';
  12. import { oops } from 'db://oops-framework/core/Oops';
  13. import { UIID } from '../common/config/GameUIConfig';
  14. const { ccclass, property } = _decorator;
  15. /** 显示对象控制 */
  16. @ccclass('CashWithdrawalView')
  17. export class CashWithdrawalView extends GameComponent {
  18. str: string[] = [
  19. "发起提现申请",
  20. "确认用户信息",
  21. "发起打款:$m元",
  22. "提现成功,到账微信零钱"
  23. ]
  24. protected start() {
  25. this.setButton();
  26. }
  27. showAnimation() {
  28. }
  29. btn_continue() {
  30. //打开提现返利界面
  31. if (DeviceUtil.isNative && DeviceUtil.isAndroid) {
  32. ServerHandler.inst.getTxbfInfo();
  33. oops.gui.remove(UIID.WithSussce);
  34. } else {
  35. //
  36. oops.gui.open(UIID.CashRebate);
  37. }
  38. }
  39. }