This commit is contained in:
@@ -30,14 +30,13 @@
|
||||
<script type="text/javascript">
|
||||
(function (doc, win)
|
||||
{
|
||||
|
||||
var docEl = doc.documentElement;
|
||||
var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
|
||||
var designWidth = 2560;
|
||||
var designRemPx = 100;
|
||||
function setRootFontSize ()
|
||||
{
|
||||
console.log('触发')
|
||||
|
||||
var clientWidth = docEl.clientWidth;
|
||||
if (!clientWidth) return;
|
||||
var fontSize = (clientWidth / designWidth) * designRemPx;
|
||||
@@ -55,32 +54,26 @@
|
||||
{block name="main"}
|
||||
{notempty name="data.top_focus_images"}
|
||||
<div class="swiper-container auto-swiper-container" style="margin-top:60px;">
|
||||
{eq name=":cookie('think_lang')" value="en-us"}
|
||||
<div class="swiper-wrapper">
|
||||
{volist name="data.top_focus_images" id="tfi"}
|
||||
<a class="swiper-slide auto-swiper-slide" href="{$tfi.link}">
|
||||
<img src="{$tfi.image}" alt="{$tfi.title}" />
|
||||
</a>
|
||||
{/volist}
|
||||
</div>
|
||||
{else/}
|
||||
<div class="swiper-wrapper">
|
||||
{volist name="data.top_focus_images" id="tfi"}
|
||||
<div class="swiper-slide auto-swiper-slide">
|
||||
<div class="swiper-container-texts" style="color:#fff">
|
||||
<div class="swiper-container-texts-t">{$tfi.title}</div>
|
||||
<div class="swiper-container-texts-p">{$tfi.desc||raw|htmlspecialchars_decode}</div>
|
||||
<div class="swiper-container-texts-img">
|
||||
<a href="{$tfi.link}">
|
||||
<img src="__IMAGES__/topic_laptop/ljgd.png" alt="" loading="lazy" >
|
||||
</a>
|
||||
</div>
|
||||
<div class="swiper-wrapper">
|
||||
{volist name="data.top_focus_images" id="tfi"}
|
||||
<div class="swiper-slide auto-swiper-slide">
|
||||
<div class="swiper-container-texts" style="color:#fff">
|
||||
<div class="swiper-container-texts-t">{$tfi.title}</div>
|
||||
<div class="swiper-container-texts-p">{$tfi.desc||raw|htmlspecialchars_decode}</div>
|
||||
<div class="swiper-container-texts-img">
|
||||
<a href="{$tfi.link}">
|
||||
{eq name=":cookie('think_lang')" value="en-us"}
|
||||
<img src="__IMAGES__/topic_laptop/eljgd.png" alt="" >
|
||||
{else/}
|
||||
<img src="__IMAGES__/topic_laptop/ljgd.png" alt="" >
|
||||
{/eq}
|
||||
</a>
|
||||
</div>
|
||||
<img src="{$tfi.image}" alt="{$tfi.title}" loading="lazy" />
|
||||
</div>
|
||||
{/volist}
|
||||
<img src="{$tfi.image}" alt="{$tfi.title}" />
|
||||
</div>
|
||||
{/eq}
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
{/notempty}
|
||||
{notempty name="data.perf"}
|
||||
@@ -214,7 +207,6 @@
|
||||
<img src="{$gpu_first_section.extra_image|default=''}" alt="" loading="lazy" >
|
||||
</div>
|
||||
{/eq}
|
||||
|
||||
</div>
|
||||
<div class="readon-img-box opacity0" data-order="11">
|
||||
{volist name="data.gpu" id="go"}
|
||||
@@ -275,7 +267,6 @@
|
||||
</div>
|
||||
{notempty name="data.ram"}
|
||||
<div class="wift" >
|
||||
|
||||
<div class="wift-bg" style="background: url('{$data.ram.image}');background-size:100% auto;">
|
||||
<div class="wift-test">
|
||||
<div class="wift-t opacity0" data-order="12">{$data.ram.title|raw}</div>
|
||||
@@ -290,7 +281,6 @@
|
||||
<div class="wift-bg-img opacity0" data-order="14">
|
||||
{$data.ram.desc|raw}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{/notempty}
|
||||
@@ -299,19 +289,18 @@
|
||||
{assign name="hard_drive_first" value=":array_shift($data.hard_drive)"/}
|
||||
<div class="m2-bg" style="background: url('{$hard_drive_first.image|default=\'\'}');background-size:100% auto">
|
||||
{eq name=":cookie('think_lang')" value="en-us"}
|
||||
<div class="m2-bg-t1 opacity0" data-order="15">{$hard_drive_first.title|default=''|raw}</div>
|
||||
<div class="m2-bg-t1 opacity0" data-order="15">{$hard_drive_first.title|default=''|raw}</div>
|
||||
{else/}
|
||||
<div class="m2-bg-t opacity0" data-order="15">{$hard_drive_first.title|default=''|raw}</div>
|
||||
<div class="m2-bg-t opacity0" data-order="15">{$hard_drive_first.title|default=''|raw}</div>
|
||||
{/eq}
|
||||
<div class="m2-img-box opacity0" data-order="16">
|
||||
{volist name="data.hard_drive" id="ho"}
|
||||
<img src="{$ho.image}" alt="" loading="lazy" >
|
||||
{/volist}
|
||||
</div>
|
||||
<div class="m2-img-box opacity0" data-order="16">
|
||||
{volist name="data.hard_drive" id="ho"}
|
||||
<img src="{$ho.image}" alt="" loading="lazy" >
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/notempty}
|
||||
|
||||
<div class="fs">
|
||||
{notempty name="data.cooling_system"}
|
||||
{notempty name="$data.cooling_system.0"}
|
||||
@@ -332,13 +321,13 @@
|
||||
</video>
|
||||
<div class="fs-ts">{$data.cooling_system.0.desc|raw}</div>
|
||||
{/notempty}
|
||||
<div class="fs-box-img opacity0" data-order="18">
|
||||
<div class="fs-box-img" >
|
||||
<div class="fs-h-img">
|
||||
{notempty name="data.cooling_system.1"}<img src="{$data.cooling_system.1.image}" alt="" loading="lazy" >{/notempty}
|
||||
{notempty name="data.cooling_system.2"}<img src="{$data.cooling_system.2.image}" alt="" loading="lazy" >{/notempty}
|
||||
{notempty name="data.cooling_system.1"}<img src="{$data.cooling_system.1.image}" alt="" >{/notempty}
|
||||
{notempty name="data.cooling_system.2"}<img src="{$data.cooling_system.2.image}" alt="" >{/notempty}
|
||||
</div>
|
||||
<div class="fs-b-img" style="min-height: 20px;">
|
||||
{notempty name="data.cooling_system.3"}<img src="{$data.cooling_system.3.image}" alt="" loading="lazy" >{/notempty}
|
||||
{notempty name="data.cooling_system.3"}<img src="{$data.cooling_system.3.image}" alt="" >{/notempty}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -346,10 +335,10 @@
|
||||
{/notempty}
|
||||
{notempty name="data.apps"}
|
||||
<div class="xn">
|
||||
<div class="xn-t opacity0" data-order="19">{$data.apps.title|default=''}</div>
|
||||
<div class="xn-t" >{$data.apps.title|default=''}</div>
|
||||
<div class="xn-container">
|
||||
<div class="xn-image-section">
|
||||
<img src="{$data.apps.image|default=''}" alt="" class="zoom-image first-image" loading="lazy">
|
||||
<img src="{$data.apps.image|default=''}" alt="" class="zoom-image first-image" >
|
||||
</div>
|
||||
</div>
|
||||
<div class="xn-p">{$data.apps.desc|default=''|raw}</div>
|
||||
@@ -363,23 +352,19 @@
|
||||
<div class="ips-t">{$soft_light_first.title|raw}</div>
|
||||
<div class="ips-p">{$soft_light_first.short_title|raw}</div>
|
||||
{/notempty}
|
||||
|
||||
|
||||
{eq name=":cookie('think_lang')" value="en-us"}
|
||||
<div class="ips-img1 opacity0" data-order="21">
|
||||
{volist name="data.screen_soft_light" id="so"}
|
||||
<img src="{$so.image}" alt="" loading="lazy" >
|
||||
{/volist}
|
||||
</div>
|
||||
<div class="ips-img1 opacity0" data-order="21">
|
||||
{volist name="data.screen_soft_light" id="so"}
|
||||
<img src="{$so.image}" alt="" loading="lazy" >
|
||||
{/volist}
|
||||
</div>
|
||||
{else/}
|
||||
<div class="ips-img opacity0" data-order="21">
|
||||
{volist name="data.screen_soft_light" id="so"}
|
||||
<img src="{$so.image}" alt="" loading="lazy" >
|
||||
{/volist}
|
||||
</div>
|
||||
<div class="ips-img opacity0" data-order="21">
|
||||
{volist name="data.screen_soft_light" id="so"}
|
||||
<img src="{$so.image}" alt="" loading="lazy" >
|
||||
{/volist}
|
||||
</div>
|
||||
{/eq}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{/notempty}
|
||||
@@ -1260,7 +1245,6 @@
|
||||
const tabT = document.querySelectorAll('.tab-t');
|
||||
const indicator = document.querySelector('.tab-indicator');
|
||||
const securityVideo = document.getElementById('securityVideo');
|
||||
console.log(tabT,'=========tabT=============')
|
||||
let prevIndex = 0;
|
||||
const tabRects = [];
|
||||
|
||||
@@ -1581,7 +1565,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
item.addEventListener('click', () => {
|
||||
if (isTransitioning || currentRealIndex === idx) return;
|
||||
isTransitioning = true;
|
||||
|
||||
|
||||
// 直接滑到目标图片
|
||||
carouselImgs.style.transform = `translateX(-${idx * 100}%)`;
|
||||
currentRealIndex = idx;
|
||||
|
||||
@@ -43,8 +43,3 @@ body {
|
||||
/* [data-order="19"] {
|
||||
transition: all 0.3s ease-out 0.2s !important;
|
||||
} */
|
||||
[data-order], .annotation, .progress-fill, .zoom-image, .float-card {
|
||||
transform: translateZ(0); /* 开启硬件加速,将元素交给 GPU 渲染 */
|
||||
will-change: opacity, transform; /* 告诉浏览器提前优化这个元素 */
|
||||
backface-visibility: hidden; /* 防止元素翻转时的闪烁 */
|
||||
}
|
||||
@@ -189,14 +189,14 @@
|
||||
.progress-p {
|
||||
color: #cbcfd8;
|
||||
font-size: clamp(16px, 1vw, 0.22rem);
|
||||
margin-top: 1.23rem;
|
||||
margin-bottom: 5.04rem;
|
||||
margin-top: 1.56rem;
|
||||
margin-bottom: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.progress-p1 {
|
||||
color: #cbcfd8;
|
||||
font-size: clamp(16px, 1vw, 0.22rem);
|
||||
margin-top: 1.56rem;
|
||||
/* margin-bottom: 2.3rem; */
|
||||
/* margin-bottom: 1.66rem; */
|
||||
text-align: center;
|
||||
}
|
||||
@@ -39,7 +39,7 @@
|
||||
color: #cbcfd8;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
padding-top: 0.39rem;
|
||||
padding-top: 0.43rem;
|
||||
line-height: 1.8;
|
||||
font-family: "HarmonyOS-Light";
|
||||
}
|
||||
|
||||
BIN
public/static/index/pc/images/topic_laptop/eljgd.png
Normal file
BIN
public/static/index/pc/images/topic_laptop/eljgd.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
Reference in New Issue
Block a user