This commit is contained in:
2025-09-09 15:45:50 +08:00
parent 20e8e0b217
commit c6b5def49a
7 changed files with 23 additions and 14 deletions
@@ -15,9 +15,14 @@ export class PopupGirlListPanel extends li_BaseView {
}
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的女生
@@ -142,9 +142,12 @@ export class GirlListItem extends Component {
}
onClickDetail() {
NavigationManager.Instance.navigateToGirlDetail(this.id);
ViewManager.I.closeView(this.baseNode);
if (false) {
NavigationManager.Instance.navigateToGirlDetail(this.id);
ViewManager.I.closeView(this.baseNode);
} else {
//未解锁
ViewManager.I.openBundlesView("PopupGirlListPanel", this.id);
}
}
update(deltaTime: number) {}
}
@@ -7,6 +7,7 @@ import LanguageUtils from "../../Main/Common/LanguageUtils";
import { InnerMsgCode } from "../../Main/Config/InnerMsgCode";
import { DataManager, DataId } from "../data/DataManager";
import { ThemeData } from "../data/ThemeData";
import { ViewManager } from "../../Main/Manager/ViewManager";
const { ccclass, property } = _decorator;
@ccclass("ThemeItem")
@@ -1,7 +1,7 @@
[
{
"__type__": "cc.Prefab",
"_name": "PopupGIrlListPanel",
"_name": "PopupGirlListPanel",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
@@ -13,7 +13,7 @@
},
{
"__type__": "cc.Node",
"_name": "PopupGIrlListPanel",
"_name": "PopupGirlListPanel",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
@@ -8,6 +8,6 @@
],
"subMetas": {},
"userData": {
"syncNodeName": "PopupGIrlListPanel"
"syncNodeName": "PopupGirlListPanel"
}
}