27 lines
711 B
TypeScript
27 lines
711 B
TypeScript
import { _decorator, Button, Component, Node } from "cc";
|
|
import li_BaseView from "../../../Main/Common/li_BaseView";
|
|
import Utils from "../../../Main/Common/Utils";
|
|
import { GButton } from "../../../Main/Common/GButton";
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass("PopupGirlListPanel")
|
|
export class PopupGirlListPanel extends li_BaseView {
|
|
private _nodeTab: any = {};
|
|
|
|
private girlId: number;
|
|
|
|
openUIDataCT(data) {
|
|
this.girlId = data;
|
|
}
|
|
onLoadCT() {
|
|
Utils.parseNode(this.node, this._nodeTab);
|
|
}
|
|
registerListener() {
|
|
GButton.BandClick(this._nodeTab.BuyBtn, this.buyCharacter, this);
|
|
}
|
|
buyCharacter() {
|
|
// 购买id为girlId的女生
|
|
console.log(this.girlId);
|
|
}
|
|
}
|