import { UIPopup } from '@scripts/framework/ui/UIPopup'; import { addBtnClick } from '@scripts/utils/UIHelper'; import { _decorator, Button, Component, Label, Node } from 'cc'; const { ccclass, property } = _decorator; @ccclass('UIFirstPack') export class UIFirstPack extends UIPopup { @property(Label) lblGC: Label; @property(Label) lblSC: Label; @property(Label) lblVIP: Label; @property(Button) btnClose: Button; @property(Button) btnPay: Button; protected onCreate(): void | Promise { addBtnClick(this.btnClose, this.closeSelf, this); addBtnClick(this.btnPay, this.onBtnPayClick, this); } private onBtnPayClick() { } protected onOpen(_params: unknown): void | Promise { this.lblGC.string = ""; this.lblSC.string = ""; this.lblVIP.string = ""; } }