迁移功能菜单快捷入口
This commit is contained in:
@@ -357,54 +357,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行功能菜单中的快捷入口,并在打开目标面板前先关闭功能菜单。
|
||||
*
|
||||
* @param {string} action 快捷入口动作名
|
||||
*/
|
||||
function runFeatureShortcut(action) {
|
||||
closeFeatureMenu();
|
||||
|
||||
if (action === 'shop' && typeof window.openShopModal === 'function') {
|
||||
window.openShopModal();
|
||||
return;
|
||||
}
|
||||
|
||||
if (action === 'vip' && typeof window.openVipModal === 'function') {
|
||||
window.openVipModal();
|
||||
return;
|
||||
}
|
||||
|
||||
if (action === 'game' && typeof window.openGameHall === 'function') {
|
||||
window.openGameHall();
|
||||
return;
|
||||
}
|
||||
|
||||
if (action === 'avatar' && typeof window.openAvatarPicker === 'function') {
|
||||
window.openAvatarPicker();
|
||||
return;
|
||||
}
|
||||
|
||||
if (action === 'bank' && typeof window.openBankModal === 'function') {
|
||||
window.openBankModal();
|
||||
return;
|
||||
}
|
||||
|
||||
if (action === 'marriage' && typeof window.openMarriageStatusModal === 'function') {
|
||||
window.openMarriageStatusModal();
|
||||
return;
|
||||
}
|
||||
|
||||
if (action === 'friend' && typeof window.openFriendPanel === 'function') {
|
||||
window.openFriendPanel();
|
||||
return;
|
||||
}
|
||||
|
||||
if (action === 'settings' && typeof window.openSettingsModal === 'function') {
|
||||
window.openSettingsModal();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交状态设置/清除请求。
|
||||
*
|
||||
@@ -3270,7 +3222,6 @@
|
||||
window.closeFeatureMenu = closeFeatureMenu;
|
||||
window.openDailyStatusEditor = openDailyStatusEditor;
|
||||
window.closeDailyStatusEditor = closeDailyStatusEditor;
|
||||
window.runFeatureShortcut = runFeatureShortcut;
|
||||
window.runAdminAction = runAdminAction;
|
||||
window.selectEffect = selectEffect;
|
||||
window.triggerEffect = triggerEffect;
|
||||
|
||||
Reference in New Issue
Block a user