| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- import { AppKernel } from '@scripts/app/AppKernel';
- import { UIViewID } from '@scripts/define/UIDefine';
- import { UIView } from '@scripts/framework/ui/UIView';
- import { addBtnClick } from '@scripts/utils/UIHelper';
- import { _decorator, Button, Component, Node } from 'cc';
- const { ccclass, property } = _decorator;
- import { UIPopup } from '@scripts/framework/ui/UIPopup';
- @ccclass('MailDetail')
- export class MailDetail extends UIPopup {
- readonly viewId: UIViewID = UIViewID.MailDetail;
- @property(Node)
- private btnClose: Node = null;
- @property(Node)
- private btnView: Node = null;
- @property(Node)
- private btnSubmit: Node = null;
- // @property(Button)
- // btnClose: Button;
- // protected async onBeforeOpen(_params: unknown): Promise<boolean> {
- // const mailStore = AppKernel.stores.mailStore;
- // const res = await mailStore.reqMailList();
- // return res;
- // }
- // protected onCreate(): void | Promise<void> {
- // addBtnClick(this.btnClose.node, this.onBtnCloseClick, this);
- // }
- // private onBtnCloseClick() {
- // this.closeSelf();
- // }
- protected onCreate(): void | Promise<void> {
- // 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() {
- }
- }
|