import { _decorator, Button, Color, EditBox, instantiate, Label, Node, RichText, Sprite, SpriteFrame, UITransform } from 'cc'; import { UIViewID } from '@scripts/define/UIDefine'; import { UICloseReason } from '@scripts/framework/ui/UILayer'; import { addBtnClick } from '@scripts/utils/UIHelper'; import { AppKernel } from '@scripts/app/AppKernel'; import { SelectBox } from '@scripts/components/selectBox/SelectBox'; import { UIPopup } from '@scripts/framework/ui/UIPopup'; const { ccclass, property } = _decorator; @ccclass('AccountUnlink') export class AccountUnlink extends UIPopup { readonly viewId = UIViewID.AccountUnlink; @property(Node) private btnClose: Node = null; @property(Node) private btnView: Node = null; @property(Node) private btnSubmit: Node = null; @property(EditBox) account: EditBox; @property(EditBox) code: EditBox; @property(EditBox) psd: EditBox; @property(EditBox) inviteCode: EditBox; @property(SelectBox) selectBox: SelectBox; protected onCreate(): void | Promise { // addBtnClick(this.btnClose, this.onBtnCloseClick, this); // addBtnClick(this.btnView, this.onBtnViewClick, this); // addBtnClick(this.btnSubmit, this.onBtnSubmitClick, this); // const selectData = ["Account & Login", "Gameplay Issue", "Payment & Purchase", "Technical Issue"]; // this.selectBox?.initSelectItems(selectData); } private onBtnCloseClick() { AppKernel.ui.close(UIViewID.Support); const loginView = AppKernel.ui.get(UIViewID.LoginView) as any; if (loginView && loginView?.enabled) { loginView?._googleWebBtn?.setActive(true); } } private onBtnViewClick() { } private onBtnSubmitClick() { } }