fix
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
import { _decorator, Component, Node } from "cc";
|
||||
import li_BaseView from "../../../Main/Common/li_BaseView";
|
||||
import { GButton } from "../../../Main/Common/GButton";
|
||||
import Utils from "../../../Main/Common/Utils";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass("PopupGirlDetailPanel")
|
||||
export class PopupGirlDetailPanel extends li_BaseView {
|
||||
private _nodeTab: any = {};
|
||||
|
||||
private girlId: number;
|
||||
private resId: number;
|
||||
|
||||
openUIDataCT(data) {
|
||||
this.resId = data.resId;
|
||||
this.girlId = data.girlId;
|
||||
}
|
||||
onLoadCT() {
|
||||
Utils.parseNode(this.node, this._nodeTab);
|
||||
this.registerListener();
|
||||
}
|
||||
registerListener() {
|
||||
GButton.BandClick(this._nodeTab.BuyBtn, this.buyCharacter, this);
|
||||
GButton.BandClick(this._nodeTab.CloseBtn, this.Close, this);
|
||||
}
|
||||
Close() {
|
||||
this.close();
|
||||
}
|
||||
buyCharacter() {
|
||||
// 购买id为girlId的女生
|
||||
console.log(this.girlId + "---" + this.resId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user