前端优化

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

@@ -16,14 +16,7 @@
<link rel="stylesheet" type="text/css" href="/template/videolaoniu/css/swiper-bundle.min.css">
<link rel="stylesheet" type="text/css" href="/template/videolaoniu/css/global.css">
<link rel="stylesheet" type="text/css" href="/template/videolaoniu/css/style.css">
<!--
<script>var maccms = { "path": "", "mid": "", "url": "www.xgcs8888.com", "wapurl": "", "mob_status": "0" };</script>
<script src="/template/videolaoniu/js/jquery.min.js"></script>
<script src="/template/videolaoniu/js/jquery.lazyload.min.js"></script>
<script src="/template/videolaoniu//static/js/home.js"></script>
<script src="/template/videolaoniu/js/swiper-bundle.min.js"></script>
<script src="/template/videolaoniu/js/ewave-global.js"></script>
<script src="/template/videolaoniu/js/ewave-common.js"></script> -->
{block name="head"}{/block}
{block name="head-css"}{/block}
@@ -31,10 +24,25 @@
<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>
{block name="strPageCode"}
<?php $strPageCode = 'home'; ?>
<?php $strPageCode = 'home'; ?>
{/block}
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">
@@ -55,7 +63,7 @@
<li class="{if $strPageCode == 'info'}active{/if} f823b1 swiper-slide hidden-sm hidden-xs ">
<a href="/">首页</a>
</li>
<li class=' {if $strPageCode == "home"}active{/if} f823b1 swiper-slide hidden-sm hidden-xs' >
<li class=' {if $strPageCode == "home"}active{/if} f823b1 swiper-slide hidden-sm hidden-xs'>
<a href="/vindex">影视首页</a>
</li>
{else}
@@ -65,13 +73,15 @@
{/if}
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
<li class="ab5512 swiper-slide hidden-xs {if $val.v_category_en == $Request.route.strParentCategory}active{/if}">
<li
class="ab5512 swiper-slide hidden-xs {if $val.v_category_en == $Request.route.strParentCategory}active{/if}">
<a href='{site:vciurl parent_category="$val.v_category_en" /}'>
{$val.v_category}
</a>
</li>
{/video:categorytype}
<li class="ab5512 swiper-slide hidden-xs {if $val.v_category_en == $Request.route.strParentCategory}active{/if}">
{/video:categorytype}
<li
class="ab5512 swiper-slide hidden-xs {if $val.v_category_en == $Request.route.strParentCategory}active{/if}">
<a href='{$strRankUrlTemp}'>
排行榜
</a>
@@ -90,9 +100,9 @@
<div id="user-playlog" class="b7004f user-playlog dropdown-hover mac_history">
<a href="{$strHistoryUrlTemp}">
<i class="abe38c iconfont icon-shijian"></i>
<span class="dd3ef2 none">观看记录</span>
<span class="dd3ef2 none">观看记录</span>
</a>
</div>
</div>
</header>
@@ -104,15 +114,15 @@
<span class="d1f768 sTit">首页</span>
</a>
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
<a href='{site:vciurl parent_category="$val.v_category_en" /}'>
<img src="/template/videolaoniu/images/icon/{$val.v_category_en}.png" class="b7693d index-icon">
<span class="eb9286 sTit"> {$val.v_category}</span>
</a>
{/video:categorytype}
<a href='{site:vciurl parent_category="$val.v_category_en" /}'>
<img src="/template/videolaoniu/images/icon/{$val.v_category_en}.png" class="b7693d index-icon">
<span class="eb9286 sTit"> {$val.v_category}</span>
</a>
{/video:categorytype}
<a href="{$strRankUrlTemp}">
<img src="/template/videolaoniu/images/icon/bd.png" class="b7693d index-icon">
<span class="eb9286 sTit">排行榜</span>
</a>
</a>
</nav>
</div>
@@ -143,20 +153,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>