迁移商店弹窗脚本

This commit is contained in:
2026-04-25 14:56:04 +08:00
parent 66a9e8ad23
commit b622053bc2
3 changed files with 706 additions and 364 deletions
+59 -3
View File
@@ -34,7 +34,7 @@
* - fishing.js:处理钓鱼抛竿、收竿、浮漂和自动钓鱼循环。
* - fortune-panel.js:提供神秘占卜 fortunePanel Alpine 组件。
* - profile-controls.js:处理头像选择、个人资料、密码、邮箱验证码和微信绑定入口。
* - shop-controls.js:处理商店弹窗的基础按钮事件
* - shop-controls.js:处理商店弹窗、商品加载、购买、赠礼和改名卡入口
* - slot-machine.js:提供老虎机 slotPanel/slotFab Alpine 组件。
* - vip-controls.js:处理 VIP 中心弹窗、会员数据渲染、支付跳转和专属进退场设置。
* - preferences-status.js:处理聊天偏好、屏蔽系统播报和静音状态。
@@ -132,7 +132,22 @@ export {
showInlineMsg,
unbindWechat,
} from "./chat-room/profile-controls.js";
export { bindShopControls } from "./chat-room/shop-controls.js";
export {
bindShopControls,
buyItem,
closeGiftDialog,
closeRenameModal,
closeShopModal,
confirmGift,
fetchShopData,
loadShop,
openGiftDialog,
openRenameModal,
openShopModal,
renderShop,
showShopToast,
submitRename,
} from "./chat-room/shop-controls.js";
export { bindSlotMachineControls, slotFab, slotPanel } from "./chat-room/slot-machine.js";
export { bindVipControls, buyVip, closeVipModal, openVipModal, saveVipPresenceSettings, switchVipTab } from "./chat-room/vip-controls.js";
export {
@@ -249,7 +264,22 @@ import {
showInlineMsg,
unbindWechat,
} from "./chat-room/profile-controls.js";
import { bindShopControls } from "./chat-room/shop-controls.js";
import {
bindShopControls,
buyItem,
closeGiftDialog,
closeRenameModal,
closeShopModal,
confirmGift,
fetchShopData,
loadShop,
openGiftDialog,
openRenameModal,
openShopModal,
renderShop,
showShopToast,
submitRename,
} from "./chat-room/shop-controls.js";
import { bindSlotMachineControls, slotFab, slotPanel } from "./chat-room/slot-machine.js";
import { bindVipControls, buyVip, closeVipModal, openVipModal, saveVipPresenceSettings, switchVipTab } from "./chat-room/vip-controls.js";
import {
@@ -390,6 +420,19 @@ if (typeof window !== "undefined") {
showInlineMsg,
unbindWechat,
bindShopControls,
buyItem,
closeGiftDialog,
closeRenameModal,
closeShopModal,
confirmGift,
fetchShopData,
loadShop,
openGiftDialog,
openRenameModal,
openShopModal,
renderShop,
showShopToast,
submitRename,
bindSlotMachineControls,
slotFab,
slotPanel,
@@ -512,6 +555,19 @@ if (typeof window !== "undefined") {
window.sendEmailCode = sendEmailCode;
window.showInlineMsg = showInlineMsg;
window.unbindWechat = unbindWechat;
window.buyItem = buyItem;
window.closeGiftDialog = closeGiftDialog;
window.closeRenameModal = closeRenameModal;
window.closeShopModal = closeShopModal;
window.confirmGift = confirmGift;
window.fetchShopData = fetchShopData;
window.loadShop = loadShop;
window.openGiftDialog = openGiftDialog;
window.openRenameModal = openRenameModal;
window.openShopModal = openShopModal;
window.renderShop = renderShop;
window.showShopToast = showShopToast;
window.submitRename = submitRename;
// 页面加载后立即注册事件委托,具体业务逻辑仍由各子模块负责。
bindChatBanner();