更新聊天次数购买弹窗
修复bug
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user