前端优化

This commit is contained in:
make
2025-07-06 23:30:12 +08:00
parent 76b0d5fa04
commit 7260a8f134
33 changed files with 628 additions and 416 deletions

View File

@@ -14,14 +14,30 @@
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link href="/template/videofengniao/css/app2.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href='/template/videofengniao/static_ban/base_common.css?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'>
<link rel="stylesheet" type="text/css"
href='/template/videofengniao/static_ban/base_common.css?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'>
{block name="head"}{/block}
{block name="head-css"}{/block}
{block name="head-js"}{/block}
<script>
const strPcPath = `{$strPcPath}`;
</script>
<script>
(function () {
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
</head>
@@ -42,12 +58,12 @@
<span> {$val.v_category}</span>
</a>
</li>
{/video:categorytype}
{/video:categorytype}
<li>
<a href="{$strRankUrlTemp}">
<img src="/template/videolaoniu/images/icon/bd.png" class="b7693d index-icon">
<span class="eb9286 sTit">排行榜</span>
</a>
</a>
</li>
</ul>
</div>
@@ -79,12 +95,12 @@
<span> {$val.v_category}</span>
</a>
</li>
{/video:categorytype}
{/video:categorytype}
<li>
<a href="{$strRankUrlTemp}">
<img src="/template/videolaoniu/images/icon/bd.png" class="b7693d index-icon">
<span class="eb9286 sTit">排行榜</span>
</a>
</a>
</li>
</ul>
</div>
@@ -115,20 +131,7 @@
{$DomainModel->d_statis|raw}
<script>
(function () {
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
</body>