Files
orico-official-website/app/index/view/mobile/topic_ssd/index.html
jsasg 2f4b0f8b76
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 4s
mobile - topic ssd
2026-05-06 14:39:04 +08:00

44 lines
1.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{extend name="public/base" /}
{block name="style"}
<link rel="stylesheet" href="__CSS__/topic_laptop/header.css">
<link rel="stylesheet" href="__CSS__/topic_laptop/footer.css">
<link rel="stylesheet" href="__CSS__/topic_ssd/index.css">
<!-- 将rem适配JS移到这里确保优先执行 -->
<script type="text/javascript">
(function (doc, win)
{
var docEl = doc.documentElement;
var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
function setRootFontSize ()
{
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
var fontSize = clientWidth / 7.5;
// 直接修改内联样式,优先级最高
docEl.setAttribute('style', 'font-size: ' + fontSize + 'px !important;');
}
setRootFontSize();
win.addEventListener(resizeEvt, setRootFontSize);
doc.addEventListener('DOMContentLoaded', setRootFontSize);
})(document, window);
</script>
{/block}
{block name="main"}
<div class="m-sc-main">
{volist name="data.top_focus_images" id="item"}
<a href="{$item.link}" target="_blank">
<img src="{$item.image}" alt="" class="m-sc-main-img">
</a>
{/volist}
<div class="m-sc-main-imgs m-sc-mt20">
{volist name="data.products" id="item"}
<a href="{$item.link}" target="_blank" class="">
<img src="{$item.image}" alt="" class="m-sc-main-img1">
</a>
{/volist}
</div>
</div>
{/block}