From 7ec97c39a7336699f263ce30b37ed843c51cc747 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Wed, 31 Dec 2025 16:55:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8AinitVideoTip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/view/mobile/topic_laptop/index.html | 20 +++++++++---------- app/index/view/pc/topic_laptop/index.html | 18 ++++++++--------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/app/index/view/mobile/topic_laptop/index.html b/app/index/view/mobile/topic_laptop/index.html index 819bdbfc..a56d293c 100644 --- a/app/index/view/mobile/topic_laptop/index.html +++ b/app/index/view/mobile/topic_laptop/index.html @@ -1085,15 +1085,15 @@ let videoTip = null; // 初始化视频提示 - const initVideoTip = () => - { - if (!fsBox || videoTip) return; - videoTip = document.createElement('div'); - videoTip.className = 'video-tip'; - videoTip.innerText = '点击播放视频'; - fsBox.appendChild(videoTip); - videoTip.style.display = 'none'; - }; + // const initVideoTip = () => + // { + // if (!fsBox || videoTip) return; + // videoTip = document.createElement('div'); + // videoTip.className = 'video-tip'; + // videoTip.innerText = '点击播放视频'; + // fsBox.appendChild(videoTip); + // videoTip.style.display = 'none'; + // }; // 停止所有视频(仅暂停,无显隐) function stopAllVideos () @@ -1180,7 +1180,7 @@ }; // 初始化执行 - initVideoTip(); + // initVideoTip(); window.addEventListener('scroll', handleVideoScroll, { passive: true }); window.addEventListener('resize', handleVideoResize); // 页面加载完成后尝试播放视频 diff --git a/app/index/view/pc/topic_laptop/index.html b/app/index/view/pc/topic_laptop/index.html index fae0c8f6..3b3f7a7f 100644 --- a/app/index/view/pc/topic_laptop/index.html +++ b/app/index/view/pc/topic_laptop/index.html @@ -1040,14 +1040,14 @@ let videoTip = null; // 初始化视频提示 - const initVideoTip = () => { - if (!fsBox || videoTip) return; - videoTip = document.createElement('div'); - videoTip.className = 'video-tip'; - videoTip.innerText = '点击播放视频'; - fsBox.appendChild(videoTip); - videoTip.style.display = 'none'; - }; + // const initVideoTip = () => { + // if (!fsBox || videoTip) return; + // videoTip = document.createElement('div'); + // videoTip.className = 'video-tip'; + // videoTip.innerText = '点击播放视频'; + // fsBox.appendChild(videoTip); + // videoTip.style.display = 'none'; + // }; // 停止所有视频 function stopAllVideos () @@ -1140,7 +1140,7 @@ }; // 初始化 - initVideoTip(); + // initVideoTip(); window.addEventListener('scroll', handleVideoScroll, { passive: true }); window.addEventListener('resize', handleVideoResize); // 页面加载完成后尝试播放