WechatWithdrawalViewComp.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * @Author: mojunshou 1637302775@qq.com
  3. * @Date: 2025-03-20 17:00:12
  4. * @LastEditors: mojunshou 1637302775@qq.com
  5. * @LastEditTime: 2025-03-21 14:30:22
  6. * @Description: 微信提现页面
  7. */
  8. import { _decorator } from "cc";
  9. import { oops } from "db://oops-framework/core/Oops";
  10. import { ecs } from "db://oops-framework/libs/ecs/ECS";
  11. import { CCComp } from "db://oops-framework/module/common/CCComp";
  12. import { UIID } from "../../common/config/GameUIConfig";
  13. const { ccclass, property } = _decorator;
  14. /** 视图层对象 */
  15. @ccclass('WechatWithdrawalViewComp')
  16. @ecs.register('WechatWithdrawalView', false)
  17. export class WechatWithdrawalViewComp extends CCComp {
  18. /** 视图层逻辑代码分离演示 */
  19. start() {
  20. // const entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象
  21. this.setButton();
  22. }
  23. /** 视图对象通过 ecs.Entity.remove(WechatWithdrawalViewComp) 删除组件是触发组件处理自定义释放逻辑 */
  24. reset() {
  25. this.node.destroy();
  26. }
  27. private btn_back() {
  28. oops.gui.remove(UIID.WechatWithdraw);
  29. }
  30. }