前端优化

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

@@ -26,10 +26,25 @@
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}">
@@ -65,12 +80,12 @@
</div>
<ul class="stui-header__menu type-slide">
{if $DomainModel->info_id > 0}
<li class="{if $strPageCode == 'info'}active{/if}">
<a href="/">首页</a>
</li>
<li class=' {if $strPageCode == "home"}active{/if} ' >
<li class=' {if $strPageCode == "home"}active{/if} '>
<a href="/vindex">影视首页</a>
</li>
{else}
@@ -117,7 +132,7 @@
{include file="public/footer" /}
{block name="customize"}{/block}
<script>
const strPushApi = `{site:cfg code="PUSH_API_DOMAIN" encode="false"/}`;
@@ -135,21 +150,8 @@
{$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>