UserInfoView.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import { _decorator, Button, Color, EditBox, instantiate, Label, Node, RichText, Sprite, SpriteFrame, UITransform } from 'cc';
  2. import { UIView } from '@scripts/framework/ui/UIView';
  3. import { AppKernel } from '@scripts/app/AppKernel';
  4. import { UIViewID } from '@scripts/define/UIDefine';
  5. import { UICloseReason } from '@scripts/framework/ui/UILayer';
  6. import { formatCurrency } from '@scripts/utils/Helper';
  7. import { addBtnClick } from '@scripts/utils/UIHelper';
  8. const { ccclass, property } = _decorator;
  9. @ccclass('UserInfoView')
  10. export class UserInfoView extends UIView {
  11. readonly viewId = UIViewID.UserInfoView;
  12. @property(Button)
  13. btnGuest: Button;
  14. @property(Button)
  15. btnFacebook: Button;
  16. @property(Button)
  17. btnGoogle: Button;
  18. @property(EditBox)
  19. loginAccount: EditBox;
  20. @property(EditBox)
  21. loginPassword: EditBox;
  22. @property(Node)
  23. psd_visible_control: Node;
  24. @property(Node)
  25. btnLogin: Node;
  26. @property(Node)
  27. btnRegister: Node;
  28. @property(Node)
  29. btnResetPsd: Node;
  30. @property(Node)
  31. btnSupport: Node;
  32. @property(Node)
  33. policyContainer: Node;
  34. protected onCreate(): void | Promise<void> {
  35. // addBtnClick(this.btnGuest.node, this.onBtnGuestClick, this);
  36. // addBtnClick(this.btnFacebook.node, this.onBtnFBClick, this);
  37. // addBtnClick(this.btnGoogle.node, this.onBtnGoogleClick, this);
  38. // this.initPsdInput();
  39. // this.initPolicyDesc();
  40. }
  41. }