UIInviteBind.ts 982 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import VirtualList from '@scripts/components/virtualList/VirtualList';
  2. import { UIViewID } from '@scripts/define/UIDefine';
  3. import { UIPopup } from '@scripts/framework/ui/UIPopup';
  4. import { addBtnClick, addTogClick } from '@scripts/utils/UIHelper';
  5. import { _decorator, Component, EditBox, Label, Node, Toggle } from 'cc';
  6. const { ccclass, property } = _decorator;
  7. @ccclass('UIInviteBind')
  8. export class UIInviteBind extends UIPopup {
  9. readonly viewId: UIViewID = UIViewID.UIInviteBind;
  10. @property(Node)
  11. btnClose: Node;
  12. @property(EditBox)
  13. inputCode: EditBox;
  14. @property(Node)
  15. btnBind: Node;
  16. @property(Node)
  17. btnCancel: Node;
  18. @property(Label)
  19. lblError: Label;
  20. protected onCreate(): void | Promise<void> {
  21. addBtnClick(this.btnClose, this.closeSelf, this);
  22. addBtnClick(this.btnCancel, this.closeSelf, this);
  23. addBtnClick(this.btnBind, this.onBtnBindClick, this);
  24. }
  25. private onBtnBindClick() {
  26. }
  27. }