更新聊天次数购买弹窗

修复bug
This commit is contained in:
2025-10-14 11:00:49 +08:00
parent b4b1d347fc
commit 0088515f2a
21 changed files with 2473 additions and 2115 deletions
@@ -22,7 +22,6 @@ import { ChatContentsLayout } from "../components/ChatContentsLayout";
import { ImagePopup } from "../components/ImagePopup";
import LanguageUtils from "../../../Main/Common/LanguageUtils";
import { PriceType, VideoEmotion, purchase } from "../../../schema/schema";
import { PayToTalkSubpanel } from "./PayToTalkSubpanel";
import { DataId, DataManager } from "../../data/DataManager";
import { GirlData } from "../../data/GirlData";
import { SceneBgVideoLayer } from "../../../Sub/UI/SceneBgVideoLayer";
@@ -39,9 +38,6 @@ export class ChatPanel extends li_BaseView implements IChatPanelCallback {
manager: DialogManager = null;
private chatController: ChatController = null;
@property(PayToTalkSubpanel)
payToTalkPanel: PayToTalkSubpanel = null;
@property(EditBox)
editBox: EditBox = null;
@@ -105,7 +101,6 @@ export class ChatPanel extends li_BaseView implements IChatPanelCallback {
this.register();
//this.refresh();
this.payToTalkPanel.node.active = false;
// 检查 SceneBgVideoLayer 是否可用
if (!this.videoLayer) {
@@ -470,7 +465,10 @@ export class ChatPanel extends li_BaseView implements IChatPanelCallback {
}
onChatLimitReached(): void {
this.payToTalkPanel.show(this.categoryId, this.id);
NavigationManager.Instance.openPopupPanel("PayToTalkPanel", {
categoryId: this.categoryId,
girlId: this.id,
});
TipsPanel.show(LanguageUtils.getText("chat_error_code_1001"));
}
/**