前端优化
This commit is contained in:
@@ -25,10 +25,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}">
|
||||
@@ -50,15 +65,14 @@
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<div class="stui-header__search">
|
||||
<form id="search" name="search" method="get" action="{$strSearchListUrlTemp}"
|
||||
>
|
||||
<input type="text" id="wd" name="keyword"
|
||||
class="mac_wd form-control mac_input" value="" placeholder="请输入关键词..."
|
||||
autocomplete="off">
|
||||
<button class="submit" id="searchbutton" type="submit"
|
||||
name="page"><i class="icon iconfont icon-search"></i></button></form>
|
||||
<form id="search" name="search" method="get" action="{$strSearchListUrlTemp}">
|
||||
<input type="text" id="wd" name="keyword" class="mac_wd form-control mac_input" value=""
|
||||
placeholder="请输入关键词..." autocomplete="off">
|
||||
<button class="submit" id="searchbutton" type="submit" name="page"><i
|
||||
class="icon iconfont icon-search"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="stui-header__menu type-slide">
|
||||
@@ -67,7 +81,7 @@
|
||||
<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}
|
||||
@@ -82,7 +96,7 @@
|
||||
{$val.v_category}
|
||||
</a>
|
||||
</li>
|
||||
{/video:categorytype}
|
||||
{/video:categorytype}
|
||||
<li class="{if $val.v_category_en == $Request.route.strParentCategory}active{/if}">
|
||||
<a href='{$strRankUrlTemp}'>
|
||||
排行榜
|
||||
@@ -118,20 +132,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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user