refactor: 专题 - 电力品线
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s

This commit is contained in:
2025-11-25 17:36:09 +08:00
parent 7c87ea07ed
commit 7a987cd672
10 changed files with 741 additions and 719 deletions

View File

@@ -300,8 +300,10 @@
<a class="product-left" href="{$cts_lf.link}">
<img src="{$cts_lf.image}" alt="{$cts_lf.title}" class="product-img">
<!-- 公共类+定位类:尺寸统一,定位不同 -->
<div class="product-img-hover product-img-1">
<img src="{$cts_lf.extra_image}" alt="{$cts_lf.title}">
<!--style="display:flex;justify-content: center;"-->
<div class="product-img-hover product-img-1" >
<!--style="width:70%"-->
<img src="{$cts_lf.extra_image}" alt="{$cts_lf.title}" >
</div>
</a>
{/notempty}
@@ -463,8 +465,9 @@
productRights.forEach((rightContainer) => {
const img = rightContainer.querySelector('.right-img');
const video = rightContainer.querySelector('.right-video');
const videoSrc = video.src.trim()
if (!img || !video) return;
if(!videoSrc) return;
const rect = rightContainer.getBoundingClientRect();
// 视口判断容器进入视口50%以上视为活跃
const isInView =