前端优化

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'], 'video_history' => ['/history', '/reading-history', '/seed-record', '/lishi', '/kan-lishi', '/browse-past', '/jilu', '/zuji', '/seed'],

View File

@@ -21,6 +21,20 @@
<script> <script>
const strPcPath = `{$strPcPath}`; const strPcPath = `{$strPcPath}`;
</script> </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> </head>
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}"> <body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">

View File

@@ -28,6 +28,20 @@
<script> <script>
const strPcPath = `{$strPcPath}`; const strPcPath = `{$strPcPath}`;
</script> </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> </head>
{block name="strPageCode"} {block name="strPageCode"}

View File

@@ -26,6 +26,20 @@
<script> <script>
const strPcPath = `{$strPcPath}`; const strPcPath = `{$strPcPath}`;
</script> </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> </head>
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}"> <body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">

View File

@@ -20,6 +20,20 @@
<script> <script>
const strPcPath = `{$strPcPath}`; const strPcPath = `{$strPcPath}`;
</script> </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> </head>
<!-- 接收子模板传递的 active_nav --> <!-- 接收子模板传递的 active_nav -->

View File

@@ -26,6 +26,20 @@
<script> <script>
const strPcPath = `{$strPcPath}`; const strPcPath = `{$strPcPath}`;
</script> </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> </head>
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}"> <body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">

View File

@@ -19,6 +19,20 @@
<script> <script>
const strPcPath = `{$strPcPath}`; const strPcPath = `{$strPcPath}`;
</script> </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> </head>
<!-- 接收子模板传递的 active_nav --> <!-- 接收子模板传递的 active_nav -->

View File

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

View File

@@ -28,6 +28,20 @@
<script> <script>
const strPcPath = `{$strPcPath}`; const strPcPath = `{$strPcPath}`;
</script> </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> </head>
<body class="novel_home {block name='body-class'}{/block}" id="{block name='body-id'}{/block}"> <body class="novel_home {block name='body-class'}{/block}" id="{block name='body-id'}{/block}">

View File

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

View File

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

View File

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

View File

