优化导航栏、分享海报等显示效果;优化代码及性能

This commit is contained in:
2026-07-25 13:33:51 +08:00
parent 32bf39f733
commit 7d56858616
13 changed files with 498 additions and 416 deletions
+3 -4
View File
@@ -361,10 +361,9 @@ function mu_box_show() {
function mu_box_hide(time = 2000) {
clearTimeout(trigger);
trigger = setTimeout(function () {
// 获取屏幕宽度判断是否为手机端(与歌词容器响应式逻辑保持一致)
const isMobile = $(window).width() <= 767;
// 手机端隐藏时额外向下偏移50px(可根据需要调整数值),非手机端保持默认0px
const hideTop = isMobile ? "50px" : "0px";
const hasBottomMenu = $(window).width() <= 960;
// 底部导航可见时,播放器收起到导航栏后面。
const hideTop = hasBottomMenu ? "50px" : "0px";
// 执行隐藏动画
$('.footer_nav_box').animate({