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"
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"__version__": "3.0.7",
"game": {
"name": "未知游戏",
"name": "UNKNOW GAME",
"app_id": "UNKNOW",
"c_id": "0"
},
+6 -6
View File
@@ -4,19 +4,19 @@
"customSplash": {
"id": "customSplash",
"label": "customSplash",
"enable": true,
"enable": false,
"customSplash": {
"complete": true,
"form": "https://creator-api.cocos.com/api/form/show?sid=800ccf353f6eb54dc483510ce462e944"
"complete": false,
"form": "https://creator-api.cocos.com/api/form/show?"
}
},
"removeSplash": {
"id": "removeSplash",
"label": "removeSplash",
"enable": true,
"enable": false,
"removeSplash": {
"complete": true,
"form": "https://creator-api.cocos.com/api/form/show?sid=800ccf353f6eb54dc483510ce462e944"
"complete": false,
"form": "https://creator-api.cocos.com/api/form/show?"
}
}
}