SeasonPassPurchase.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import { _decorator, Button, Color, EditBox, instantiate, Label, Node, RichText, Sprite, SpriteFrame, UITransform } from 'cc';
  2. import { UIViewID } from '@scripts/define/UIDefine';
  3. import { UICloseReason } from '@scripts/framework/ui/UILayer';
  4. import { addBtnClick } from '@scripts/utils/UIHelper';
  5. import { AppKernel } from '@scripts/app/AppKernel';
  6. import { SelectBox } from '@scripts/components/selectBox/SelectBox';
  7. import { UIPopup } from '@scripts/framework/ui/UIPopup';
  8. const { ccclass, property } = _decorator;
  9. @ccclass('SeasonPassPurchase')
  10. export class SeasonPassPurchase extends UIPopup {
  11. readonly viewId = UIViewID.SeasonPassPurchase;
  12. @property(Node)
  13. private btnClose: Node = null;
  14. @property(Node)
  15. private btnView: Node = null;
  16. @property(Node)
  17. private btnSubmit: Node = null;
  18. @property(EditBox)
  19. account: EditBox;
  20. @property(EditBox)
  21. code: EditBox;
  22. @property(EditBox)
  23. psd: EditBox;
  24. @property(EditBox)
  25. inviteCode: EditBox;
  26. @property(SelectBox)
  27. selectBox: SelectBox;
  28. protected onCreate(): void | Promise<void> {
  29. // addBtnClick(this.btnClose, this.onBtnCloseClick, this);
  30. // addBtnClick(this.btnView, this.onBtnViewClick, this);
  31. // addBtnClick(this.btnSubmit, this.onBtnSubmitClick, this);
  32. // const selectData = ["Account & Login", "Gameplay Issue", "Payment & Purchase", "Technical Issue"];
  33. // this.selectBox?.initSelectItems(selectData);
  34. }
  35. private onBtnCloseClick() {
  36. AppKernel.ui.close(UIViewID.Support);
  37. const loginView = AppKernel.ui.get(UIViewID.LoginView) as any;
  38. if (loginView && loginView?.enabled) {
  39. loginView?._googleWebBtn?.setActive(true);
  40. }
  41. }
  42. private onBtnViewClick() {
  43. }
  44. private onBtnSubmitClick() {
  45. }
  46. }