import { _decorator, Button, Color, EditBox, instantiate, Label, Node, RichText, Sprite, SpriteFrame, UITransform } from 'cc'; import { UIView } from '@scripts/framework/ui/UIView'; import { AppKernel } from '@scripts/app/AppKernel'; import { UIViewID } from '@scripts/define/UIDefine'; import { UICloseReason } from '@scripts/framework/ui/UILayer'; import { formatCurrency } from '@scripts/utils/Helper'; import { addBtnClick } from '@scripts/utils/UIHelper'; const { ccclass, property } = _decorator; @ccclass('UserInfoView') export class UserInfoView extends UIView { readonly viewId = UIViewID.UserInfoView; @property(Button) btnGuest: Button; @property(Button) btnFacebook: Button; @property(Button) btnGoogle: Button; @property(EditBox) loginAccount: EditBox; @property(EditBox) loginPassword: EditBox; @property(Node) psd_visible_control: Node; @property(Node) btnLogin: Node; @property(Node) btnRegister: Node; @property(Node) btnResetPsd: Node; @property(Node) btnSupport: Node; @property(Node) policyContainer: Node; protected onCreate(): void | Promise { // addBtnClick(this.btnGuest.node, this.onBtnGuestClick, this); // addBtnClick(this.btnFacebook.node, this.onBtnFBClick, this); // addBtnClick(this.btnGoogle.node, this.onBtnGoogleClick, this); // this.initPsdInput(); // this.initPolicyDesc(); } }