前端优化
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>
|
||||
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
<a class="b02e75 img-pic thumb pic60 lazyload"
|
||||
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'
|
||||
title="{$Video.v_name ?? ''} - {$Video.v_parent_category ?? ''}{$Video.v_category ?? ''}免费高清电影在线观看"
|
||||
data-src="{$Video.v_pic ?? ''}"
|
||||
style="background-image: url("/static/img/load.png");">
|
||||
>
|
||||
<img class="lazyload-img" src="/static/img/load.png" data-src="{$Video.v_pic ?? ''}"
|
||||
alt="{$Video.v_name ?? ''} - {$Video.v_parent_category ?? ''}{$Video.v_category ?? ''}免费高清电影在线观看">
|
||||
<span class="bb17e9 iconfont icon-play play hidden-xs"></span>
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
<a class="stui-vodlist__thumb lazyload-bg"
|
||||
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'
|
||||
title="{$Video.v_name ?? ''} - {$Video.v_parent_category ?? ''}{$Video.v_category ?? ''}免费高清电影在线观看"
|
||||
data-src="{$Video.v_pic ?? ''}"
|
||||
style="background-image: url("/static/img/load.png");">
|
||||
>
|
||||
<img class="lazyload-img" src="/static/img/load.png" data-src="{$Video.v_pic ?? ''}" style="display: none;"
|
||||
alt="{$Video.v_name ?? ''} - {$Video.v_parent_category ?? ''}{$Video.v_category ?? ''}免费高清电影在线观看">
|
||||
<span class="play hidden-xs"></span>
|
||||
|
||||
@@ -357,6 +357,7 @@
|
||||
var intJumpTimeTwoEnd = 1;
|
||||
var arrPlayUrl = {$arrVideo.v_play_url | json_encode | raw};
|
||||
var strPlayUrl = ""
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user