前端优化

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

@@ -386,7 +386,7 @@ $arrRoutes = [
],
//搜索
'video_search' => ['/search', '/explore', '/sousuo', '/find', '/query', '/keywords'],
'video_search' => ['/search', '/explore', '/sousuo', '/find', '/query', '/keywords', '/get', '/key', '/s'],
// 历史记录
'video_history' => ['/history', '/reading-history', '/seed-record', '/lishi', '/kan-lishi', '/browse-past', '/jilu', '/zuji', '/seed'],

View File

@@ -21,6 +21,20 @@
<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>
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">

View File

@@ -28,6 +28,20 @@
<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"}

View File

@@ -26,6 +26,20 @@
<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>
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">

View File

@@ -20,6 +20,20 @@
<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>
<!-- 接收子模板传递的 active_nav -->

View File

@@ -26,6 +26,20 @@
<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>
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">

View File

@@ -19,6 +19,20 @@
<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>
<!-- 接收子模板传递的 active_nav -->

View File

@@ -37,6 +37,21 @@
{block name="head"}{/block}
<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>
<body style="font-size: 14px;" class='{block name="body-class"}{/block}' >

View File

@@ -28,6 +28,20 @@
<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>
<body class="novel_home {block name='body-class'}{/block}" id="{block name='body-id'}{/block}">

View File

@@ -1,5 +1,3 @@
<!-- footer -->
<div id="firendlink">
友情连接:
@@ -11,15 +9,16 @@
最新标签:
{site:forgelist count="30" d_key="d_key" d_val="ForgeNovel" cache_life="3600"}
<a
href='{site:nnurl n_id="$ForgeNovel.n_id" n_py="$ForgeNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>
<a href='{site:nnurl n_id="$ForgeNovel.n_id" n_py="$ForgeNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>
{$ForgeNovel.n_forge_title}
</a>
{/site:forgelist}
</div>
<div class="footer_cont"><p>本站所有小说为转载作品,所有章节均由网友上传,转载至本站只是为了宣传本书让更多读者欣赏。如有侵权,请发送邮箱,我们删除</p>
<p>Copyright © 2019 All Rights Reserved.</p></div>
<div class="footer_cont">
<p>本站所有小说为转载作品,所有章节均由网友上传,转载至本站只是为了宣传本书让更多读者欣赏。如有侵权,请发送邮箱,我们删除</p>
<p>Copyright © 2019 All Rights Reserved.</p>
</div>
<div class="s-footer-tel">

View File

@@ -31,9 +31,20 @@
</script>
<style type="text/css">
</style>
<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"}
@@ -65,7 +76,8 @@
{/if}
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
<li class=" visible-inline-lg {if $val.v_category_en == $Request.route.strParentCategory}active{/if}">
<li
class=" visible-inline-lg {if $val.v_category_en == $Request.route.strParentCategory}active{/if}">
<a href='{site:vciurl parent_category="$val.v_category_en" /}'>
{$val.v_category}
</a>
@@ -78,11 +90,13 @@
</li>
<li class="dropdown-hover dropdown-toggle"><a href="javascript:;">频道<i class="fa fa-angle-down"></i></a>
<li class="dropdown-hover dropdown-toggle"><a href="javascript:;">频道<i
class="fa fa-angle-down"></i></a>
<div class="dropdown-box bottom fadeInDown clearfix">
<ul class="item nav-list clearfix">
<li class="col-lg-5 col-md-5 col-sm-5 col-xs-3 ">
<a class="btn btn-sm btn-block {if $Request.route.strParentCategory == ''}btn-warm{else}btn-default{/if}" href="/">首页</a>
<a class="btn btn-sm btn-block {if $Request.route.strParentCategory == ''}btn-warm{else}btn-default{/if}"
href="/">首页</a>
</li>
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
<li class="col-lg-5 col-md-5 col-sm-5 col-xs-3 ">
@@ -109,8 +123,7 @@
</ul>
<div class="myui-header__search search-box">
<a class="search-select dropdown-hover"
href="javascript:;">
<a class="search-select dropdown-hover" href="javascript:;">
<span class="text">视频</span>
<i class="fa fa-caret-down"></i>
<div class="dropdown-box bottom fadeInDown">
@@ -120,9 +133,8 @@
</div>
</a>
<form id="search" name="search" method="get" action="{$strSearchListUrlTemp}">
<input type="text" id="wd" name="keyword"
class="search_wd form-control ac_input" value="" placeholder="请输入关键字" autocomplete="off"
style=" padding-left: 65px; ">
<input type="text" id="wd" name="keyword" class="search_wd form-control ac_input" value=""
placeholder="请输入关键字" autocomplete="off" style=" padding-left: 65px; ">
<button class="submit search_submit" id="searchbutton" type="submit" name="submit">
<i class="fa fa-search"></i>
</button>
@@ -138,8 +150,7 @@
d_key="key" d_val="Video"
cache_life="3600"}
<p>
<a class="text-333"
href='{site:vsurl key="$Video.v_name" p="1"/}'
<a class="text-333" href='{site:vsurl key="$Video.v_name" p="1"/}'
title="{$Video.v_name}">
<span class="badge badge-first">{$key++}</span>
{$Video.v_name}
@@ -152,10 +163,10 @@
<ul class="myui-header__user">
<li class="visible-xs">
<form id="search" name="search" method="get" action="{$strSearchListUrlTemp}">
<input type="text" id="wd" name="keyword"
class="search_wd form-control ac_input" value="" placeholder="请输入关键字" autocomplete="off"
style=" padding-left:2px; ">
<button class="submit search_submit h5-searchbutton" id="h5-searchbutton" type="submit" name="submit">
<input type="text" id="wd" name="keyword" class="search_wd form-control ac_input"
value="" placeholder="请输入关键字" autocomplete="off" style=" padding-left:2px; ">
<button class="submit search_submit h5-searchbutton" id="h5-searchbutton" type="submit"
name="submit">
<i class="fa fa-search"></i>
</button>
</form>
@@ -200,20 +211,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>
<script>

