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() { onLoadCT() {
Utils.parseNode(this.node, this._nodeTab); Utils.parseNode(this.node, this._nodeTab);
this.registerListener();
} }
registerListener() { registerListener() {
GButton.BandClick(this._nodeTab.BuyBtn, this.buyCharacter, this); GButton.BandClick(this._nodeTab.BuyBtn, this.buyCharacter, this);
GButton.BandClick(this._nodeTab.CloseBtn, this.Close, this);
}
Close() {
this.close();
} }
buyCharacter() { buyCharacter() {
// 购买id为girlId的女生 // 购买id为girlId的女生
@@ -142,9 +142,12 @@ export class GirlListItem extends Component {
} }
onClickDetail() { onClickDetail() {
NavigationManager.Instance.navigateToGirlDetail(this.id); if (false) {
ViewManager.I.closeView(this.baseNode); 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 { InnerMsgCode } from "../../Main/Config/InnerMsgCode";
import { DataManager, DataId } from "../data/DataManager"; import { DataManager, DataId } from "../data/DataManager";
import { ThemeData } from "../data/ThemeData"; import { ThemeData } from "../data/ThemeData";
import { ViewManager } from "../../Main/Manager/ViewManager";
const { ccclass, property } = _decorator; const { ccclass, property } = _decorator;
@ccclass("ThemeItem") @ccclass("ThemeItem")
@@ -1,7 +1,7 @@
[ [
{ {
"__type__": "cc.Prefab", "__type__": "cc.Prefab",
"_name": "PopupGIrlListPanel", "_name": "PopupGirlListPanel",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_native": "", "_native": "",
@@ -13,7 +13,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "PopupGIrlListPanel", "_name": "PopupGirlListPanel",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_parent": null, "_parent": null,
@@ -8,6 +8,6 @@
], ],
"subMetas": {}, "subMetas": {},
"userData": { "userData": {
"syncNodeName": "PopupGIrlListPanel" "syncNodeName": "PopupGirlListPanel"
} }
} }
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"__version__": "3.0.7", "__version__": "3.0.7",
"game": { "game": {
"name": "未知游戏", "name": "UNKNOW GAME",
"app_id": "UNKNOW", "app_id": "UNKNOW",
"c_id": "0" "c_id": "0"
}, },
+6 -6
View File
@@ -4,19 +4,19 @@
"customSplash": { "customSplash": {
"id": "customSplash", "id": "customSplash",
"label": "customSplash", "label": "customSplash",
"enable": true, "enable": false,
"customSplash": { "customSplash": {
"complete": true, "complete": false,
"form": "https://creator-api.cocos.com/api/form/show?sid=800ccf353f6eb54dc483510ce462e944" "form": "https://creator-api.cocos.com/api/form/show?"
} }
}, },
"removeSplash": { "removeSplash": {
"id": "removeSplash", "id": "removeSplash",
"label": "removeSplash", "label": "removeSplash",
"enable": true, "enable": false,
"removeSplash": { "removeSplash": {
"complete": true, "complete": false,
"form": "https://creator-api.cocos.com/api/form/show?sid=800ccf353f6eb54dc483510ce462e944" "form": "https://creator-api.cocos.com/api/form/show?"
} }
} }
} }