refactor: 专题 - 电力品线
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
{extend name="public/base" /}
|
{extend name="public/base" /}
|
||||||
{block name="style"}
|
{block name="style"}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="__CSS__/topic_power_prodline/index.css">
|
<link rel="stylesheet" href="__CSS__/topic_power_prodline/index.css">
|
||||||
<link rel="stylesheet" href="__CSS__/topic_power_prodline/swiper.css">
|
<link rel="stylesheet" href="__CSS__/topic_power_prodline/swiper.css">
|
||||||
<link rel="stylesheet" href="__CSS__/topic_power_prodline/nav.css">
|
<link rel="stylesheet" href="__CSS__/topic_power_prodline/nav.css">
|
||||||
@@ -12,7 +9,6 @@
|
|||||||
<link rel="stylesheet" href="__CSS__/topic_power_prodline/product_list.css">
|
<link rel="stylesheet" href="__CSS__/topic_power_prodline/product_list.css">
|
||||||
<link rel="stylesheet" href="__CSS__/topic_power_prodline/product_card.css">
|
<link rel="stylesheet" href="__CSS__/topic_power_prodline/product_card.css">
|
||||||
<link rel="stylesheet" href="__CSS__/topic_power_prodline/footer.css">
|
<link rel="stylesheet" href="__CSS__/topic_power_prodline/footer.css">
|
||||||
|
|
||||||
{/block}
|
{/block}
|
||||||
{block name="header"}
|
{block name="header"}
|
||||||
<!-- 重置header头为空 -->
|
<!-- 重置header头为空 -->
|
||||||
@@ -54,7 +50,6 @@
|
|||||||
<h2 class="advantage-section__title">{$why_choose_title.title|default=''}</h2>
|
<h2 class="advantage-section__title">{$why_choose_title.title|default=''}</h2>
|
||||||
<div class="advantage-section__list">
|
<div class="advantage-section__list">
|
||||||
{volist name="data.why_choose" id="ch"}
|
{volist name="data.why_choose" id="ch"}
|
||||||
|
|
||||||
<div class="advantage-card-wrap">
|
<div class="advantage-card-wrap">
|
||||||
<div class="advantage-card" data-target="design">
|
<div class="advantage-card" data-target="design">
|
||||||
<img src="{$ch.image}" alt="{$ch.title}:{$ch.short_title}" class="advantage-card__img">
|
<img src="{$ch.image}" alt="{$ch.title}:{$ch.short_title}" class="advantage-card__img">
|
||||||
@@ -448,7 +443,6 @@
|
|||||||
{/block}
|
{/block}
|
||||||
{block name="script"}
|
{block name="script"}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
let swiper=null;
|
let swiper=null;
|
||||||
const advantageItems = document.querySelectorAll('.advantage-card');
|
const advantageItems = document.querySelectorAll('.advantage-card');
|
||||||
let scrollTop = 0; // 保存页面滚动位置
|
let scrollTop = 0; // 保存页面滚动位置
|
||||||
@@ -742,8 +736,5 @@
|
|||||||
// 初始化时触发滚动事件,确保状态正确
|
// 初始化时触发滚动事件,确保状态正确
|
||||||
window.dispatchEvent(new Event('scroll'));
|
window.dispatchEvent(new Event('scroll'));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{/block}
|
{/block}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
{block name="main"}
|
{block name="main"}
|
||||||
<a class="header" href="/">
|
<a class="header" href="/">
|
||||||
<div class="header-img">
|
<div class="header-img">
|
||||||
<!-- <img src="__IMAGES__/logo.png" alt=""> -->
|
<img src="__IMAGES__/logo.png" alt="">
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<!-- 轮播核心容器 -->
|
<!-- 轮播核心容器 -->
|
||||||
@@ -364,7 +364,6 @@
|
|||||||
{/block}
|
{/block}
|
||||||
{block name="script"}
|
{block name="script"}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
let swiper=null;
|
let swiper=null;
|
||||||
const advantageItems = document.querySelectorAll('.advantage-card');
|
const advantageItems = document.querySelectorAll('.advantage-card');
|
||||||
let scrollTop = 0; // 保存页面滚动位置
|
let scrollTop = 0; // 保存页面滚动位置
|
||||||
@@ -579,8 +578,5 @@
|
|||||||
// 初始化时触发滚动事件,确保状态正确
|
// 初始化时触发滚动事件,确保状态正确
|
||||||
window.dispatchEvent(new Event('scroll'));
|
window.dispatchEvent(new Event('scroll'));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{/block}
|
{/block}
|
||||||
|
|||||||
Reference in New Issue
Block a user