View File

@@ -517,6 +517,8 @@
var intJumpTimeTwoEnd = 1;
var arrPlayUrl = {$arrVideo.v_play_url | json_encode | raw};
var strPlayUrl = ""
</script>
{/block}

View File

@@ -26,6 +26,21 @@
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"}
@@ -136,20 +151,7 @@
<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>

View File

@@ -4,7 +4,7 @@
{if !empty($arrGrm[$key + [start]])}
{$arrGrm[$key+[start]]|raw}
{/if}
<a style="color: rgb(233, 93, 80); background-image: url(&quot;/static/img/default.jpg&quot;);"
<a style="color: rgb(233, 93, 80); background-image: url(&quot;/static/img/loading.webp&quot;);"
class="stui-vodlist__thumb lazyload-bg" href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'
title="{$Video.v_name}"

View File

@@ -402,6 +402,9 @@
var intJumpTimeTwoEnd = 1;
var arrPlayUrl = {$arrVideo.v_play_url|json_encode|raw} ;
var strPlayUrl = ""
</script>
{/block}

View File

@@ -26,6 +26,21 @@
<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"}
@@ -61,7 +76,8 @@
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
<li class='ac50b3 swiper-slide dropdown-hover {if $val.v_category_en == $Request.route.strParentCategory}active{/if}'>
<li
class='ac50b3 swiper-slide dropdown-hover {if $val.v_category_en == $Request.route.strParentCategory}active{/if}'>
<a href='{site:vciurl parent_category="$val.v_category_en" /}'>{$val.v_category}</a>
<div class="bed39b dropdown-box bottom fadeInDown clearfix" style="padding-top: 0;">
@@ -111,15 +127,16 @@
<div
class="ab3059 nav-box hidden-md hidden-lg swiper-initialized swiper-horizontal swiper-pointer-events swiper-free-mode swiper-backface-hidden">
<ul class="f34760 swiper-wrapper" id="swiper-wrapper-cc8105579edaa1a3" aria-live="polite">
<li class="a4f250 nav-item swiper-slide {if $Request.route.strParentCategory == ''}active swiper-slide-active{/if}" role="group"
aria-label="1 / 8">
<li class="a4f250 nav-item swiper-slide {if $Request.route.strParentCategory == ''}active swiper-slide-active{/if}"
role="group" aria-label="1 / 8">
<a href="/">
<i class="bd0907 nav-item-icon home"></i>
<span class="b08159 nav-item-text">首页</span>
</a>
</li>
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
<li class='e544e2 nav-item swiper-slide swiper-slide-next {if $val.v_category_en == $Request.route.strParentCategory}active swiper-slide-active{/if}' role="group" aria-label="2 / 8">
<li class='e544e2 nav-item swiper-slide swiper-slide-next {if $val.v_category_en == $Request.route.strParentCategory}active swiper-slide-active{/if}'
role="group" aria-label="2 / 8">
<a href='{site:vciurl parent_category="$val.v_category_en" /}'>
<i class="afd4ea nav-item-icon dy"></i>
<span class="d8f67b nav-item-text">{$val.v_category}</span>
@@ -205,20 +222,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>

View File

@@ -424,6 +424,7 @@
var intJumpTimeTwoEnd = 1;
var arrPlayUrl = {$arrVideo.v_play_url | json_encode | raw};
var strPlayUrl = ""
</script>
{/block}

View File

@@ -14,7 +14,8 @@
<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}
@@ -22,6 +23,21 @@
<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>
@@ -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>

View File