@@ -26,6 +26,21 @@
const strPcPath = `{$strPcPath}`; const strPcPath = `{$strPcPath}`;
</script> </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> </head>
{block name="strPageCode"} {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> </body>

View File

@@ -4,7 +4,7 @@
{if !empty($arrGrm[$key + [start]])} {if !empty($arrGrm[$key + [start]])}
{$arrGrm[$key+[start]]|raw} {$arrGrm[$key+[start]]|raw}
{/if} {/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"/}' class="stui-vodlist__thumb lazyload-bg" href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'
title="{$Video.v_name}" title="{$Video.v_name}"

View File

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

View File

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

View File

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

View File

@@ -14,7 +14,8 @@
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link href="/template/videofengniao/css/app2.css" rel="stylesheet"> <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"}{/block}
{block name="head-css"}{/block} {block name="head-css"}{/block}
@@ -22,6 +23,21 @@
<script> <script>
const strPcPath = `{$strPcPath}`; const strPcPath = `{$strPcPath}`;
</script> </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> </head>
@@ -115,20 +131,7 @@
{$DomainModel->d_statis|raw} {$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> </body>

View File

@@ -7,8 +7,7 @@
<a class="b02e75 img-pic thumb pic60 lazyload" <a class="b02e75 img-pic thumb pic60 lazyload"
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}' 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 ?? ''}免费高清电影在线观看" 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/load.png" data-src="{$Video.v_pic ?? ''}"
alt="{$Video.v_name ?? ''} - {$Video.v_parent_category ?? ''}{$Video.v_category ?? ''}免费高清电影在线观看"> alt="{$Video.v_name ?? ''} - {$Video.v_parent_category ?? ''}{$Video.v_category ?? ''}免费高清电影在线观看">
<span class="bb17e9 iconfont icon-play play hidden-xs"></span> <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/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/global.css">
<link rel="stylesheet" type="text/css" href="/template/videolaoniu/css/style.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"}{/block}
{block name="head-css"}{/block} {block name="head-css"}{/block}
@@ -31,6 +24,21 @@
<script> <script>
const strPcPath = `{$strPcPath}`; const strPcPath = `{$strPcPath}`;
</script> </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> </head>
{block name="strPageCode"} {block name="strPageCode"}
@@ -65,13 +73,15 @@
{/if} {/if}
{video:categorytype category_type="ONE" d_key="key" d_val="val"} {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" /}'> <a href='{site:vciurl parent_category="$val.v_category_en" /}'>
{$val.v_category} {$val.v_category}
</a> </a>
</li> </li>
{/video:categorytype} {/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 href='{$strRankUrlTemp}'>
排行榜 排行榜
</a> </a>
@@ -143,20 +153,7 @@
{$DomainModel->d_statis|raw} {$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> </body>

View File

@@ -7,9 +7,8 @@
<a class="b02e75 img-pic thumb pic60 lazyload" <a class="b02e75 img-pic thumb pic60 lazyload"
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}' 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 ?? ''}免费高清电影在线观看" 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/loading.webp" data-src="{$Video.v_pic ?? ''}"
<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 ?? ''}免费高清电影在线观看"> alt="{$Video.v_name ?? ''} - {$Video.v_parent_category ?? ''}{$Video.v_category ?? ''}免费高清电影在线观看">
<span class="bb17e9 iconfont icon-play play hidden-xs"></span> <span class="bb17e9 iconfont icon-play play hidden-xs"></span>
<span class="e31f51 score">{$Video.v_box_office ?? 0}亿</span> <span class="e31f51 score">{$Video.v_box_office ?? 0}亿</span>

View File

@@ -3,12 +3,11 @@
{if !empty($arrGrm[$key + [start]])} {if !empty($arrGrm[$key + [start]])}
{$arrGrm[$key+[start]]|raw} {$arrGrm[$key+[start]]|raw}
{/if} {/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"/}' 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 ?? ''}免费高清电影在线观看" 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/loading.webp" data-src="{$Video.v_pic ?? ''}"
<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 ?? ''}免费高清电影在线观看"> alt="{$Video.v_name ?? ''} - {$Video.v_parent_category ?? ''}{$Video.v_category ?? ''}免费高清电影在线观看">
<span class="bb17e9 iconfont icon-play play hidden-xs"></span> <span class="bb17e9 iconfont icon-play play hidden-xs"></span>
<span class="e31f51 score">{$Video.v_score}</span> <span class="e31f51 score">{$Video.v_score}</span>

View File

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

View File

@@ -25,6 +25,21 @@
<script> <script>
const strPcPath = `{$strPcPath}`; const strPcPath = `{$strPcPath}`;
</script> </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> </head>
{block name="strPageCode"} {block name="strPageCode"}
@@ -52,13 +67,12 @@
</ul> </ul>
<div class="stui-header__search"> <div class="stui-header__search">
<form id="search" name="search" method="get" action="{$strSearchListUrlTemp}" <form id="search" name="search" method="get" action="{$strSearchListUrlTemp}">
> <input type="text" id="wd" name="keyword" class="mac_wd form-control mac_input" value=""
<input type="text" id="wd" name="keyword" placeholder="请输入关键词..." autocomplete="off">
class="mac_wd form-control mac_input" value="" placeholder="请输入关键词..." <button class="submit" id="searchbutton" type="submit" name="page"><i
autocomplete="off"> class="icon iconfont icon-search"></i></button>
<button class="submit" id="searchbutton" type="submit" </form>
name="page"><i class="icon iconfont icon-search"></i></button></form>
</div> </div>
</div> </div>
<ul class="stui-header__menu type-slide"> <ul class="stui-header__menu type-slide">
@@ -118,20 +132,7 @@
{$DomainModel->d_statis|raw} {$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> </body>

View File

@@ -7,8 +7,7 @@
<a class="b02e75 img-pic thumb pic60 lazyload" <a class="b02e75 img-pic thumb pic60 lazyload"
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}' 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 ?? ''}免费高清电影在线观看" 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/load.png" data-src="{$Video.v_pic ?? ''}"
alt="{$Video.v_name ?? ''} - {$Video.v_parent_category ?? ''}{$Video.v_category ?? ''}免费高清电影在线观看"> alt="{$Video.v_name ?? ''} - {$Video.v_parent_category ?? ''}{$Video.v_category ?? ''}免费高清电影在线观看">
<span class="bb17e9 iconfont icon-play play hidden-xs"></span> <span class="bb17e9 iconfont icon-play play hidden-xs"></span>

View File

@@ -8,8 +8,7 @@
<a class="stui-vodlist__thumb lazyload-bg" <a class="stui-vodlist__thumb lazyload-bg"
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}' 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 ?? ''}免费高清电影在线观看" 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;" <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 ?? ''}免费高清电影在线观看"> alt="{$Video.v_name ?? ''} - {$Video.v_parent_category ?? ''}{$Video.v_category ?? ''}免费高清电影在线观看">
<span class="play hidden-xs"></span> <span class="play hidden-xs"></span>

View File

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

View File

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

View File

@@ -19,6 +19,20 @@
<script> <script>
const strPcPath = `{$strPcPath}`; const strPcPath = `{$strPcPath}`;
</script> </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> </head>
<!-- 接收子模板传递的 active_nav --> <!-- 接收子模板传递的 active_nav -->

View File

@@ -58,17 +58,18 @@ function isMobile() {
// 懒加载 // 懒加载
document.addEventListener("DOMContentLoaded", function () { document.addEventListener("DOMContentLoaded", function () {
// 通用懒加载函数 // 通用懒加载函数
function lazyLoad(elements, callback) { function lazyLoad(elements, callback) {
const observer = new IntersectionObserver((entries, observer) => { const observer = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => { entries.forEach(entry => {
if (entry.isIntersecting) { if (entry.isIntersecting) {
const element = entry.target; const element = entry.target;
callback(element); // 执行懒加载逻辑 callback(element);
observer.unobserve(element); // 停止观察 observer.unobserve(element);
} }
}); });
}, {
rootMargin: '100px' // 提前 100px 开始加载
}); });
elements.forEach(element => observer.observe(element)); elements.forEach(element => observer.observe(element));
@@ -79,8 +80,16 @@ document.addEventListener("DOMContentLoaded", function () {
lazyLoad(lazyBackgrounds, (element) => { lazyLoad(lazyBackgrounds, (element) => {
const src = element.getAttribute("data-src"); const src = element.getAttribute("data-src");
if (src) { if (src) {
const img = new Image();
img.src = src;
img.onload = () => {
element.style.backgroundImage = `url(${src})`; element.style.backgroundImage = `url(${src})`;
element.classList.remove("lazyload-bg"); 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) => { lazyLoad(lazyImages, (element) => {
const src = element.getAttribute("data-src"); const src = element.getAttribute("data-src");
if (src) { if (src) {
const img = new Image();
img.src = src;
img.onload = () => {
element.setAttribute("src", src); element.setAttribute("src", src);
element.classList.remove("lazyload-img"); 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 () { videoPlayer.on('timeupdate', function () {
if (strPlayType == 'default' || strPlayType == 'youzhi') { if (strPlayType == 'default' || strPlayType == 'youzhi') {
if (videoPlayer.video.currentTime >= 476 && videoPlayer.video.currentTime < 494) { //18秒 // 07:55 08:14
videoPlayer.seek(495); // 跳过到 494 秒 // 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 // 3015 3032
if (videoPlayer.video.currentTime >= 1812 && videoPlayer.video.currentTime < 1832) { //20秒 if (videoPlayer.video.currentTime >= 1812 && videoPlayer.video.currentTime < 1832) { //20秒
videoPlayer.seek(1833); // 跳过到 494 秒 videoPlayer.seek(1833); // 跳过到 494 秒
@@ -480,9 +504,42 @@ function initDPlayer(strPlayUrl) {
if (videoPlayer.video.currentTime >= 6046 && videoPlayer.video.currentTime < 6067) { //19秒 if (videoPlayer.video.currentTime >= 6046 && videoPlayer.video.currentTime < 6067) { //19秒
videoPlayer.seek(6068); // 跳过到 494 秒 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 (typeof strPlayType !== "undefined"){
if (strPlayType == 'default') { if (strPlayType == 'default') {
strPlayUrl = findFirstUrl(arrPlayUrl) strPlayUrl = findFirstUrl(arrPlayUrl)
// checkLine(strPlayType);
} else { } else {
var ActivePlayUrl = arrPlayUrl[strPlayType][intPlayUrlIndex - 1] var ActivePlayUrl = arrPlayUrl[strPlayType][intPlayUrlIndex - 1]
strPlayUrl = ActivePlayUrl.url strPlayUrl = ActivePlayUrl.url
checkLine(strPlayType);
} }
initDPlayer(strPlayUrl) 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