@@ -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(&quot;/static/img/load.png&quot;);">
>
<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>

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,6 +24,21 @@
<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"}
@@ -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}">
<li
class="ab5512 swiper-slide hidden-xs {if $val.v_category_en == $Request.route.strParentCategory}active{/if}">
<a href='{$strRankUrlTemp}'>
排行榜
</a>
@@ -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>

View File

@@ -7,9 +7,8 @@
<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(&quot;/static/img/load.png&quot;);">
<img class="lazyload-img" src="/static/img/load.png" data-src="{$Video.v_pic ?? ''}"
>
<img class="lazyload-img" src="/static/img/loading.webp" 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>
<span class="e31f51 score">{$Video.v_box_office ?? 0}亿</span>

View File

@@ -3,12 +3,11 @@
{if !empty($arrGrm[$key + [start]])}
{$arrGrm[$key+[start]]|raw}
{/if}
<a class="b02e75 img-pic thumb pic60 lazyload-bg"
<a class="b02e75 img-pic thumb pic60 "
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(&quot;/static/img/load.png&quot;);">
<img class="lazyload-img" src="/static/img/load.png" data-src="{$Video.v_pic ?? ''}"
>
<img class="lazyload-img" src="/static/img/loading.webp" 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>
<span class="e31f51 score">{$Video.v_score}</span>

View File

@@ -371,6 +371,8 @@
}
});
});
</script>
{/block}

View File

@@ -25,6 +25,21 @@
<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"}
@@ -52,13 +67,12 @@
</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">
@@ -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>

View File

@@ -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(&quot;/static/img/load.png&quot;);">
>
<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>

View File

@@ -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(&quot;/static/img/load.png&quot;);">
>
<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>

View File

@@ -359,6 +359,7 @@
var strPlayUrl = ""
</script>
{/block}

View File

@@ -19,7 +19,8 @@
<link rel="stylesheet" href="/public/layer/need/layer.css" />
<link href="/template/xiongmao/style2_m/css/iconfont.css" rel="stylesheet" type="text/css">
<link href='/template/xiongmao/style2_m/css/style.css?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}' rel="stylesheet" type="text/css">
<link href='/template/xiongmao/style2_m/css/style.css?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'
rel="stylesheet" type="text/css">
{block name="head"}{/block}
{block name="head-css"}{/block}
@@ -27,6 +28,20 @@
<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"}
@@ -36,14 +51,17 @@
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">
<header class="top">
<a href="/" title="{$DomainModel->d_name}" class='iconfont icon-shouye z fs30 {if $strPageCode == "home"}sv{/if}'></a>
<a href="{$strCategoryIndexUrlTemp}" title="小说书库" class='iconfont icon-iconfonticonfontshujupaixing z fs24 {if $strPageCode == "library"}sv{/if}'></a>
<a href="/" title="{$DomainModel->d_name}"
class='iconfont icon-shouye z fs30 {if $strPageCode == "home"}sv{/if}'></a>
<a href="{$strCategoryIndexUrlTemp}" title="小说书库"
class='iconfont icon-iconfonticonfontshujupaixing z fs24 {if $strPageCode == "library"}sv{/if}'></a>
<div class="y" id="qs_login1">
<a href="{$strUserUrlTemp}" rel="nofollow"
class='iconfont icon-login y fs24 {if $strPageCode == "history"}sv{/if}'>
</a>
<a href="{$strHistoryUrlTemp}" rel="nofollow" class='iconfont icon-liulanliang y fs24 {if $strPageCode == "user"}sv{/if}'></a>
<a href="{$strHistoryUrlTemp}" rel="nofollow"
class='iconfont icon-liulanliang y fs24 {if $strPageCode == "user"}sv{/if}'></a>
</div>
</header>
@@ -61,9 +79,9 @@
</ul>
</div>
<div class="novel_search">
<form id="novel_search" class="search-form" method="get" action="{$strSearchIndexUrlTemp}"><input type="text" class="bk"
name="keyword" placeholder="输入书名/作者进行搜索,宁少字勿错字"><button type="submit" class="submit iconfont icon-so fs20"
form="novel_search" value="submit"></button></form>
<form id="novel_search" class="search-form" method="get" action="{$strSearchIndexUrlTemp}"><input type="text"
class="bk" name="keyword" placeholder="输入书名/作者进行搜索,宁少字勿错字"><button type="submit"
class="submit iconfont icon-so fs20" form="novel_search" value="submit"></button></form>
</div>
{block name="main"} {site:wz wz="主内容" /}{/block}

View File

@@ -19,6 +19,20 @@
<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>
<!-- 接收子模板传递的 active_nav -->

View File

@@ -58,17 +58,18 @@ function isMobile() {
// 懒加载
document.addEventListener("DOMContentLoaded", function () {
// 通用懒加载函数
function lazyLoad(elements, callback) {
const observer = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const element = entry.target;
callback(element); // 执行懒加载逻辑
observer.unobserve(element); // 停止观察
callback(element);
observer.unobserve(element);
}
});
}, {
rootMargin: '100px' // 提前 100px 开始加载
});
elements.forEach(element => observer.observe(element));
@@ -79,8 +80,16 @@ document.addEventListener("DOMContentLoaded", function () {
lazyLoad(lazyBackgrounds, (element) => {
const src = element.getAttribute("data-src");
if (src) {
const img = new Image();
img.src = src;
img.onload = () => {
element.style.backgroundImage = `url(${src})`;
element.classList.remove("lazyload-bg");
};
img.onerror = () => {
// console.error(`Failed to load background image: ${src}`);
// 可选:设置默认背景或错误提示
};
}
});
@@ -89,8 +98,16 @@ document.addEventListener("DOMContentLoaded", function () {
lazyLoad(lazyImages, (element) => {
const src = element.getAttribute("data-src");
if (src) {
const img = new Image();
img.src = src;
img.onload = () => {
element.setAttribute("src", src);
element.classList.remove("lazyload-img");
};
img.onerror = () => {
// console.error(`Failed to load image: ${src}`);
// 可选:设置占位图或错误提示
};
}
});
});
@@ -465,9 +482,16 @@ function initDPlayer(strPlayUrl) {
// 监听当前播放时间
videoPlayer.on('timeupdate', function () {
if (strPlayType == 'default' || strPlayType == 'youzhi') {
if (videoPlayer.video.currentTime >= 476 && videoPlayer.video.currentTime < 494) { //18秒
videoPlayer.seek(495); // 跳过到 494 秒
// 07:55 08:14
// if (videoPlayer.video.currentTime >= 476 && videoPlayer.video.currentTime < 494) { //18秒
// videoPlayer.seek(495); // 跳过到 494 秒
// }
// 06:55 07:12
if (videoPlayer.video.currentTime >= 415 && videoPlayer.video.currentTime < 432) { //20秒
videoPlayer.seek(1833); // 跳过到 494 秒
}
// 3015 3032
if (videoPlayer.video.currentTime >= 1812 && videoPlayer.video.currentTime < 1832) { //20秒
videoPlayer.seek(1833); // 跳过到 494 秒
@@ -480,9 +504,42 @@ function initDPlayer(strPlayUrl) {
if (videoPlayer.video.currentTime >= 6046 && videoPlayer.video.currentTime < 6067) { //19秒
videoPlayer.seek(6068); // 跳过到 494 秒
}
}else if (strPlayType == 'fengchao') {
// if (videoPlayer.video.currentTime >= 476 && videoPlayer.video.currentTime < 494) { //18秒
// videoPlayer.seek(495); // 跳过到 494 秒
// }
// // 3015 3032
// if (videoPlayer.video.currentTime >= 1812 && videoPlayer.video.currentTime < 1832) { //20秒
// videoPlayer.seek(1833); // 跳过到 494 秒
// }
// // 010032 - 010050
// if (videoPlayer.video.currentTime >= 3631 && videoPlayer.video.currentTime < 3650) { //19秒
// videoPlayer.seek(3651); // 跳过到 494 秒
// }
// // 014048 - 014048
// if (videoPlayer.video.currentTime >= 6046 && videoPlayer.video.currentTime < 6067) { //19秒
// videoPlayer.seek(6068); // 跳过到 494 秒
// }
}else if (strPlayType == 'wuxian') {
// if (videoPlayer.video.currentTime >= 476 && videoPlayer.video.currentTime < 494) { //18秒
// videoPlayer.seek(495); // 跳过到 494 秒
// }
// // 3015 3032
// if (videoPlayer.video.currentTime >= 1812 && videoPlayer.video.currentTime < 1832) { //20秒
// videoPlayer.seek(1833); // 跳过到 494 秒
// }
// // 010032 - 010050
// if (videoPlayer.video.currentTime >= 3631 && videoPlayer.video.currentTime < 3650) { //19秒
// videoPlayer.seek(3651); // 跳过到 494 秒
// }
// // 014048 - 014048
// if (videoPlayer.video.currentTime >= 6046 && videoPlayer.video.currentTime < 6067) { //19秒
// videoPlayer.seek(6068); // 跳过到 494 秒
// }
}
});
}
@@ -543,9 +600,11 @@ document.addEventListener("DOMContentLoaded", function () {
if (typeof strPlayType !== "undefined"){
if (strPlayType == 'default') {
strPlayUrl = findFirstUrl(arrPlayUrl)
// checkLine(strPlayType);
} else {
var ActivePlayUrl = arrPlayUrl[strPlayType][intPlayUrlIndex - 1]
strPlayUrl = ActivePlayUrl.url
checkLine(strPlayType);
}
initDPlayer(strPlayUrl)
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB