This commit is contained in:
make
2025-05-05 00:54:34 +08:00
parent bce286a80b
commit cc61365c5d
31 changed files with 1260 additions and 700 deletions

View File

@@ -92,55 +92,74 @@ $arrRoutes = [
/**
* 视频分类 分页
*
* /vodtype-dong-zuo-pian/dianying-zhongguodalu-guoyu-1992-news-page1
* /dong-zuo-pian/vodclass-dianying-zhongguodalu-guoyu-1992-news-page1
* /dong-zuo-pian-vodlist/dianying-zhongguodalu-guoyu-1992-news-page1
* /vodcategory-dianying/dong-zuo-pian/zhongguodalu-guoyu-1992-news-page1
*
* /video-type/dianying/dong-zuo-pian/zhongguodalu/guoyu/1992/news/page1
* /video-class-dianying/dong-zuo-pian/zhongguodalu-guoyu-1992-news-page1
* /video-list-dianying/dong-zuo-pian/zhongguodalu-guoyu-1992-news/page1
* /video-category-dianying/dong-zuo-pian/zhongguodalu-guoyu-1992-news-page1
*
* /shipinfenlei-dong-zuo-pian/dianying-zhongguodalu-guoyu-1992-news-page1
* /shipinleixing-dong-zuo-pian/dianying-zhongguodalu-guoyu-1992-news-page1
* /shipinliebiao-dong-zuo-pian/dianying-zhongguodalu-guoyu-1992-news-page1
*
* /目前使用的3种模板:
* /vodtype-dian-ying/dong-zuo-pian-1992-zhong-guo-da-lu-news/guo-yu-page1
* /vodclass-dong-zuo-pian/dian-ying-1992-zhong-guo-da-lu-news/guo-yu-page1
* /vodcategory-dian-ying-1992-dong-zuo-pian/zhong-guo-da-lu-news/guo-yu-page1
*
* /vodshow/电影/动作片/中国大陆/国语/1992/最新/第一页
*/
'video_category' => [
'/vodtype-:strCategory/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage',
'/:strCategory/vodclass-:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage',
'/vodcategory-:strClass/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage',
'/:strCategory-vodlist/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage',
// '/vodtype-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
// '/vodclass-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
// '/vodcategory-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
'/video-type/:strClass/:strCategory/:strArea/:strLang/:strYear/:strOrder/page:intPage',
'/video-class-:strClass/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage',
'/video-category-:strClass/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage',
'/video-list-:strClass/:strCategory/:strArea-:strLang-:strYear-:strOrder/page:intPage',
// '/video-type/:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
// '/video-class/:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
// '/video-category/:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
'/shipinfenlei-:strCategory/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage',
'/shipinleixing-:strCategory/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage',
'/shipinliebiao-:strCategory/:strClass-:strArea-:strLang-:strYear-:strOrder-page:intPage',
// '/shipinfenlei-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
// '/shipinleixing-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
// '/shipinliebiao-:strParentCategory/:strCategory/:strArea/:strLang/:strYear-:strOrder-page:intPage',
// ok -现在使用的9套
'/vodtype-:strParentCategory/:strCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
'/vodclass-:strCategory/:strParentCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
'/vodcategory-:strParentCategory-:strYear-:strCategory/:strArea-:strOrder/:strLang-page:intPage',
'/videotype-:strParentCategory/:strCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
'/videoclass-:strCategory/:strParentCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
'/videocategory-:strParentCategory-:strYear-:strCategory/:strArea-:strOrder/:strLang-page:intPage',
'/shipinfenlei-:strParentCategory/:strCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
'/shipinleixing-:strCategory/:strParentCategory-:strYear-:strArea-:strOrder/:strLang-page:intPage',
'/shipinliebiao-:strParentCategory-:strYear-:strCategory/:strArea-:strOrder/:strLang-page:intPage',
// '/vodtype-:strCategory/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage',
// '/:strCategory/vodclass-:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage',
// '/vodcategory-:strParentCategory/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage',
// '/:strCategory-vodlist/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage',
// '/video-type/:strParentCategory/:strCategory/:strArea/:strLang/:strYear/:strOrder/page:intPage',
// '/video-class-:strParentCategory/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage',
// '/video-category-:strParentCategory/:strCategory/:strArea-:strLang-:strYear-:strOrder-page:intPage',
// '/video-list-:strParentCategory/:strCategory/:strArea-:strLang-:strYear-:strOrder/page:intPage',
// '/shipinfenlei-:strCategory/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage',
// '/shipinleixing-:strCategory/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage',
// '/shipinliebiao-:strCategory/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage',
],
// 视频分类 首页
'video_category_index' => [
'/vodtype/:strClass',
'/vodclass/:strClass',
'/vodcategory/:strClass',
'/vodlist/:strClass',
'/vodtype/:strParentCategory',
'/vodclass/:strParentCategory',
'/vodcategory/:strParentCategory',
// '/vodlist/:strParentCategory',
'/video-type/:strClass',
'/video-class/:strClass',
'/video-category/:strClass',
'/video-list/:strClass',
'/video-type/:strParentCategory',
'/video-class/:strParentCategory',
'/video-category/:strParentCategory',
// '/video-list/:strParentCategory',
'/shipinfenlei/:strClass',
'/shipinleixing/:strClass',
'/shipinliebiao/:strClass',
'/shipinfenlei/:strParentCategory',
'/shipinleixing/:strParentCategory',
'/shipinliebiao/:strParentCategory',
],
@@ -184,23 +203,26 @@ $arrRoutes = [
//排行榜
'video_rank_list' => [
'/paihang/:strClass/:strCategory/:strSortType',
'/rank:strCategory/:strClass-:strSortType',
'/:strClass/:strCategory/:strSortType-paihang',
'/paihang/:strParentCategory/:strCategory/:strSortType',
'/rank:strCategory/:strParentCategory-:strSortType',
'/:strParentCategory/:strCategory/:strSortType-paihang',
'/:strCategory/:strClass-:strSortType-top',
'/:strClass-:strSortType/paihangbang-:strCategory',
'/:strClass-:strSortType/:strCategory-ranks',
'/:strCategory/:strParentCategory-:strSortType-top',
'/:strParentCategory-:strSortType/paihangbang-:strCategory',
'/:strParentCategory-:strSortType/:strCategory-ranks',
'/sort:strCategory/:strClass-:strSortType',
'/:strClass/:strCategory/:strSortType-order',
'/:strClass-:strSortType/:strCategory-phb',
'/sort:strCategory/:strParentCategory-:strSortType',
'/:strParentCategory/:strCategory/:strSortType-order',
'/:strParentCategory-:strSortType/:strCategory-phb',
],
//搜索
'video_search' => ['/search', '/explore', '/sousuo', '/find', '/query', '/keywords'],
'video_history' => ['/history', '/reading-history', '/seed-record', '/lishi', '/kan-lishi', '/browse-past', '/jilu', '/zuji', '/seed'],
// 视频站点url -- end
@@ -420,7 +442,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
return view($strView);
})
->pattern([
'strClass' => '[a-z\-]*', // 允许空值
'strParentCategory' => '[a-z\-]*', // 允许空值
]);
break;
@@ -448,7 +470,7 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
return view($strView);
})
->pattern([
'strClass' => '[a-z\-]*', // 允许空值
'strParentCategory' => '[a-z\-]*', // 允许空值
'strCategory' => '[a-z\-]*', // 允许空值
'strSortType' => '[a-z\-]*', // 允许空值
'intPage' => '\d*', // 允许空值
@@ -465,12 +487,12 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
return view($strView);
})
->pattern([
'strClass' => '[a-z\-]*', // 允许空值
'strParentCategory' => '[a-z\-]*', // 允许空值
'strCategory' => '[a-z\-]*', // 允许空值
'strArea' => '[a-z\-]*', // 允许空值
'strLang' => '[a-z\-]*', // 允许空值
'strYear' => '[a-zA-Z0-9\-]*', // 允许空值
'strSort' => '[a-z\-]*', // 允许空值
'strYear' => '([0-9]+|all)?', // 允许空值
'strOrder' => '[a-zA-Z]*', // 允许空值
'intPage' => '\d*', // 允许空值
]);
break;
@@ -510,6 +532,17 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
})->ext('html');
break;
case 'video_history':
//历史记录
$strView = 'pc/user/getHistory.html';
if ($platform == 'h5') {
$strView = 'user/getHistory.html';
}
Route::get($strRoute, function () use ($strView) {
return view($strView);
});
break;
// 视频站点url -- end

View File

@@ -22,9 +22,13 @@
<link rel="stylesheet" href="/template/videodadi/css/mytheme-font.css" type="text/css">
<link rel="stylesheet" href="/template/videodadi/css/index.css" type="text/css">
<script>
const strPushApi = `{site:cfg code="PUSH_API_DOMAIN" encode="false"/}`;
</script>
<script src="/public/jquery/jquery-3.7.1.min.js" type="module" charset="utf-8"></script>
<!-- <script type="text/javascript" src='/template/videodadi/cctv/json.js?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'></script> -->
<script type="text/javascript" src='/template/videodadi/cctv/index.js?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'></script>
<script type="text/javascript" src='/public/video/common.js?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'></script>
{block name="head"}{/block}
{block name="head-css"}{/block}
@@ -54,10 +58,10 @@
<div class="stui-header__side">
<ul class="stui-header__user">
<li>
<a style="color: rgb(218, 103, 191);" href="javascript:;">
<a style="color: rgb(218, 103, 191);" href="{$strHistoryUrlTemp}">
<i class="icon iconfont icon-clock"></i>
</a>
<div class="dropdown history">
<!-- <div class="dropdown history">
<h5 class="margin-0 text-muted">
<a style="color: rgb(202, 246, 69);" class="historyclean text-muted pull-right"
href="">清空</a>
@@ -66,7 +70,7 @@
<ul class="clearfix" id="stui_history">
<p style="padding: 80px 0; text-align: center">您还没有看过影片哦</p>
</ul>
</div>
</div> -->
</li>
</ul>
<!-- onsubmit="return qrsearch();" -->
@@ -85,23 +89,23 @@
<ul class="stui-header__menu type-slide">
<!-- 首页 -->
{if $DomainModel->info_id > 0}
<li class="{if $Request.route.strClass == ''}active{/if}">
<li class="{if $Request.route.strParentCategory == ''}active{/if}">
<a href="/">首页</a>
</li>
<li class="{if $Request.route.strClass == ''}active{/if}">
<li class="{if $Request.route.strParentCategory == ''}active{/if}">
<a href="/vindex">影视首页</a>
</li>
{else}
<li class="{if $Request.route.strClass == ''}active{/if}">
<li class="{if $Request.route.strParentCategory == ''}active{/if}">
<a href="/">首页</a>
</li>
{/if}
<!-- 动态分类导航 -->
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
<li class="{if $val.v_category_en == $Request.route.strClass}active{/if}">
<li class="{if $val.v_category_en == $Request.route.strParentCategory}active{/if}">
<a
href='{site:vciurl class="$val.v_category_en" /}' >
href='{site:vciurl prent_category="$val.v_category_en" /}' >
{$val.v_category}
</a>
</li>
@@ -142,28 +146,28 @@
<script>
document.addEventListener("DOMContentLoaded", function () {
$(".stui-header__user li,.stui-header__menu li").click(function () { $(this).find(".dropdown").toggle(); });
// document.addEventListener("DOMContentLoaded", function () {
// $(".stui-header__user li,.stui-header__menu li").click(function () { $(this).find(".dropdown").toggle(); });
const lazyImages = document.querySelectorAll(".lazyload");
// const lazyImages = document.querySelectorAll(".lazyload");
const observer = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const img = entry.target;
const src = img.getAttribute("data-src");
if (src) {
img.style.backgroundImage = `url(${src})`;
img.classList.remove("lazyload");
observer.unobserve(img);
}
}
});
});
// const observer = new IntersectionObserver((entries, observer) => {
// entries.forEach(entry => {
// if (entry.isIntersecting) {
// const img = entry.target;
// const src = img.getAttribute("data-src");
// if (src) {
// img.style.backgroundImage = `url(${src})`;
// img.classList.remove("lazyload");
// observer.unobserve(img);
// }
// }
// });
// });
lazyImages.forEach(img => observer.observe(img));
});
// lazyImages.forEach(img => observer.observe(img));
// });

View File

@@ -1,5 +1,9 @@
{extend name="base" /}
{block name="get-data"}
{site:grm page_code="h5_index" diff="0" num="100" g_key="arrGrm" /}
{/block}
{block name="title"}{site:replace code="VIDEO@INDEX@INDEX@TITLE"}{/block}
{block name="keywords"}{site:replace code="VIDEO@INDEX@INDEX@KEYWORDS"}{/block}
{block name="description"}{site:replace code="VIDEO@INDEX@INDEX@DESCRIPTION"}{/block}
@@ -38,14 +42,12 @@
{block name="main"}
{site:grm page_code="h5_index" diff="0" num="100" g_key="arrGrm" /}
<h1 class="view-title">
<a href="/" >{$DomainModel->d_name}</a>-{$DomainModel->d_text_logo}
</h1>
<h4 class="view-description">{site:replace code="VIDEO@GETCATEGORYINDEX@TEXT"}</h4>
<div class="container">
<h1 class="view-title">
<a href="/" >{$DomainModel->d_name}</a>-{$DomainModel->d_text_logo}
</h1>
<h4 class="view-description">{site:replace code="VIDEO@GETCATEGORYINDEX@TEXT"}</h4>
<div class="row">
<div class="stui-pannel stui-pannel-bg clearfix">
@@ -88,7 +90,9 @@
</div>
</div>
<ul class="stui-vodlist__text active col-pd clearfix">
{video:list count="18" sort_type="tuijian" d_key="key" d_val="Video" cache_life="86400"}
{video:list count="18"
sort_type="piaofang"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb2" /}
{/video:list}
</ul>
@@ -114,7 +118,9 @@
</div>
<div class="stui-pannel_bd clearfix">
<ul class="stui-vodlist__text active col-pd clearfix">
{video:ranklist count="10" sort_type="$key" d_key="key" d_val="Video" cache_life="86400"}
{video:ranklist count="10"
sort_type="$key"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
</ul>

View File

@@ -1,9 +1,10 @@
<li class="bottom-line-dot paihanban-ul-li">
<?php $key ++ ?>
<a
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'
title="{$Video.v_name}">
<span class="text-muted pull-right hidden-md">100</span>
<span class="text-muted pull-right hidden-md">{$Video.vc_clicks ?? 0}</span>
{if $key == 1}
<span class="badge badge-first">{$key}</span>
{elseif $key == 2}

View File

@@ -2,7 +2,7 @@
<div class="stui-vodlist__box">
<a style="color: rgb(233, 93, 80); background-image: url(&quot;/static/img/default.jpg&quot;);"
class="stui-vodlist__thumb lazyload" 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}"
data-src="{$Video.v_pic}">
<span class="play hidden-xs"></span>

View File

@@ -10,7 +10,7 @@
class="icon iconfont icon-more"></i></a>
<h3 class="title">
<img src="/template/videodadi/icon/icon_{$val.v_category_en}.png">
<a style="color: rgb({:mt_rand(0,255)}, {:mt_rand(0,255)}, {:mt_rand(0,255)});"
<a
href="">最新{$val.v_category}</a>
</h3>
<ul class="nav nav-text pull-right hidden-sm hidden-xs">
@@ -42,9 +42,13 @@
</div>
</div>
<ul class="stui-vodlist__text active col-pd clearfix">
{video:ranklist count="10" v_category="$val.v_category_en" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"}
{video:ranklist count="18"
v_category_en="$val.v_category_en"
sort_type="weekly"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
</ul>
</div>
</div>

View File

@@ -1,40 +0,0 @@
{extend name="baseH5" /}
{block name="title"}我的书架{/block}
{block name="keywords"}我的书架{/block}
{block name="description"}我的书架{/block}
{block name='nav-active-class'}home{/block}
{block name="body-class"}novel_so{/block}
{block name='head-name'}{$DomainModel->d_name}{/block}
{block name='head-href'}/{/block}
{block name="logo-html"}
<h2 class="bookname">
<a href="/" style="color:#ffffff">{$DomainModel->d_name}</a>
</h2>
{/block}
{block name="main"}
<div class="wrap-box">
<h3 class="wrap-title"><span>我的书架</span></h3>
<div class="rec-focus" id="shujiaContainer">
</div>
</div>
{/block}
{block name="customize"}
<script>
const strNovelUrlTemp = `{site:replace code="NOVEL_INFO_URL"}`;
const strNovelChapterUrlTemp = `{site:replace code="CONTENT_INFO_URL"}`;
const strSearchUrlTemp = `{site:replace code="SEARCH_INFO_URL"}`;
// 调用展示书架功能
displayShujia();
</script>
{/block}

View File

@@ -1,39 +1,176 @@
{extend name="baseH5" /}
{extend name="base" /}
{block name="get-data"}
{video:pagerexp page="$Request.get.page" limit="10"
key="$Request.get.keyword"
d_key="d_key"
d_val="Video"
p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager" export_name="resData" /}
{site:grm page_code="h5_video_search" diff="$Request.url" num="30" g_key="arrGrm" /}
{/block}
{block name="title"}我的阅读记录{/block}
{block name="keywords"}我的阅读记录{/block}
{block name="description"}我的阅读记录{/block}
{block name='nav-active-class'}home{/block}
{block name="body-class"}novel_so{/block}
{block name='head-name'}{$DomainModel->d_name}{/block}
{block name='head-href'}/{/block}
{block name="head"}
<meta property="og:title" content="动作电影 - 第1页 - 大地影视搜索">
<meta property="og:description" content="大地影视搜索动作电影 第1页最新视频免费观看免费视频,热门影视,视频网站访问video1.com发现更多">
<meta property="og:image" content="https://video1.com/img/search.webp">
<meta property="og:url" content="https://video1.com/search?q=动作电影&page=1">
<meta property="og:type" content="website">
<meta property="og:site_name" content="大地影视">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="动作电影 第1页 - 大地影视">
<meta name="twitter:description" content="搜索动作电影 第1页大地影视提供最新视频免费视频,热门影视,视频网站立即访问video1.com">
<meta name="twitter:image" content="https://video1.com/img/search.webp">
<meta name="twitter:image:alt" content="动作电影 搜索结果第1页">
<!-- 结构化数据 -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SearchResultsPage",
"name": "{strSearchKeywords} 第{intPage}页",
"url": "https://{strSiteDomain}/search?q={strSearchKeywords}&page={intPage}",
"description": "{strSiteName}搜索{strSearchKeywords} 第{intPage}页,最新视频免费观看"
}
</script>
{/block}
{block name="head-css"}
{/block}
{block name="head-js"}
{block name="logo-html"}
<h2 class="bookname">
<a href="/" style="color:#ffffff">{$DomainModel->d_name}</a>
</h2>
{/block}
{block name="main"}
<div class="container">
<div class="wrap-box">
<h3 class="wrap-title"><span>阅读记录</span></h3>
<div class="rec-focus" id="shujiaContainer">
<h1 class="view-title">
观看记录
</h1>
<div class="row">
<div class="col-lg-wide-75 col-xs-1 padding-0">
<div class="stui-pannel stui-pannel-bg clearfix">
<div class="stui-pannel-box">
<div class="stui-pannel_hd">
<div class="stui-pannel__head active bottom-line clearfix">
<h3 class="title"><img src="/template/videodadi/icon/icon_27.png"></h3>
</div>
</div>
<div class="stui-pannel_bd">
<ul class="stui-vodlist__media col-pd clearfix " id="historyContainer">
{foreach $resData.data as $key=>$Video}
<li class="active clearfix">
<div class="thumb"><a
class="v-thumb stui-vodlist__thumb lazyload-bg"
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'
title="{$Video.v_name}"
data-src="{$Video.v_pic}"><span
class="play hidden-xs"></span><span
class="pic-text text-right">{$Video.v_remarks}</span></a></div>
<div class="detail">
<h3 class="title"><a
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'>{$Video.v_name}</a></h3>
<p><span class="text-muted">导演:</span>
{foreach $Video.v_director as $keyDirector=>$strDirector}
{$strDirector}
{/foreach}
</p>
<p><span class="text-muted">主演:</span>
{foreach $Video.v_actor as $keyActor=>$strActor}
{$strActor}
{/foreach}
</p>
<p class="hidden-mi">
<span class="text-muted">类型:</span>
{$Video.v_category}
<span class="split-line"></span>
<span class="text-muted">地区:</span>
{foreach $Video.v_area as $keyArea=>$strArea}
<a href='{site:vsurl key="$strArea" p="1"/}'>{$strArea}</a>
&nbsp;
{/foreach}
<span class="hidden-xs">
<span class="split-line"></span>
<span class="text-muted">年份:</span>
{$Video.v_year}
</span>
</p>
<p class="margin-0"><a
class="btn btn-min btn-primary"
href='{site:vpurl v_id="$Video.v_id" v_py="$Video.v_name_en" play_type="default" play_index="1" /}'>立即播放</a>&nbsp;&nbsp;<a
class="btn btn-min btn-default"
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'>查看详情</a></p>
</div>
</li>
{/foreach}
</ul>
</div>
</div>
</div>
</div>
<div class="col-lg-wide-25 stui-pannel-side hidden-md hidden-sm hidden-xs">
<div class="stui-pannel stui-pannel-bg clearfix">
<div class="stui-pannel-box">
<div class="stui-pannel_hd">
<div class="stui-pannel__head active bottom-line clearfix">
<h3 class="title"><img src="/template/videodadi/icon/icon_dian-ying.png">电影热播榜</h3>
</div>
</div>
<div class="stui-pannel_bd clearfix">
<ul class="stui-vodlist__text active col-pd clearfix">
{video:ranklist count="20"
v_parent_category_en="dian-ying"
sort_type="total"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
</ul>
</div>
</div>
</div>
<div class="stui-pannel stui-pannel-bg clearfix">
<div class="stui-pannel-box">
<div class="stui-pannel_hd">
<div class="stui-pannel__head active bottom-line clearfix">
<h3 class="title"><img src="/template/videodadi/icon/icon_dian-shi-ju.png">电视剧热播榜</h3>
</div>
</div>
<div class="stui-pannel_bd clearfix">
<ul class="stui-vodlist__text active col-pd clearfix">
{video:ranklist count="20"
v_parent_category_en="dian-shi-ju"
sort_type="total"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
{/block}
{block name="customize"}
<script>
const strNovelUrlTemp = `{site:replace code="NOVEL_INFO_URL"}`;
const strNovelChapterUrlTemp = `{site:replace code="CONTENT_INFO_URL"}`;
const strSearchUrlTemp = `{site:replace code="SEARCH_INFO_URL"}`;
const strVideoUrlTemp = `{site:replace code="VIDEO_INFO_URL"}`;
const strVideoPlayUrlTemp = `{site:replace code="VIDEO_PLAY_URL"}`;
const strSearchUrlTemp = `{site:replace code="VIDEO_SEARCH_LIST_URL"}`;
// 调用展示书架功能
displayHistory();
</script>

View File

@@ -2,18 +2,20 @@
{block name="get-data"}
{video:pagerexp page="1" limit="30"
v_class="$Request.route.strClass"
d_key="d_key"
d_val="Video"
p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" export_name="resData" /}
{video:pagerexp page="$Request.get.page" limit="30" button_num="10" cache_life="86400"
key="$Request.get.keyword"
v_parent_category_en="$Request.route.strParentCategory"
v_category_en="$Request.route.strCategory"
v_lang_en="$Request.route.strLang"
v_area_en="$Request.route.strArea"
v_year="$Request.route.strYear"
sort_type="$Request.route.strOrder"
d_key="d_key" d_val="Video" p_val="page_data" func="generateVideoPager" export_name="resData" /}
{site:grm page_code="h5_category_list_type" diff="0" num="100" g_key="arrGrm" /}
{/block}
{block name="title"}{site:replace code="VIDEO@GETCATEGORY@TITLE"}{/block}
{block name="keywords"}{site:replace code="VIDEO@GETCATEGORY@KEYWORDS"}{/block}
{block name="description"}{site:replace code="VIDEO@GETCATEGORY@DESCRIPTION"}{/block}
@@ -54,7 +56,16 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" e
<div class="container">
<!-- <p>route: /vodtype-:strCategory/:strParentCategory-:strArea-:strLang-:strYear-:strOrder-page:intPage </p>
<p>strParentCategory {$Request.route.strParentCategory}</p>
<p>strCategory {$Request.route.strCategory}</p>
<p>strLang {$Request.route.strLang}</p>
<p>strArea {$Request.route.strArea}</p>
<p>strYear {$Request.route.strYear}</p>
<p>strOrder {$Request.route.strOrder}</p>
<p>intPage :{$Request.route.intPage}</p> -->
<h1 class="view-title">
{site:replace code="VIDEO@GETCATEGORY@H1"}
</h1>
<h4 class="view-description">{site:replace code="VIDEO@GETCATEGORY@TEXT"}</h4>
@@ -71,16 +82,12 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" e
<ul class="stui-screen__list type-slide bottom-line-dot clearfix">
<li><span class="text-muted">按类型</span></li>
<li
class='{if empty( $Request.route.strCategory) || $Request.route.strCategory == "" || $Request.route.strCategory == "all"}active{/if}'>
<a href='{site:vclurl class="$Request.route.strClass" category="all" area="$Request.route.strArea" lang="$Request.route.strLang" year="$Request.route.strYear" order="$Request.route.strOrder" page="$Request.route.intPage"}'>全部</a>
</li>
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
{if $val.v_category_en == $Request.route.strClass}
{if $val.v_category_en == $Request.route.strParentCategory}
{foreach $val.children as $intChildrenKey=>$arrChildrenCategory }
<li
class="{if $Request.route.strCategory == $arrChildrenCategory.v_category_en}active{/if}">
<a href='{site:vclurl class="$Request.route.strClass" category="$arrChildrenCategory.v_category_en" area="$Request.route.strArea" lang="$Request.route.strLang" year="$Request.route.strYear" order="$Request.route.strOrder" page="$Request.route.intPage"}' class="text-muted">{$arrChildrenCategory.v_category}</a>
<a href='{site:vclurl prent_category="$Request.route.strParentCategory" category="$arrChildrenCategory.v_category_en" area="$Request.route.strArea" lang="$Request.route.strLang" year="$Request.route.strYear" order="$Request.route.strOrder" page="$Request.route.intPage"}' class="text-muted">{$arrChildrenCategory.v_category}</a>
</li>
{/foreach}
{/if}
@@ -89,44 +96,31 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" e
<ul class="stui-screen__list type-slide bottom-line-dot clearfix">
<li><span class="text-muted">按地区</span></li>
<li
class='{if empty( $Request.route.strArea) || $Request.route.strArea == "" || $Request.route.strArea == "all"}active{/if}'>
<a href='{site:vclurl class="$Request.route.strClass" category="$Request.route.strCategory" area="all" lang="$Request.route.strLang" year="$Request.route.strYear" order="$Request.route.strOrder" page="$Request.route.intPage"}'>全部</a>
</li>
{video:area d_key="key" d_val="val"}
<li class='{if $Request.route.strArea == $key}active{/if}'>
<a href='{site:vclurl class="$Request.route.strClass" category="$Request.route.strCategory" area="$key" lang="$Request.route.strLang" year="$Request.route.strYear" order="$Request.route.strOrder" page="$Request.route.intPage"}'
<a href='{site:vclurl prent_category="$Request.route.strParentCategory" category="$Request.route.strCategory" area="$key" lang="$Request.route.strLang" year="$Request.route.strYear" order="$Request.route.strOrder" page="$Request.route.intPage"}'
class="text-muted">{$val}</a>
</li>
{/video:area}
</ul>
<ul class="stui-screen__list type-slide bottom-line-dot clearfix">
<li><span class="text-muted">按年份</span></li>
<li
class='{if empty( $Request.route.strYear) || $Request.route.strYear == "" || $Request.route.strYear == "all"}active{/if}'>
<a href='{site:vclurl class="$Request.route.strClass" category="$Request.route.strCategory" area="$Request.route.strArea" lang="$Request.route.strLang" year="all" order="$Request.route.strOrder" page="$Request.route.intPage"}'>全部</a>
{video:year d_key="key" d_val="val"}
<li class='{if $Request.route.strYear == $key}active{/if}'>
<a href='{site:vclurl prent_category="$Request.route.strParentCategory" category="$Request.route.strCategory" area="$Request.route.strArea" lang="$Request.route.strLang" year="$key" order="$Request.route.strOrder" page="$Request.route.intPage"}'
class="text-muted">{$val}</a>
</li>
{for start="2025" end="1967" comparison="gt" step="-1" name="i"}
<li class='{if $Request.route.strYear == $i}active{/if}'>
<a href='{site:vclurl class="$Request.route.strClass" category="$Request.route.strCategory" area="$Request.route.strArea" lang="$Request.route.strLang" year="$i" order="$Request.route.strOrder" page="$Request.route.intPage"}'
class="text-muted">{$i}</a>
</li>
{/for}
{/video:year}
</ul>
<ul class="stui-screen__list type-slide bottom-line-dot clearfix">
<li><span class="text-muted">按语言</span></li>
<li
class='{if empty( $Request.route.strLang) || $Request.route.strLang == "" || $Request.route.strLang == "all"}active{/if}'>
<a href='{site:vclurl class="$Request.route.strClass" category="$Request.route.strCategory" area="$Request.route.strArea" lang="all" year="$Request.route.strYear" order="$Request.route.strOrder" page="$Request.route.intPage"}'>全部</a>
</li>
{video:lang d_key="key" d_val="val"}
<li class='{if $Request.route.strLang == $key}active{/if}'>
<a href='{site:vclurl class="$Request.route.strClass" category="$Request.route.strCategory" area="$Request.route.strArea" lang="$key" year="$Request.route.strYear" order="$Request.route.strOrder" page="$Request.route.intPage"}'
<a href='{site:vclurl prent_category="$Request.route.strParentCategory" category="$Request.route.strCategory" area="$Request.route.strArea" lang="$key" year="$Request.route.strYear" order="$Request.route.strOrder" page="$Request.route.intPage"}'
class="text-muted">{$val}</a>
</li>
{/video:lang}
@@ -142,12 +136,10 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" e
<ul class="nav nav-head">
{video:sort d_key="key" d_val="val"}
<li class="{if $Request.route.strOrder == $key}active{/if}">
<a href='{site:vclurl class="$Request.route.strClass" category="$Request.route.strCategory" area="$Request.route.strArea" lang="$Request.route.strLang" year="$Request.route.strYear" order="$key" page="$Request.route.intPage"}'>
<a href='{site:vclurl prent_category="$Request.route.strParentCategory" category="$Request.route.strCategory" area="$Request.route.strArea" lang="$Request.route.strLang" year="$Request.route.strYear" order="$key" page="$Request.route.intPage"}'>
{$val}</a>
</li>
{/video:sort}
</ul>
</div>
</div>

View File

@@ -10,8 +10,6 @@
{block name="keywords"}{site:replace code="VIDEO@GETCATEGORYINDEX@KEYWORDS"}{/block}
{block name="description"}{site:replace code="VIDEO@GETCATEGORYINDEX@DESCRIPTION"}{/block}
{block name="head"}
<!-- 社交媒体标签 -->
<meta property="og:title" content='{site:replace code="VIDEO@GETCATEGORYINDEX@TITLE"}' />
@@ -62,7 +60,7 @@
<div class="row">
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
{if $val.v_category_en == $Request.route.strClass}
{if $val.v_category_en == $Request.route.strParentCategory}
{foreach $val.children as $intChildrenKey=>$arrChildrenCategory }
@@ -73,7 +71,7 @@
<div class="stui-pannel_hd">
<div class="stui-pannel__head active bottom-line clearfix">
<a class="more text-muted pull-right"
href='{site:vclurl class="$Request.route.strClass" category="$arrChildrenCategory.v_category_en" area="all" lang="all" year="all" order="all" page="1"/}'>
href='{site:vclurl prent_category="$Request.route.strParentCategory" category="$arrChildrenCategory.v_category_en" area="all" lang="all" year="all" order="all" page="1"/}'>
更多
<i class="icon iconfont icon-more"></i>
</a>
@@ -86,12 +84,26 @@
</div>
</div>
<ul class="stui-vodlist clearfix">
{video:list count="2" v_category="$val.v_category_en" sort_type="news" d_key="key" d_val="Video" cache_life="86400"}
{video:list count="12"
v_category_en="$arrChildrenCategory.v_category_en"
v_lang_en="all"
v_area_en="all"
v_year="all"
sort_type="news"
d_key="d_key" d_val="Video" cache_life="86400"}
{include file="public/video-list-shu" /}
{/video:list}
</ul>
<ul class="stui-vodlist__text col-pd clearfix hidden-xs">
{video:list count="2" v_category="$val.v_category_en" sort_type="news" d_key="key" d_val="Video" cache_life="86400"}
{video:list count="12"
v_category_en="$arrChildrenCategory.v_category_en"
v_lang_en="all"
v_area_en="all"
v_year="all"
sort_type="news"
d_key="d_key" d_val="Video" cache_life="86400"}
{include file="public/video-list-text2" /}
{/video:list}
</ul>
@@ -105,7 +117,10 @@
</div>
</div>
<ul class="stui-vodlist__text active col-pd clearfix">
{video:ranklist count="10" v_category="$val.v_category_en" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"}
{video:ranklist count="10"
v_category_en="$arrChildrenCategory.v_category_en"
sort_type="weekly"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}

View File

@@ -1,153 +0,0 @@
{extend name="base" /}
{block name="get-data"}
{video:pagerexp page="$Request.get.page" limit="10"
key="$Request.get.keyword"
d_key="d_key"
d_val="Video"
p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager" export_name="resData" /}
{site:grm page_code="h5_video_search" diff="$Request.url" num="30" g_key="arrGrm" /}
{/block}
{block name="head-css"}
{/block}
{block name="head-js"}
{/block}
{block name="main"}
<div class="container">
<div class="row">
<div class="col-lg-wide-75 col-xs-1 padding-0">
<div class="stui-pannel stui-pannel-bg clearfix">
<div class="stui-pannel-box">
<div class="stui-pannel_hd">
<div class="stui-pannel__head active bottom-line clearfix">
<h3 class="title"><img src="/template/videodadi/icon/icon_27.png"></h3>
</div>
</div>
<div class="stui-pannel_bd">
<ul class="stui-vodlist__media col-pd clearfix">
{foreach $resData.data as $key=>$Video}
<li class="active clearfix">
<div class="thumb"><a
class="v-thumb stui-vodlist__thumb lazyload"
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'
title="{$Video.v_name}"
data-src="{$Video.v_pic}"><span
class="play hidden-xs"></span><span
class="pic-text text-right">{$Video.v_remarks}</span></a></div>
<div class="detail">
<h3 class="title"><a
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'>{$Video.v_name}</a></h3>
<p><span class="text-muted">导演:</span>
{foreach $Video.v_director as $keyDirector=>$strDirector}
{$strDirector}
{/foreach}
</p>
<p><span class="text-muted">主演:</span>
{foreach $Video.v_actor as $keyActor=>$strActor}
{$strActor}
{/foreach}
</p>
<p class="hidden-mi">
<span class="text-muted">类型:</span>
{$Video.v_category}
<span class="split-line"></span>
<span class="text-muted">地区:</span>
{$Video.v_area}
<span class="hidden-xs">
<span class="split-line"></span>
<span class="text-muted">年份:</span>
{$Video.v_year}
</span>
</p>
<p class="margin-0"><a
class="btn btn-min btn-primary"
href='{site:vpurl v_id="$Video.v_id" v_py="$Video.v_name_en" play_type="default" play_index="1" /}'>立即播放</a>&nbsp;&nbsp;<a
class="btn btn-min btn-default"
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'>查看详情</a></p>
</div>
</li>
{/foreach}
</ul>
</div>
</div>
</div>
<!-- 分页 -->
<ul class="stui-page text-center clearfix">
{volist name="resData.p_data.pager" id="vo" key="k"}
{switch $vo.label}
{case value="上一页"}
{if $resData.p_data.page == 1}
<li class="disabled"><span>上一页</span></li>
{else}
<li><a href="{$vo.url}">1</a></li>
{/if}
{/case}
{case value="下一页"}
{if $resData.p_data.page >= $resData.p_data.total}
<li class="disabled"><span>下一页</span></li>
{else}
<li><a href="{$vo.url}">下一页</a></li>
{/if}
{/case}
{default /}
{if preg_match('/^\d+$/', $vo.label)}
<li class='{eq name="vo.label" value="$Request.route.intPage"}active {/eq}'>
<a href="{$vo.url}">{$vo.label}</a>
</li>
{/if}
{/switch}
{/volist}
</ul>
</div>
<div class="col-lg-wide-25 stui-pannel-side hidden-md hidden-sm hidden-xs">
<div class="stui-pannel stui-pannel-bg clearfix">
<div class="stui-pannel-box">
<div class="stui-pannel_hd">
<div class="stui-pannel__head active bottom-line clearfix">
<h3 class="title"><img src="/template/videodadi/icon/icon_dianying.png">电影热播榜</h3>
</div>
</div>
<div class="stui-pannel_bd clearfix">
<ul class="stui-vodlist__text active col-pd clearfix">
{video:ranklist count="10" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
</ul>
</div>
</div>
</div>
<div class="stui-pannel stui-pannel-bg clearfix">
<div class="stui-pannel-box">
<div class="stui-pannel_hd">
<div class="stui-pannel__head active bottom-line clearfix">
<h3 class="title"><img src="/template/videodadi/icon/icon_dianshiju.png">电视剧热播榜</h3>
</div>
</div>
<div class="stui-pannel_bd clearfix">
<ul class="stui-vodlist__text active col-pd clearfix">
{video:ranklist count="10" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
{/block}
{block name="customize"}
{/block}

View File

@@ -73,39 +73,19 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" e
<li><span class="text-muted">按分类</span></li>
<li
class='{if empty( $Request.route.strClass) || $Request.route.strClass == "" || $Request.route.strClass == "all"}active{/if}'>
class='{if empty( $Request.route.strParentCategory) || $Request.route.strParentCategory == "" || $Request.route.strParentCategory == "all"}active{/if}'>
<a
href='{site:vrlurl class="all" category="all" sort_type="all" page="1"/}'>全部</a>
href='{site:vrlurl parent_category="all" category="all" sort_type="daily" page="1"/}'>全部</a>
</li>
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
<li class="{if $Request.route.strClass == $val.v_category_en}active{/if}">
<li class="{if $Request.route.strParentCategory == $val.v_category_en}active{/if}">
<a href='{site:vrlurl class="$val.v_category_en" category="all" sort_type="all" page="1"/}'
<a href='{site:vrlurl parent_category="$val.v_category_en" category="all" sort_type="daily" page="1"/}'
class="text-muted">{$val.v_category}</a>
</li>
{/video:categorytype}
</ul>
<ul class="stui-screen__list type-slide bottom-line-dot clearfix">
<li><span class="text-muted">按类型</span></li>
<li
class='{if empty( $Request.route.strCategory) || $Request.route.strCategory == "" || $Request.route.strCategory == "all"}active{/if}'>
<a href='{site:vrlurl class="all" category="all" sort_type="all" page="1"/}'>全部</a>
</li>
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
{if $val.v_category_en == $Request.route.strClass}
{foreach $val.children as $intChildrenKey=>$arrChildrenCategory }
<li
class="{if $Request.route.strCategory == $arrChildrenCategory.v_category_en}active{/if}">
<a href='{site:vrlurl class="all" category="$arrChildrenCategory.v_category_en" sort_type="all" page="1"/}' class="text-muted">{$arrChildrenCategory.v_category}</a>
</li>
{/foreach}
{/if}
{/video:categorytype}
</ul>
</div>
</div>
@@ -124,7 +104,9 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" e
</div>
<div class="stui-pannel_bd clearfix">
<ul class="stui-vodlist__text active col-pd clearfix">
{video:ranklist count="10" sort_type="$key" d_key="key" d_val="Video" cache_life="86400"}
{video:ranklist count="20"
sort_type="$key"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
</ul>

View File

@@ -71,38 +71,37 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" e
<li><span class="text-muted">按分类</span></li>
<li
class='{if empty( $Request.route.strClass) || $Request.route.strClass == "" || $Request.route.strClass == "all"}active{/if}'>
class='{if empty( $Request.route.strParentCategory) || $Request.route.strParentCategory == "" || $Request.route.strParentCategory == "all"}active{/if}'>
<a
href='{site:vrlurl class="all" category="$Request.route.strCategory" sort_type="$Request.route.strSortType" page="1"/}'>全部</a>
href='{site:vrlurl parent_category="all" category="all" sort_type="Request.route.strSortType" page="1"/}'>全部</a>
</li>
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
<li class="{if $Request.route.strClass == $val.v_category_en}active{/if}">
<li class="{if $Request.route.strParentCategory == $val.v_category_en}active{/if}">
<a href='{site:vrlurl class="$val.v_category_en" category="$Request.route.strCategory" sort_type="$Request.route.strSortType" page="1"/}'
<a href='{site:vrlurl parent_category="$val.v_category_en" category="all" sort_type="Request.route.strSortType" page="1"/}'
class="text-muted">{$val.v_category}</a>
</li>
{/video:categorytype}
</ul>
<ul class="stui-screen__list type-slide bottom-line-dot clearfix">
<li><span class="text-muted">按类型</span></li>
<li
class='{if empty( $Request.route.strCategory) || $Request.route.strCategory == "" || $Request.route.strCategory == "all"}active{/if}'>
<a href='{site:vrlurl class="$Request.route.strClass" category="all" sort_type="$Request.route.strSortType" page="1"/}'>全部</a>
<a href='{site:vrlurl parent_category="all" category="all" sort_type="Request.route.strSortType" page="1"/}'>全部</a>
</li>
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
{if $val.v_category_en == $Request.route.strClass}
{if $val.v_category_en == $Request.route.strParentCategory}
{foreach $val.children as $intChildrenKey=>$arrChildrenCategory }
<li
class="{if $Request.route.strCategory == $arrChildrenCategory.v_category_en}active{/if}">
<a href='{site:vrlurl class="$Request.route.strClass" category="$arrChildrenCategory.v_category_en" sort_type="$Request.route.strSortType" page="1"/}' class="text-muted">{$arrChildrenCategory.v_category}</a>
<a href='{site:vrlurl parent_category="$Request.route.strParentCategory" category="$arrChildrenCategory.v_category_en" sort_type="Request.route.strSortType" page="1"/}' class="text-muted">{$arrChildrenCategory.v_category}</a>
</li>
{/foreach}
{/if}
{/video:categorytype}
</ul>
</div>
@@ -117,7 +116,7 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" e
<ul class="nav nav-head">
{video:ranksort d_key="key" d_val="val"}
<li class="{if $Request.route.strSortType == $key}active{/if}">
<a href='{site:vrlurl class="$Request.route.strClass" category="$Request.route.strCategory" sort_type="$key" page="1"/}'>
<a href='{site:vrlurl class="$Request.route.strParentCategory" category="$Request.route.strCategory" sort_type="$key" page="1"/}'>
{$val}排行榜
</a>
</li>
@@ -134,34 +133,7 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" e
</div>
</div>
</div>
<!-- 分页 -->
<ul class="stui-page text-center clearfix">
{volist name="resData.p_data.pager" id="vo" key="k"}
{switch $vo.label}
{case value="上一页"}
{if $resData.p_data.page == 1}
<li class="disabled"><span>上一页</span></li>
{else}
<li><a href="{$vo.url}">1</a></li>
{/if}
{/case}
{case value="下一页"}
{if $resData.p_data.page >= $resData.p_data.total}
<li class="disabled"><span>下一页</span></li>
{else}
<li><a href="{$vo.url}">下一页</a></li>
{/if}
{/case}
{default /}
{if preg_match('/^\d+$/', $vo.label)}
<li class='{eq name="vo.label" value="$Request.route.intPage"}active {/eq}'>
<a href="{$vo.url}">{$vo.label}</a>
</li>
{/if}
{/switch}
{/volist}
</ul>
</div>
<div class="col-lg-wide-25 col-xs-1 stui-pannel-side hidden-sm hidden-xs padding-0">
@@ -174,7 +146,10 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" e
</div>
<div class="stui-pannel_bd">
<ul class="stui-vodlist__text col-pd clearfix">
{video:ranklist count="10" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"}
{video:ranklist count="20"
v_parent_category_en="dian-ying"
sort_type="weekly"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
@@ -186,12 +161,15 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateVideoPager" e
<div class="stui-pannel-box">
<div class="stui-pannel_hd">
<div class="stui-pannel__head active bottom-line clearfix">
<h3 class="title"><img src="/template/videodadi/icon/icon_12.png">影月榜单</h3>
<h3 class="title"><img src="/template/videodadi/icon/icon_12.png">视剧周榜单</h3>
</div>
</div>
<div class="stui-pannel_bd">
<ul class="stui-vodlist__text col-pd clearfix">
{video:ranklist count="10" sort_type="monthly" d_key="key" d_val="Video" cache_life="86400"}
{video:ranklist count="20"
v_parent_category_en="dian-shi-ju"
sort_type="weekly"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
</ul>

View File

@@ -74,7 +74,7 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager"
<li class="active clearfix">
<div class="thumb"><a
class="v-thumb stui-vodlist__thumb lazyload"
class="v-thumb stui-vodlist__thumb lazyload-bg"
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'
title="{$Video.v_name}"
data-src="{$Video.v_pic}"><span
@@ -98,7 +98,10 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager"
{$Video.v_category}
<span class="split-line"></span>
<span class="text-muted">地区:</span>
{$Video.v_area}
{foreach $Video.v_area as $keyArea=>$strArea}
<a href='{site:vsurl key="$strArea" p="1"/}'>{$strArea}</a>
&nbsp;
{/foreach}
<span class="hidden-xs">
<span class="split-line"></span>
<span class="text-muted">年份:</span>
@@ -154,14 +157,19 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager"
<div class="stui-pannel-box">
<div class="stui-pannel_hd">
<div class="stui-pannel__head active bottom-line clearfix">
<h3 class="title"><img src="/template/videodadi/icon/icon_dianying.png">电影热播榜</h3>
<h3 class="title"><img src="/template/videodadi/icon/icon_dian-ying.png">电影热播榜</h3>
</div>
</div>
<div class="stui-pannel_bd clearfix">
<ul class="stui-vodlist__text active col-pd clearfix">
{video:ranklist count="10" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"}
{video:ranklist count="20"
v_parent_category_en="dian-ying"
sort_type="total"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
</ul>
</div>
</div>
@@ -170,14 +178,18 @@ p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager"
<div class="stui-pannel-box">
<div class="stui-pannel_hd">
<div class="stui-pannel__head active bottom-line clearfix">
<h3 class="title"><img src="/template/videodadi/icon/icon_dianshiju.png">电视剧热播榜</h3>
<h3 class="title"><img src="/template/videodadi/icon/icon_dian-shi-ju.png">电视剧热播榜</h3>
</div>
</div>
<div class="stui-pannel_bd clearfix">
<ul class="stui-vodlist__text active col-pd clearfix">
{video:ranklist count="10" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"}
{video:ranklist count="20"
v_parent_category_en="dian-shi-ju"
sort_type="total"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
</ul>
</div>
</div>

View File

@@ -1,9 +1,9 @@
{extend name="base" /}
{extend name="base" /}
{block name="get-data"}
{if $Request.route.intVId}
{video:info v_id="$Request.route.intVId" n_key="arrVideo" n_forge_id="$Request.route.intForgeId" /}
{video:info v_id="$Request.route.intVId" v_key="arrVideo" /}
{else}
{video:info v_id="$DomainModel->info_id" n_key="arrVideo" n_forge_id="0" /}
{/if}
@@ -12,28 +12,28 @@
{/block}
{block name="title"}
{if $DomainModel->info_id == $Request.route.intVId || empty($Request.route.intVId)}
{site:replace code="INDEX@INDEX@TITLE"}
{else}
{site:replace code="VIDEO@GETVIDEOINFO@TITLE" diff="$Request.route.intVId" /}
{/if}
{if $DomainModel->info_id == $Request.route.intVId || empty($Request.route.intVId)}
{site:replace code="INDEX@INDEX@TITLE"}
{else}
{site:replace code="VIDEO@GETVIDEOINFO@TITLE" diff="$Request.route.intVId" /}
{/if}
{/block}
{block name="keywords"}
{if $DomainModel->info_id == $Request.route.intVId || empty($Request.route.intVId)}
{site:replace code="INDEX@INDEX@KEYWORDS"}
{else}
{site:replace code="VIDEO@GETVIDEOINFO@KEYWORDS" diff="$Request.route.intVId"}
{/if}
{if $DomainModel->info_id == $Request.route.intVId || empty($Request.route.intVId)}
{site:replace code="INDEX@INDEX@KEYWORDS"}
{else}
{site:replace code="VIDEO@GETVIDEOINFO@KEYWORDS" diff="$Request.route.intVId"}
{/if}
{/block}
{block name="description"}
{if $DomainModel->info_id == $Request.route.intVId || empty($Request.route.intVId)}
{site:replace code="INDEX@INDEX@DESCRIPTION"}
{else}
{site:replace code="VIDEO@GETVIDEOINFO@DESCRIPTION" diff="$Request.route.intVId"}
{/if}
{if $DomainModel->info_id == $Request.route.intVId || empty($Request.route.intVId)}
{site:replace code="INDEX@INDEX@DESCRIPTION"}
{else}
{site:replace code="VIDEO@GETVIDEOINFO@DESCRIPTION" diff="$Request.route.intVId"}
{/if}
{/block}
@@ -59,8 +59,8 @@
"@type": "Person",
"name": "{strVideoActor}"
},
"thumbnailUrl": "https://{strSiteDomain}/img/video/{strYear}/{strVideoName}.webp",
"url": "https://{strSiteDomain}/voddetail/{strVideoName}",
"thumbnailUrl": "",
"url": "",
"inLanguage": "{strLangName}",
"contentLocation": {
"@type": "Place",
@@ -78,7 +78,7 @@
{site:replace code="VIDEO@GETVIDEOINFO@H1"}
</h1>
<h4 class="view-description">{site:replace code="VIDEO@GETVIDEOINFO@TEXT"}</h4>
<div class="row">
<div class="col-lg-wide-75 col-xs-1 padding-0">
<div class="stui-pannel stui-pannel-bg clearfix">
@@ -96,53 +96,48 @@
</div>
<div class="col-pd clearfix">
<div class="stui-content__thumb">
<a style="color: rgb(213, 234, 5)" class="stui-vodlist__thumb picture v-thumb"
href="//{$arrVideo.v_name_en}-1-1.html" title="{$arrVideo.v_name}">
<img class="lazyload"
src="{$arrVideo.v_pic}"
data-original="{$arrVideo.v_pic}"
/>
<a style="color: rgb(213, 234, 5)" class="stui-vodlist__thumb picture v-thumb" href=""
title="{$arrVideo.v_name}">
<img class="lazyload" src="{$arrVideo.v_pic}" data-original="{$arrVideo.v_pic}" />
<span class="play active hidden-xs"></span>
<span class="pic-text text-right">{$arrVideo.v_remarks}</span>
</a>
</div>
<div class="stui-content__detail">
<h1 class="title">
《{$arrVideo.v_name}》<span class="score text-red">{$arrVideo.v_score}</span>
</h1>
<p class="data">
<span class="text-muted">类型:</span>
<a
href='{site:vsurl key="$arrVideo.v_category" p="1"/}' >{$arrVideo.v_category}</a>
&nbsp;
<span class="split-line"></span>
<span class="text-muted hidden-xs">地区:</span>
<a style="color: rgb(240, 3, 132)"
href='{site:vsurl key="$arrVideo.v_area" p="1"/}' >{$arrVideo.v_area}</a>
<a href='{site:vsurl key="$arrVideo.v_category" p="1"/}'>{$arrVideo.v_category}</a>
&nbsp;
<span class="split-line"></span>
<span class="text-muted hidden-xs">地区:</span>
{volist name='$arrVideo.v_actor' id='vo' key='index'}
<a style="color: rgb(240, 3, 132)" href='{site:vsurl key="$vo" p="1"/}'>{$vo}</a>
&nbsp;
{/volist}
<span class="split-line"></span>
<span class="text-muted hidden-xs">年份:</span>
<a style="color: rgb(102, 158, 132)" href='{site:vclurl class="all" category="all" area="all" lang="all" year="$arrVideo.v_year" order="all" page="1"/}'
>{$arrVideo.v_year}</a>
<a style="color: rgb(102, 158, 132)"
href='{site:vclurl class="all" category="all" area="all" lang="all" year="$arrVideo.v_year" order="all" page="1"/}'>{$arrVideo.v_year}</a>
&nbsp;
</p>
<p class="data">
<span class="text-muted">主演:</span>
{volist name='$arrVideo.v_actor' id='vo' key='index'}
<a
href='{site:vsurl key="$vo" p="1"/}' >{$vo}</a>
&nbsp;
{/volist}
<a href='{site:vsurl key="$vo" p="1"/}'>{$vo}</a>
&nbsp;
{/volist}
</p>
<p class="data">
<span class="text-muted">导演:</span>
{volist name='$arrVideo.v_director' id='vo' key='index'}
<a
href='{site:vsurl key="$vo" p="1"/}' >{$vo}</a>
&nbsp;
{/volist}
<a href='{site:vsurl key="$vo" p="1"/}'>{$vo}</a>
&nbsp;
{/volist}
</p>
<p class="data hidden-sm">
<span class="text-muted">更新:</span>{$arrVideo.v_publish_date}
@@ -150,7 +145,7 @@
<p class="desc hidden-xs">
<span class="left text-muted">简介:</span>  
{$arrVideo.v_description|raw}
<a >
<a>
详情
<i class="icon iconfont icon-moreunfold"></i>
</a>
@@ -177,7 +172,7 @@
</div>
</div>
{foreach $arrVideo.v_play_url as $strPlayGroupName=>$arrPlayUrlType }
{foreach $arrVideo.v_play_url as $strPlayGroupName=>$arrPlayUrlType }
<div class="stui-pannel stui-pannel-bg clearfix">
<div class="stui-pannel-box b playlist mb">
@@ -192,15 +187,16 @@
<div class="stui-pannel_bd col-pd clearfix">
<ul class="stui-content__playlist clearfix">
{volist name='$arrPlayUrlType' id='arrPlayUrl'}
<li>
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="$strPlayGroupName" play_index="$i" /}'>{$arrPlayUrl.name}</a>
</li>
{/volist}
<li>
<a
href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="$strPlayGroupName" play_index="$i" /}'>{$arrPlayUrl.name}</a>
</li>
{/volist}
</ul>
</div>
</div>
</div>
{/foreach}
<div class="stui-pannel stui-pannel-bg clearfix" id="desc">
@@ -216,7 +212,8 @@
<h3>{$arrVideo.v_name}</h3>
<p class="col-pd">
{$arrVideo.v_description}
<a href='{site:vurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en"/}'>{$arrVideo.v_name}</a>&nbsp;&nbsp;
<a
href='{site:vurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en"/}'>{$arrVideo.v_name}</a>&nbsp;&nbsp;
</p>
</div>
</div>
@@ -232,20 +229,29 @@
</div>
<div class="stui-pannel_bd">
<ul class="stui-vodlist__bd clearfix">
{video:list count="12" sort_type="news" d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-shu" /}
{/video:list}
{video:list count="12"
v_category_en="$arrVideo.v_category_en"
v_lang_en="all"
v_area_en="all"
v_year="all"
sort_type="news"
d_key="d_key" d_val="Video" cache_life="86400"}
{include file="public/video-list-shu" /}
{/video:list}
</ul>
<ul class="stui-vodlist__text col-pd clearfix hidden-xs">
{video:list count="12" sort_type="news" d_key="key" d_val="Video" cache_life="86400"}
<li class="col-md-4 col-sm-3 col-xs-1 padding-0">
<a class="top-line-dot text-overflow"
href='{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}'
title="{$Video.v_name}"><span class="text-muted pull-right">{$Video.v_remarks}</span>{$Video.v_name}</a>
</li>
{/video:list}
{video:list count="12"
v_category_en="$arrVideo.v_category_en"
v_lang_en="all"
v_area_en="all"
v_year="all"
sort_type="news"
d_key="d_key" d_val="Video" cache_life="86400"}
{include file="public/video-list-text2" /}
{/video:list}
</ul>
</div>
</div>
@@ -257,17 +263,18 @@
<div class="stui-pannel_hd">
<div class="stui-pannel__head active bottom-line clearfix">
<h3 class="title">
<img src="/template/videodadi/icon/icon_12.png" />喜剧片周榜单
<img src="/template/videodadi/icon/icon_12.png" />{$arrVideo.v_parent_category}周榜单
</h3>
</div>
</div>
<div class="stui-pannel_bd">
<ul class="stui-vodlist__text col-pd clearfix">
{video:ranklist count="10" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"}
{video:ranklist count="12"
v_parent_category_en="$arrVideo.v_parent_category_en"
sort_type="weekly"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
</ul>
</div>
</div>
@@ -277,16 +284,19 @@
<div class="stui-pannel_hd">
<div class="stui-pannel__head active bottom-line clearfix">
<h3 class="title">
<img src="/template/videodadi/icon/icon_12.png" />喜剧片月榜单
<img src="/template/videodadi/icon/icon_12.png" />{$arrVideo.v_parent_category}月榜单
</h3>
</div>
</div>
<div class="stui-pannel_bd">
<ul class="stui-vodlist__text col-pd clearfix">
{video:ranklist count="10" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"}
{video:ranklist count="12"
v_parent_category_en="$arrVideo.v_parent_category_en"
sort_type="monthly"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
</ul>
</div>
</div>
@@ -294,4 +304,23 @@
</div>
</div>
</div>
{/block} {block name="customize"} {/block}
<script>
const strVideoId = `{$arrVideo.v_id}`;
const arrVideo = {
'v_id': `{$arrVideo['v_id']}`,
'v_name_en': `{$arrVideo['v_name_en']}`,
'v_pic': `{$arrVideo['v_pic']}`,
'v_name': `{$arrVideo['v_name']}`,
'v_description': `{$arrVideo['v_description']}`,
'v_publish_date': `{$arrVideo['v_publish_date']}`,
'v_remarks': `{$arrVideo['v_remarks']}`,
'v_category': `{$arrVideo['v_category']}`,
'v_year': `{$arrVideo['v_year']}`,
};
</script>
{/block}
{block name="customize"} {/block}

View File

@@ -78,9 +78,11 @@
.stui-player__head {
display: none;
}
.dplayer-video-wrap{
.dplayer-video-wrap {
max-height: 480px;
}
video {
max-height: 480px;
}
@@ -122,7 +124,7 @@
{site:replace code="VIDEO@GETVIDEOPLAY@H1"}
</h1>
<h4 class="view-description">{site:replace code="VIDEO@GETVIDEOPLAY@TEXT"}</h4>
<div class="row">
<div class="col-lg-wide-75 col-xs-1 padding-0">
<div class="stui-pannel stui-pannel-bg clearfix">
@@ -183,25 +185,24 @@
{/if}
</ul>
<h1 class="title"><a style="color: rgb(244, 139, 75);"
href="//{$arrVideo.v_name_en}.html">
href='{site:vurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en"/}'>
《{$arrVideo.v_name}》
</a>
</h1>
<p class="data margin-0">
<span class="text-muted">类型:</span>
<a style="color: rgb({:mt_rand(0,255)}, {:mt_rand(0,255)}, {:mt_rand(0,255)});"
href="//-------------.html" target="_blank">{$arrVideo.v_category}</a>
&nbsp;
<a href='{site:vsurl key="$arrVideo.v_category" p="1"/}'>{$arrVideo.v_category}</a>
&nbsp;
<span class="split-line"></span>
<span class="text-muted">地区:</span>
<a style="color: rgb(240, 3, 132)" href="//--{$arrVideo.v_area}-----------.html"
target="_blank">{$arrVideo.v_area}</a>
{volist name='$arrVideo.v_actor' id='vo' key='index'}
<a style="color: rgb(240, 3, 132)" href='{site:vsurl key="$vo" p="1"/}'>{$vo}</a>
&nbsp;
{/volist}
<span class="split-line"></span>
<span class="text-muted">年份:</span>
<a style="color: rgb(102, 158, 132)" href="//-------------{$arrVideo.v_year}.html"
target="_blank">{$arrVideo.v_year}</a>
<a style="color: rgb(102, 158, 132)"
href='{site:vclurl class="all" category="all" area="all" lang="all" year="$arrVideo.v_year" order="all" page="1"/}'>{$arrVideo.v_year}</a>
&nbsp;
</p>
</div>
@@ -222,7 +223,8 @@
<ul class="stui-content__playlist clearfix">
{volist name='$arrPlayUrlType' id='arrPlayUrl' key='index'}
<li class="{if $index == $Request.route.intPlayIndex}active{/if}">
<a href="//{$arrPlayUrl.name}-1-{$index}.html" m3u8="{$arrPlayUrl.url}">{$arrPlayUrl.name}</a>
<a href="//{$arrPlayUrl.name}-1-{$index}.html"
m3u8="{$arrPlayUrl.url}">{$arrPlayUrl.name}</a>
</li>
{/volist}
</ul>
@@ -241,7 +243,7 @@
<h3>【{$arrVideo.v_name}】</h3>
<p class="col-pd">  
{$arrVideo.v_description|raw}
<a href="//.html">{}</a>&nbsp;&nbsp;
<a href="#">{}</a>&nbsp;&nbsp;
</p>
</div>
@@ -258,15 +260,27 @@
</div>
<div class="stui-pannel_bd">
<ul class="stui-vodlist__bd clearfix">
{video:list count="12" sort_type="news" d_key="key" d_val="Video" cache_life="86400"}
{video:list count="12"
v_category_en="$arrVideo.v_category_en"
v_lang_en="all"
v_area_en="all"
v_year="all"
sort_type="news"
d_key="d_key" d_val="Video" cache_life="86400"}
{include file="public/video-list-shu" /}
{/video:list}
</ul>
<ul class="stui-vodlist__text col-pd clearfix hidden-xs">
{video:list count="12" sort_type="news" d_key="key" d_val="Video" cache_life="86400"}
{video:list count="12"
v_category_en="$arrVideo.v_category_en"
v_lang_en="all"
v_area_en="all"
v_year="all"
sort_type="news"
d_key="d_key" d_val="Video" cache_life="86400"}
{include file="public/video-list-text2" /}
{/video:list}
</ul>
</div>
@@ -279,12 +293,16 @@
<div class="stui-pannel-box">
<div class="stui-pannel_hd">
<div class="stui-pannel__head active bottom-line clearfix">
<h3 class="title"><img src="/template/videodadi/icon/icon_12.png">喜剧片周榜单</h3>
<h3 class="title"><img src="/template/videodadi/icon/icon_12.png">{$arrVideo.v_parent_category}周榜单
</h3>
</div>
</div>
<div class="stui-pannel_bd">
<ul class="stui-vodlist__text col-pd clearfix">
{video:ranklist count="10" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"}
{video:ranklist count="12"
v_parent_category_en="$arrVideo.v_parent_category_en"
sort_type="weekly"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
</ul>
@@ -295,12 +313,16 @@
<div class="stui-pannel-box">
<div class="stui-pannel_hd">
<div class="stui-pannel__head active bottom-line clearfix">
<h3 class="title"><img src="/template/videodadi/icon/icon_12.png">喜剧片月榜单</h3>
<h3 class="title"><img src="/template/videodadi/icon/icon_12.png">{$arrVideo.v_parent_category}月榜单
</h3>
</div>
</div>
<div class="stui-pannel_bd">
<ul class="stui-vodlist__text col-pd clearfix">
{video:ranklist count="10" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"}
{video:ranklist count="12"
v_parent_category_en="$arrVideo.v_parent_category_en"
sort_type="monthly"
d_key="key" d_val="Video" cache_life="86400"}
{include file="public/video-list-phb" /}
{/video:ranklist}
</ul>
@@ -310,6 +332,21 @@
</div>
</div>
</div>
<script>
const strVideoId = `{$arrVideo.v_id}`;
const arrVideo = {
'v_id': `{$arrVideo['v_id']}`,
'v_name_en': `{$arrVideo['v_name_en']}`,
'v_pic': `{$arrVideo['v_pic']}`,
'v_name': `{$arrVideo['v_name']}`,
'v_description': `{$arrVideo['v_description']}`,
'v_publish_date': `{$arrVideo['v_publish_date']}`,
'v_remarks': `{$arrVideo['v_remarks']}`,
'v_category': `{$arrVideo['v_category']}`,
};
</script>
{/block}
{block name="customize"}
@@ -328,19 +365,17 @@
var intJumpTimeFirst = 1;
var intJumpTimeTwoStart = 1;
var intJumpTimeTwoEnd = 1;
var arrPlayUrl = {:json_encode($arrVideo.v_play_url)};
var arrPlayUrl = {$arrVideo.v_play_url|json_encode|raw} ;
var strPlayUrl = ""
if(strPlayType == 'default'){
if (strPlayType == 'default') {
strPlayUrl = findFirstUrl(arrPlayUrl)
}else{
} else {
var ActivePlayUrl = arrPlayUrl[strPlayType][intPlayUrlIndex - 1]
strPlayUrl = ActivePlayUrl.url
}
document.addEventListener('DOMContentLoaded', function () {
console.log(strPlayUrl)
initDPlayer(strPlayUrl)
function initDPlayer(strPlayUrl) {

View File

@@ -184,7 +184,6 @@ class DomainModel extends BaseModel
$arrKeys[] = '{' . $strKey . '}';
$arrVals[] = $strVal;
}
return str_replace($arrKeys, $arrVals, $strSfVal);
}

View File

@@ -286,6 +286,34 @@ class StaticConfig
"duan-ju-da-quan" => "短剧",
];
// 测试-没使用到
static $arrVideoClassTest = [
"dian-ying" => "电影",
"dian-shi-ju" => "电视剧",
"zong-yi" => "综艺",
"dong-man" => "动漫",
"duan-ju-da-quan" => "短剧",
"dianying" => "电影",
"dianshiju" => "电视剧",
"zongyi" => "综艺",
"dongman" => "动漫",
"duanjudaquan" => "短剧",
"1" => "电影",
"2" => "电视剧",
"3" => "综艺",
"4" => "动漫",
"5" => "短剧",
"电影" => "电影",
"电视剧" => "电视剧",
"综艺" => "综艺",
"动漫" => "动漫",
"短剧" => "短剧",
];
// 'v_lang', # 视频的语言(如“中文”、“英语”)
// 'v_area', # 视频的地区(如“中国”、“美国”)
// 'v_year', # 视频的发行年份(如 2023

View File

@@ -44,14 +44,14 @@ class VideoService
/**
* 获取视频分类首页 URl
*
* @param string $strClass
* @param string $strParentCategory
* @return string
*/
public function getVideoCategoryIndexUrl(string $strClass): string
public function getVideoCategoryIndexUrl(string $strParentCategory): string
{
$strKey = 'VIDEO_CATEGORY_INDEX_URL';
$strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [
'strClass' => !empty($strClass) ? $strClass : '',
'strParentCategory' => !empty($strParentCategory) ? $strParentCategory : '',
]);
$strUrl = preg_replace('#/{2,}#', '/', $strUrl);
@@ -103,7 +103,7 @@ class VideoService
* 获取视频分类URl
*
* @param string|NULL $strCategory
* @param string|NULL $strClass
* @param string|NULL $strParentCategory
* @param string|NULL $strArea
* @param integer|string|NULL $strLang
* @param integer|string|NULL $strYear
@@ -111,12 +111,12 @@ class VideoService
* @param integer|string|NULL $intPage
* @return string
*/
public function getVideoCategoryUrl(string|NULL $strCategory, string|NULL $strClass, string|NULL $strArea, int|string|NULL $strLang, int|string|NULL $strYear, int|string|NULL $strOrder, int|string|NULL $intPage): string
public function getVideoCategoryUrl(string|NULL $strCategory, string|NULL $strParentCategory, string|NULL $strArea, int|string|NULL $strLang, int|string|NULL $strYear, int|string|NULL $strOrder, int|string|NULL $intPage): string
{
$strKey = 'VIDEO_CATEGORY_URL';
$strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [
'strCategory' => !empty($strCategory) ? $strCategory : 'all',
'strClass' => !empty($strClass) ? $strClass : 'all',
'strParentCategory' => !empty($strParentCategory) ? $strParentCategory : 'all',
'strArea' => !empty($strCategory) ? $strArea : 'all',
'strLang' => !empty($strCategory) ? $strLang : 'all',
'strYear' => !empty($strCategory) ? $strYear : 'all',
@@ -132,18 +132,18 @@ class VideoService
* 排行榜 列表 url
*
* @param string $strCategory
* @param string $strClass
* @param string $strParentCategory
* @param string $strSortType
* @param integer $intPage
* @return string
*/
public function getVideoRankUrl(string $strCategory,string $strClass, string $strSortType, int $intPage): string
public function getVideoRankUrl(string $strCategory,string $strParentCategory, string $strSortType, int $intPage): string
{
$strKey = 'VIDEO_RANK_LIST_URL';
$strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [
'strCategory' => !empty($strCategory) ? $strCategory : 'all',
'strClass' => !empty($strClass) ? $strClass : 'all',
'strParentCategory' => !empty($strParentCategory) ? $strParentCategory : 'all',
'strSortType' => !empty($strSortType) ? $strSortType : 'all',
'intPage' => $intPage ?? 1,
]);
@@ -650,18 +650,18 @@ class VideoService
*/
public function generateVideoPager(array $arrParams, array $arrSort, array $arrVideo): array
{
$strCategory = $arrParams['v_category'];
$strClass = $arrParams['v_class'];
$strArea = $arrParams['v_area'];
$strLang = $arrParams['v_lang'];
$strParentCategory = $arrParams['v_parent_category_en'];
$strCategory = $arrParams['v_category_en'];
$strLang = $arrParams['v_lang_en'];
$strArea = $arrParams['v_area_en'];
$strYear = $arrParams['v_year'];
$strOrder = $arrParams['sort_type'];
$intPage = $arrVideo['page'];
$intLimit = $arrVideo['limit'];
$intButtomNum = $arrParams['buttov_num'];
$strBaseUrl = app(VideoService::class)->getVideoCategoryUrl($strCategory, $strClass, $strArea, $strLang, $strYear, $strOrder, '{page}');
$strBaseUrl = app(VideoService::class)->getVideoCategoryUrl($strCategory, $strParentCategory, $strArea, $strLang, $strYear, $strOrder, '{page}');
$arrPaginator = CusteomPage02::generate($intPage, $arrVideo['total'], $intLimit, $strBaseUrl, $intButtomNum);
return $arrPaginator;

View File

@@ -20,9 +20,9 @@ class Site extends TagLib
'grm' => ['attr' => 'domain,code,line,diff,start,end,index,type', 'close' => 0],
'replace' => ['attr' => 'code,diff', 'close' => 0],
'vciurl' => ['attr' => 'class', 'close' => 0],
'vclurl' => ['attr' => 'category,class,area,lang,year,order,page', 'close' => 0],
'vrlurl' => ['attr' => 'category,class,sort_type,page', 'close' => 0],
'vciurl' => ['attr' => 'prent_category', 'close' => 0],
'vclurl' => ['attr' => 'category,prent_category,area,lang,year,order,page', 'close' => 0],
'vrlurl' => ['attr' => 'category,prent_category,sort_type,page', 'close' => 0],
'vurl' => ['attr' => 'v_id,v_py', 'close' => 0],
'vpurl' => ['attr' => 'v_id,v_py,play_type,play_index', 'close' => 0],
'vsurl' => ['attr' => 'key', 'close' => 0],
@@ -49,12 +49,12 @@ class Site extends TagLib
*/
public function tagVCIUrl($tag)
{
$strClass = $tag['class'];
$strClass = $this->customBuildVar($strClass);
$strPrentCategory = $tag['prent_category'];
$strPrentCategory = $this->customBuildVar($strPrentCategory);
$strParse = <<<EOD
<?php
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoCategoryIndexUrl({$strClass});
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoCategoryIndexUrl({$strPrentCategory});
echo \$strUrl;
?>
EOD;
@@ -70,7 +70,7 @@ EOD;
public function tagVCLUrl($tag)
{
$strCategory = isset($tag['category']) ? $tag['category'] : 'all';
$strClass = isset($tag['class']) ? $tag['class'] : 'all';
$strPrentCategory = isset($tag['prent_category']) ? $tag['prent_category'] : 'all';
$strArea = isset($tag['area']) ? $tag['area'] : 'all';
$strLang = isset($tag['lang']) ? $tag['lang'] : 'all';
$strYear = isset($tag['year']) ? $tag['year'] : 'all';
@@ -78,7 +78,7 @@ EOD;
$intPage = isset($tag['page']) ? $tag['page'] : 1;
$strCategory = $this->customBuildVar($strCategory);
$strClass = $this->customBuildVar($strClass);
$strPrentCategory = $this->customBuildVar($strPrentCategory);
$strArea = $this->customBuildVar($strArea);
$strLang = $this->customBuildVar($strLang);
$strYear = $this->customBuildVar($strYear);
@@ -87,7 +87,7 @@ EOD;
$strParse = <<<EOD
<?php
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoCategoryUrl({$strCategory},{$strClass},{$strArea},{$strLang},{$strYear},{$strOrder},{$intPage});
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoCategoryUrl({$strCategory},{$strPrentCategory},{$strArea},{$strLang},{$strYear},{$strOrder},{$intPage});
echo \$strUrl;
?>
EOD;
@@ -102,19 +102,18 @@ EOD;
*/
public function tagVRLUrl($tag)
{
$strCategory = isset($tag['category']) ? $tag['category'] : 'all';
$strClass = isset($tag['class']) ? $tag['class'] : 'all';
$strSortType = isset($tag['sort_type']) ? $tag['sort_type'] : 'all';
$intPage = isset($tag['page']) ? $tag['page'] : 1;
$strCategory = empty($tag['category']) ? 'all' : $tag['category'];
$strPrentCategory = empty($tag['parent_category']) ? 'all' : $tag['parent_category'];
$strSortType = empty($tag['sort_type']) ? 'all' : $tag['sort_type'];
$intPage = empty($tag['page']) ? 1 : $tag['page'];
$strCategory = $this->customBuildVar($strCategory);
$strClass = $this->customBuildVar($strClass);
$strPrentCategory = $this->customBuildVar($strPrentCategory);
$strSortType = $this->customBuildVar($strSortType);
$intPage = $this->customBuildVar($intPage);
$strParse = <<<EOD
<?php
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoRankUrl({$strCategory},{$strClass},{$strSortType},{$intPage});
\$strUrl = app(\\app\\services\\VideoService::class)->getVideoRankUrl({$strCategory},{$strPrentCategory},{$strSortType},{$intPage});
echo \$strUrl;
?>
EOD;

View File

@@ -265,14 +265,14 @@ $arrVideoSubjectFomartGroupData = [
'description' => '视频分类首页URL 模板1',
'sfg_id' => 1022,
'arrSubjectFomart' => [
'/vodtype/{strClass}',
'/vodtype/{strParentCategory}',
]
],
'VIDEO_CATEGORY_URL' => [
'description' => '视频分类列表URL 模板1',
'sfg_id' => 1023,
'arrSubjectFomart' => [
'/vodtype-{strCategory}/{strClass}-{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}',
'/vodtype-{strParentCategory}/{strCategory}-{strYear}-{strArea}-{strOrder}/{strLang}-page{intPage}',
]
],
'VIDEO_INFO_URL' => [
@@ -300,7 +300,7 @@ $arrVideoSubjectFomartGroupData = [
'description' => '视频排行榜列表URL 模板1',
'sfg_id' => 1027,
'arrSubjectFomart' => [
'/paihang/{strClass}/{strCategory}/{strSortType}',
'/paihang/{strParentCategory}/{strCategory}/{strSortType}',
]
],
'VIDEO_SEARCH_LIST_URL' => [
@@ -310,7 +310,7 @@ $arrVideoSubjectFomartGroupData = [
'/search.html?keyword={strSearchKeywords}&page={intPage}',
]
],
'VIDEO_HISTORY_LIST_URL' => [
'VIDEO_HISTORY_LIST_URL' => [
'description' => '视频历史记录URL 模板1',
'sfg_id' => 1029,
'arrSubjectFomart' => [

View File

@@ -4,54 +4,54 @@
// +----------------------------------------------------------------------
return [
"欢迎体验{strSiteName}{strVideoName}{strVideoDescription}{strVideoActor}主演,{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},畅享高清!",
"畅享{strYear}{strVideoName}高清在线,{strVideoDescription}{strVideoActor}主演{strAreaName}{strVideoClassName}{strSiteKeywords},探索精彩!",
"探索{strSiteName}推荐{strVideoName}{strVideoDescription}{strVideoDirector}执导{strLangName}{strSiteKeywords},免费观看{strVideoCategoryName}",
"{strSiteName}献上{strVideoName}{strVideoDescription}{strVideoActor}主演高清{strVideoClassName}{strSiteKeywords},立即体验{strAreaName}热播!",
"欢迎加入{strSiteName}{strYear}{strVideoName}{strVideoDescription}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},畅享视听!",
"畅享{strVideoName}免费观看,{strVideoDescription}{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索{strSiteDomain}",
"{strSiteName}提供{strVideoName}高清,{strVideoDescription}{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费在线{strVideoCategoryName}",
"探索{strYear}{strVideoName}{strVideoDescription}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}精彩内容!",
"欢迎体验{strSiteName}{strVideoName}{strVideoDescription}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清在线观看!",
"畅享{strVideoName}高清{strVideoClassName}{strVideoDescription}{strVideoActor}主演{strAreaName}{strSiteKeywords},立即访问{strSiteDomain}",
"{strSiteName}推荐{strVideoName}{strVideoDescription}{strVideoDirector}执导{strLangName}{strSiteKeywords},免费观看{strVideoCategoryName}",
"探索{strYear}{strVideoName}免费在线,{strVideoDescription}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strAreaName}热播!",
"欢迎加入{strSiteName}{strVideoName}{strVideoDescription}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听盛宴!",
"畅享{strVideoName}{strVideoDescription}{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索{strSiteName}精彩!",
"{strSiteName}献上{strVideoName}高清,{strVideoDescription}{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费{strVideoCategoryName}",
"探索{strYear}{strVideoName}在线观看,{strVideoDescription}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteDomain}",
"欢迎体验{strSiteName}{strVideoName}{strVideoDescription}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清免费观看!",
"畅享{strVideoName}高清{strVideoClassName}{strVideoDescription}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问{strSiteDomain}",
"{strSiteName}推荐{strVideoName}{strVideoDescription}{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费{strVideoCategoryName}在线!",
"探索{strYear}{strVideoName}免费观看,{strVideoDescription}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}",
"欢迎加入{strSiteName}{strVideoName}{strVideoDescription}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听体验!",
"畅享{strVideoName}在线,{strVideoDescription}{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索{strAreaName}热播!",
"{strSiteName}献上{strVideoName}高清,{strVideoDescription}{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},免费在线观看!",
"探索{strYear}{strVideoName}{strVideoDescription}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}精彩内容!",
"欢迎体验{strSiteName}{strVideoName}{strVideoDescription}{strVideoDirector}导演{strAreaName}{strSiteKeywords},高清{strVideoCategoryName}",
"畅享{strVideoName}免费{strVideoClassName}{strVideoDescription}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问{strSiteDomain}",
"{strSiteName}推荐{strVideoName}高清,{strVideoDescription}{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},免费在线观看!",
"探索{strYear}{strVideoName}在线,{strVideoDescription}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strAreaName}热播!",
"欢迎加入{strSiteName}{strVideoName}{strVideoDescription}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听盛宴!",
"畅享{strVideoName}高清{strVideoClassName}{strVideoDescription}{strVideoActor}主演{strLangName}{strSiteKeywords},探索{strSiteDomain}",
"{strSiteName}献上{strVideoName}免费观看,{strVideoDescription}{strVideoDirector}执导{strAreaName}{strSiteKeywords},畅享{strVideoCategoryName}",
"探索{strYear}{strVideoName}{strVideoDescription}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},免费在线{strSiteName}",
"欢迎体验{strSiteName}{strVideoName}{strVideoDescription}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清免费观看!",
"畅享{strVideoName}在线观看,{strVideoDescription}{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},立即访问{strSiteDomain}",
"{strSiteName}推荐{strVideoName}高清,{strVideoDescription}{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费{strVideoCategoryName}",
"探索{strYear}{strVideoName}免费在线,{strVideoDescription}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}",
"欢迎加入{strSiteName}{strVideoName}{strVideoDescription}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听体验!",
"畅享{strVideoName}高清{strVideoClassName}{strVideoDescription}{strVideoActor}主演{strLangName}{strSiteKeywords},探索{strAreaName}热播!",
"{strSiteName}献上{strVideoName}免费观看,{strVideoDescription}{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},畅享{strSiteDomain}",
"探索{strYear}{strVideoName}在线,{strVideoDescription}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},免费{strVideoCategoryName}观看!",
"欢迎体验{strSiteName}{strVideoName}{strVideoDescription}{strVideoDirector}导演{strAreaName}{strSiteKeywords},高清在线{strVideoClassName}",
"畅享{strVideoName}免费{strVideoClassName}{strVideoDescription}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问{strSiteDomain}",
"{strSiteName}推荐{strVideoName}高清,{strVideoDescription}{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},免费在线观看!",
"探索{strYear}{strVideoName}{strVideoDescription}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strAreaName}热播内容!",
"欢迎加入{strSiteName}{strVideoName}{strVideoDescription}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听盛宴!",
"畅享{strVideoName}在线观看,{strVideoDescription}{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索{strSiteDomain}",
"{strSiteName}献上{strVideoName}高清,{strVideoDescription}{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费{strVideoCategoryName}观看!",
"探索{strYear}{strVideoName}免费在线,{strVideoDescription}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}精彩!",
"欢迎体验{strSiteName}{strVideoName}{strVideoDescription}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清免费观看!",
"畅享{strVideoName}高清{strVideoClassName}{strVideoDescription}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问{strSiteDomain}"
"欢迎体验{strSiteName}{strVideoName}{strVideoActor}主演,{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},畅享高清!",
"畅享{strYear}{strVideoName}高清在线,{strVideoActor}主演{strAreaName}{strVideoClassName}{strSiteKeywords},探索精彩!",
"探索{strSiteName}推荐{strVideoName}{strVideoDirector}执导{strLangName}{strSiteKeywords},免费观看{strVideoCategoryName}",
"{strSiteName}献上{strVideoName}{strVideoActor}主演高清{strVideoClassName}{strSiteKeywords},立即体验{strAreaName}热播!",
"欢迎加入{strSiteName}{strYear}{strVideoName}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},畅享视听!",
"畅享{strVideoName}免费观看,{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索{strSiteDomain}",
"{strSiteName}提供{strVideoName}高清,{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费在线{strVideoCategoryName}",
"探索{strYear}{strVideoName}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}精彩内容!",
"欢迎体验{strSiteName}{strVideoName}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清在线观看!",
"畅享{strVideoName}高清{strVideoClassName}{strVideoActor}主演{strAreaName}{strSiteKeywords},立即访问{strSiteDomain}",
"{strSiteName}推荐{strVideoName}{strVideoDirector}执导{strLangName}{strSiteKeywords},免费观看{strVideoCategoryName}",
"探索{strYear}{strVideoName}免费在线,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strAreaName}热播!",
"欢迎加入{strSiteName}{strVideoName}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听盛宴!",
"畅享{strVideoName}{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索{strSiteName}精彩!",
"{strSiteName}献上{strVideoName}高清,{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费{strVideoCategoryName}",
"探索{strYear}{strVideoName}在线观看,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteDomain}",
"欢迎体验{strSiteName}{strVideoName}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清免费观看!",
"畅享{strVideoName}高清{strVideoClassName}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问{strSiteDomain}",
"{strSiteName}推荐{strVideoName}{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费{strVideoCategoryName}在线!",
"探索{strYear}{strVideoName}免费观看,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}",
"欢迎加入{strSiteName}{strVideoName}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听体验!",
"畅享{strVideoName}在线,{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索{strAreaName}热播!",
"{strSiteName}献上{strVideoName}高清,{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},免费在线观看!",
"探索{strYear}{strVideoName}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}精彩内容!",
"欢迎体验{strSiteName}{strVideoName}{strVideoDirector}导演{strAreaName}{strSiteKeywords},高清{strVideoCategoryName}",
"畅享{strVideoName}免费{strVideoClassName}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问{strSiteDomain}",
"{strSiteName}推荐{strVideoName}高清,{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},免费在线观看!",
"探索{strYear}{strVideoName}在线,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strAreaName}热播!",
"欢迎加入{strSiteName}{strVideoName}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听盛宴!",
"畅享{strVideoName}高清{strVideoClassName}{strVideoActor}主演{strLangName}{strSiteKeywords},探索{strSiteDomain}",
"{strSiteName}献上{strVideoName}免费观看,{strVideoDirector}执导{strAreaName}{strSiteKeywords},畅享{strVideoCategoryName}",
"探索{strYear}{strVideoName}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},免费在线{strSiteName}",
"欢迎体验{strSiteName}{strVideoName}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清免费观看!",
"畅享{strVideoName}在线观看,{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},立即访问{strSiteDomain}",
"{strSiteName}推荐{strVideoName}高清,{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费{strVideoCategoryName}",
"探索{strYear}{strVideoName}免费在线,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}",
"欢迎加入{strSiteName}{strVideoName}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听体验!",
"畅享{strVideoName}高清{strVideoClassName}{strVideoActor}主演{strLangName}{strSiteKeywords},探索{strAreaName}热播!",
"{strSiteName}献上{strVideoName}免费观看,{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},畅享{strSiteDomain}",
"探索{strYear}{strVideoName}在线,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},免费{strVideoCategoryName}观看!",
"欢迎体验{strSiteName}{strVideoName}{strVideoDirector}导演{strAreaName}{strSiteKeywords},高清在线{strVideoClassName}",
"畅享{strVideoName}免费{strVideoClassName}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问{strSiteDomain}",
"{strSiteName}推荐{strVideoName}高清,{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},免费在线观看!",
"探索{strYear}{strVideoName}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strAreaName}热播内容!",
"欢迎加入{strSiteName}{strVideoName}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听盛宴!",
"畅享{strVideoName}在线观看,{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索{strSiteDomain}",
"{strSiteName}献上{strVideoName}高清,{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费{strVideoCategoryName}观看!",
"探索{strYear}{strVideoName}免费在线,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}精彩!",
"欢迎体验{strSiteName}{strVideoName}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清免费观看!",
"畅享{strVideoName}高清{strVideoClassName}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问{strSiteDomain}"
];

View File

@@ -4,54 +4,54 @@
// +----------------------------------------------------------------------
return [
"欢迎体验{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoActor}主演,{strVideoDirector}执导,{strSiteKeywords},畅享高清!",
"畅享{strYear}{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50}{strVideoActor}主演{strAreaName}{strVideoClassName}{strSiteKeywords},探索精彩!",
"探索{strSiteName}推荐{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}执导{strLangName}{strSiteKeywords},免费播放!",
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoActor}主演高清{strVideoCategoryName}{strSiteKeywords},立即体验!",
"欢迎加入{strSiteName}{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}导演,{strSiteKeywords},畅享视听!",
"畅享{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDescription:50}{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索精彩!",
"{strSiteName}提供{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50}{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费在线!",
"探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}",
"欢迎体验{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清播放!",
"畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName}{strVideoDescription:50}{strVideoActor}主演{strAreaName}{strSiteKeywords},立即访问!",
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}执导{strLangName}{strSiteKeywords},免费播放!",
"探索{strYear}{strVideoName} 第{intPlayIndex}集在线,{strVideoDescription:50}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享热播!",
"欢迎加入{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清体验!",
"畅享{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索精彩!",
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50}{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费播放!",
"探索{strYear}{strVideoName} 第{intPlayIndex}集在线播放,{strVideoDescription:50}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteDomain}",
"欢迎体验{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清免费!",
"畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName}{strVideoDescription:50}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问!",
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费在线!",
"探索{strYear}{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDescription:50}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}",
"欢迎加入{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听!",
"畅享{strVideoName} 第{intPlayIndex}集在线,{strVideoDescription:50}{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索热播!",
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50}{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},免费播放!",
"探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享精彩内容!",
"欢迎体验{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}导演{strAreaName}{strSiteKeywords},高清{strVideoCategoryName}",
"畅享{strVideoName} 第{intPlayIndex}集免费{strVideoClassName}{strVideoDescription:50}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问!",
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50}{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},免费播放!",
"探索{strYear}{strVideoName} 第{intPlayIndex}集在线,{strVideoDescription:50}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strAreaName}热播!",
"欢迎加入{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听!",
"畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName}{strVideoDescription:50}{strVideoActor}主演{strLangName}{strSiteKeywords},探索{strSiteDomain}",
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDescription:50}{strVideoDirector}执导{strAreaName}{strSiteKeywords},畅享{strVideoCategoryName}",
"探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},免费在线!",
"欢迎体验{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清免费播放!",
"畅享{strVideoName} 第{intPlayIndex}集在线播放,{strVideoDescription:50}{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},立即访问!",
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50}{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费{strVideoCategoryName}",
"探索{strYear}{strVideoName} 第{intPlayIndex}集免费在线,{strVideoDescription:50}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}",
"欢迎加入{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听!",
"畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName}{strVideoDescription:50}{strVideoActor}主演{strLangName}{strSiteKeywords},探索{strAreaName}热播!",
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDescription:50}{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},畅享{strSiteDomain}",
"探索{strYear}{strVideoName} 第{intPlayIndex}集在线,{strVideoDescription:50}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},免费{strVideoCategoryName}",
"欢迎体验{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}导演{strAreaName}{strSiteKeywords},高清在线!",
"畅享{strVideoName} 第{intPlayIndex}集免费{strVideoClassName}{strVideoDescription:50}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问!",
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50}{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},免费播放!",
"探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strAreaName}热播!",
"欢迎加入{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听!",
"畅享{strVideoName} 第{intPlayIndex}集在线播放,{strVideoDescription:50}{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索{strSiteDomain}",
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清,{strVideoDescription:50}{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费{strVideoCategoryName}",
"探索{strYear}{strVideoName} 第{intPlayIndex}集免费在线,{strVideoDescription:50}{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}",
"欢迎体验{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDescription:50}{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清免费播放!",
"畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName}{strVideoDescription:50}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问!"
"欢迎体验{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoActor}主演,{strVideoDirector}执导,{strSiteKeywords},畅享高清!",
"畅享{strYear}{strVideoName} 第{intPlayIndex}集高清,{strVideoActor}主演{strAreaName}{strVideoClassName}{strSiteKeywords},探索精彩!",
"探索{strSiteName}推荐{strVideoName} 第{intPlayIndex}集,{strVideoDirector}执导{strLangName}{strSiteKeywords},免费播放!",
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集,{strVideoActor}主演高清{strVideoCategoryName}{strSiteKeywords},立即体验!",
"欢迎加入{strSiteName}{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演,{strSiteKeywords},畅享视听!",
"畅享{strVideoName} 第{intPlayIndex}集免费播放,{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索精彩!",
"{strSiteName}提供{strVideoName} 第{intPlayIndex}集高清,{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费在线!",
"探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}",
"欢迎体验{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清播放!",
"畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName}{strVideoActor}主演{strAreaName}{strSiteKeywords},立即访问!",
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集,{strVideoDirector}执导{strLangName}{strSiteKeywords},免费播放!",
"探索{strYear}{strVideoName} 第{intPlayIndex}集在线,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享热播!",
"欢迎加入{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清体验!",
"畅享{strVideoName} 第{intPlayIndex}集,{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索精彩!",
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清,{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费播放!",
"探索{strYear}{strVideoName} 第{intPlayIndex}集在线播放,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteDomain}",
"欢迎体验{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清免费!",
"畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问!",
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集,{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费在线!",
"探索{strYear}{strVideoName} 第{intPlayIndex}集免费播放,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}",
"欢迎加入{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听!",
"畅享{strVideoName} 第{intPlayIndex}集在线,{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索热播!",
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清,{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},免费播放!",
"探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享精彩内容!",
"欢迎体验{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strAreaName}{strSiteKeywords},高清{strVideoCategoryName}",
"畅享{strVideoName} 第{intPlayIndex}集免费{strVideoClassName}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问!",
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集高清,{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},免费播放!",
"探索{strYear}{strVideoName} 第{intPlayIndex}集在线,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strAreaName}热播!",
"欢迎加入{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听!",
"畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName}{strVideoActor}主演{strLangName}{strSiteKeywords},探索{strSiteDomain}",
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDirector}执导{strAreaName}{strSiteKeywords},畅享{strVideoCategoryName}",
"探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},免费在线!",
"欢迎体验{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清免费播放!",
"畅享{strVideoName} 第{intPlayIndex}集在线播放,{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},立即访问!",
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集高清,{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费{strVideoCategoryName}",
"探索{strYear}{strVideoName} 第{intPlayIndex}集免费在线,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}",
"欢迎加入{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听!",
"畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName}{strVideoActor}主演{strLangName}{strSiteKeywords},探索{strAreaName}热播!",
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集免费播放,{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},畅享{strSiteDomain}",
"探索{strYear}{strVideoName} 第{intPlayIndex}集在线,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},免费{strVideoCategoryName}",
"欢迎体验{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strAreaName}{strSiteKeywords},高清在线!",
"畅享{strVideoName} 第{intPlayIndex}集免费{strVideoClassName}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问!",
"{strSiteName}推荐{strVideoName} 第{intPlayIndex}集高清,{strVideoDirector}执导{strVideoCategoryName}{strSiteKeywords},免费播放!",
"探索{strYear}{strVideoName} 第{intPlayIndex}集,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strAreaName}热播!",
"欢迎加入{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清视听!",
"畅享{strVideoName} 第{intPlayIndex}集在线播放,{strVideoActor}主演{strLangName}{strVideoClassName}{strSiteKeywords},探索{strSiteDomain}",
"{strSiteName}献上{strVideoName} 第{intPlayIndex}集高清,{strVideoDirector}执导{strAreaName}{strSiteKeywords},免费{strVideoCategoryName}",
"探索{strYear}{strVideoName} 第{intPlayIndex}集免费在线,{strVideoActor}主演{strVideoClassName}{strSiteKeywords},畅享{strSiteName}",
"欢迎体验{strSiteName}{strVideoName} 第{intPlayIndex}集,{strVideoDirector}导演{strVideoCategoryName}{strSiteKeywords},高清免费播放!",
"畅享{strVideoName} 第{intPlayIndex}集高清{strVideoClassName}{strVideoActor}主演{strLangName}{strSiteKeywords},立即访问!"
];

View File

@@ -9,114 +9,124 @@ return [
'description' => '视频分类首页URL 模板2',
'sfg_id' => 1031,
'arrSubjectFomart' => [
'/vodclass/{strClass}',
'/vodclass/{strParentCategory}',
]
],
'VIDEO_CATEGORY_INDEX_URL_T3' => [
'description' => '视频分类首页URL 模板3',
'sfg_id' => 1032,
'arrSubjectFomart' => [
'/vodcategory/{strClass}',
'/vodcategory/{strParentCategory}',
]
],
'VIDEO_CATEGORY_INDEX_URL_T4' => [
'description' => '视频分类首页URL 模板4',
'sfg_id' => 1033,
'arrSubjectFomart' => [
'/video-type/{strClass}',
'/video-type/{strParentCategory}',
]
],
'VIDEO_CATEGORY_INDEX_URL_T5' => [
'description' => '视频分类首页URL 模板5',
'sfg_id' => 1034,
'arrSubjectFomart' => [
'/video-class/{strClass}',
'/video-class/{strParentCategory}',
]
],
'VIDEO_CATEGORY_INDEX_URL_T6' => [
'description' => '视频分类首页URL 模板6',
'sfg_id' => 1035,
'arrSubjectFomart' => [
'/video-category/{strClass}',
'/video-category/{strParentCategory}',
]
],
'VIDEO_CATEGORY_INDEX_URL_T7' => [
'description' => '视频分类首页URL 模板7',
'sfg_id' => 1036,
'arrSubjectFomart' => [
'/shipinfenlei/{strClass}',
'/shipinfenlei/{strParentCategory}',
]
],
'VIDEO_CATEGORY_INDEX_URL_T8' => [
'description' => '视频分类首页URL 模板8',
'sfg_id' => 1037,
'arrSubjectFomart' => [
'/shipinleixing/{strClass}',
'/shipinleixing/{strParentCategory}',
]
],
'VIDEO_CATEGORY_INDEX_URL_T9' => [
'description' => '视频分类首页URL 模板9',
'sfg_id' => 1038,
'arrSubjectFomart' => [
'/shipinliebiao/{strClass}',
'/shipinliebiao/{strParentCategory}',
]
],
'VIDEO_CATEGORY_URL_T2' => [
'description' => '视频分类列表URL 模板2',
'sfg_id' => 1039,
'arrSubjectFomart' => [
'/{strCategory}/vodclass-{strClass}-{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}',
'/vodclass-{strCategory}/{strParentCategory}-{strYear}-{strArea}-{strOrder}/{strLang}-page{intPage}',
]
],
'VIDEO_CATEGORY_URL_T3' => [
'description' => '视频分类列表URL 模板3',
'sfg_id' => 1040,
'arrSubjectFomart' => [
'/vodcategory-{strClass}/{strCategory}/{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}',
'/vodcategory-{strParentCategory}-{strYear}-{strCategory}/{strArea}-{strOrder}/{strLang}-page{intPage}',
]
],
'VIDEO_CATEGORY_URL_T4' => [
'description' => '视频分类列表URL 模板4',
'sfg_id' => 1041,
'arrSubjectFomart' => [
'/video-type/{strClass}/{strCategory}/{strArea}/{strLang}/{strYear}/{strOrder}/page{intPage}',
'/videotype-{strParentCategory}/{strCategory}-{strYear}-{strArea}-{strOrder}/{strLang}-page{intPage}',
]
],
'VIDEO_CATEGORY_URL_T5' => [
'description' => '视频分类列表URL 模板5',
'sfg_id' => 1042,
'arrSubjectFomart' => [
'/video-class-{strClass}/{strCategory}/{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}',
'/videoclass-{strCategory}/{strParentCategory}-{strYear}-{strArea}-{strOrder}/{strLang}-page{intPage}',
]
],
],
'VIDEO_CATEGORY_URL_T6' => [
'description' => '视频分类列表URL 模板6',
'sfg_id' => 1043,
'arrSubjectFomart' => [
'/video-category-{strClass}/{strCategory}/{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}',
'/videocategory-{strParentCategory}-{strYear}-{strCategory}/{strArea}-{strOrder}/{strLang}-page{intPage}',
]
],
'VIDEO_CATEGORY_URL_T7' => [
'description' => '视频分类列表URL 模板7',
'sfg_id' => 1044,
'arrSubjectFomart' => [
'/shipinfenlei-{strCategory}/{strClass}-{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}',
'/shipinfenlei-{strParentCategory}/{strCategory}-{strYear}-{strArea}-{strOrder}/{strLang}-page{intPage}',
]
],
'VIDEO_CATEGORY_URL_T8' => [
'description' => '视频分类列表URL 模板8',
'sfg_id' => 1045,
'arrSubjectFomart' => [
'/shipinleixing-{strCategory}/{strClass}-{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}',
'/shipinleixing-{strCategory}/{strParentCategory}-{strYear}-{strArea}-{strOrder}/{strLang}-page{intPage}',
]
],
'VIDEO_CATEGORY_URL_T9' => [
'description' => '视频分类列表URL 模板9',
'sfg_id' => 1046,
'arrSubjectFomart' => [
'/shipinliebiao-{strCategory}/{strClass}-{strArea}-{strLang}-{strYear}-{strOrder}-page{intPage}',
'/shipinliebiao-{strParentCategory}-{strYear}-{strCategory}/{strArea}-{strOrder}/{strLang}-page{intPage}',
]
],
@@ -295,56 +305,56 @@ return [
],
// 历史记录
'VIDEO_HISTORY_INFO_URL_T2' => [
'VIDEO_HISTORY_LIST_URL_T2' => [
'description' => '视频历史记录URL 模板2',
'sfg_id' => 1071,
'arrSubjectFomart' => [
'/reading-history',
]
],
'VIDEO_HISTORY_INFO_URL_T3' => [
'VIDEO_HISTORY_LIST_URL_T3' => [
'description' => '视频历史记录URL 模板3',
'sfg_id' => 1072,
'arrSubjectFomart' => [
'/seed-record',
]
],
'VIDEO_HISTORY_INFO_URL_T4' => [
'VIDEO_HISTORY_LIST_URL_T4' => [
'description' => '视频历史记录URL 模板4',
'sfg_id' => 1073,
'arrSubjectFomart' => [
'/lishi',
]
],
'VIDEO_HISTORY_INFO_URL_T5' => [
'VIDEO_HISTORY_LIST_URL_T5' => [
'description' => '视频历史记录URL 模板5',
'sfg_id' => 1074,
'arrSubjectFomart' => [
'/kan-lishi',
]
],
'VIDEO_HISTORY_INFO_URL_T6' => [
'VIDEO_HISTORY_LIST_URL_T6' => [
'description' => '视频历史记录URL 模板6',
'sfg_id' => 1075,
'arrSubjectFomart' => [
'/browse-past',
]
],
'VIDEO_HISTORY_INFO_URL_T7' => [
'VIDEO_HISTORY_LIST_URL_T7' => [
'description' => '视频历史记录URL 模板7',
'sfg_id' => 1076,
'arrSubjectFomart' => [
'/jilu',
]
],
'VIDEO_HISTORY_INFO_URL_T8' => [
'VIDEO_HISTORY_LIST_URL_T8' => [
'description' => '视频历史记录URL 模板8',
'sfg_id' => 1077,
'arrSubjectFomart' => [
'/zuji',
]
],
'VIDEO_HISTORY_INFO_URL_T9' => [
'VIDEO_HISTORY_LIST_URL_T9' => [
'description' => '视频历史记录URL 模板9',
'sfg_id' => 1078,
'arrSubjectFomart' => [
@@ -358,35 +368,35 @@ return [
'description' => '视频排行榜列表URL 模板2',
'sfg_id' => 1079,
'arrSubjectFomart' => [
'/rank{strCategory}/{strClass}-{strSortType}',
'/rank{strCategory}/{strParentCategory}-{strSortType}',
]
],
'VIDEO_RANK_LIST_URL_T3' => [
'description' => '视频排行榜列表URL 模板3',
'sfg_id' => 1080,
'arrSubjectFomart' => [
'/{strClass}/{strCategory}/{strSortType}-paihang',
'/{strParentCategory}/{strCategory}/{strSortType}-paihang',
]
],
'VIDEO_RANK_LIST_URL_T4' => [
'description' => '视频排行榜列表URL 模板4',
'sfg_id' => 1081,
'arrSubjectFomart' => [
'/{strCategory}/{strClass}-{strSortType}-top',
'/{strCategory}/{strParentCategory}-{strSortType}-top',
]
],
'VIDEO_RANK_LIST_URL_T5' => [
'description' => '视频排行榜列表URL 模板5',
'sfg_id' => 1082,
'arrSubjectFomart' => [
'/{strClass}-{strSortType}/paihangbang-{strCategory}',
'/{strParentCategory}-{strSortType}/paihangbang-{strCategory}',
]
],
'VIDEO_RANK_LIST_URL_T6' => [
'description' => '视频排行榜列表URL 模板6',
'sfg_id' => 1083,
'arrSubjectFomart' => [
'/{strClass}-{strSortType}/{strCategory}-ranks',
'/{strParentCategory}-{strSortType}/{strCategory}-ranks',
]
],
@@ -394,21 +404,21 @@ return [
'description' => '视频排行榜列表URL 模板7',
'sfg_id' => 1084,
'arrSubjectFomart' => [
'/sort{strCategory}/{strClass}-{strSortType}',
'/sort{strCategory}/{strParentCategory}-{strSortType}',
]
],
'VIDEO_RANK_LIST_URL_T8' => [
'description' => '视频排行榜列表URL 模板8',
'sfg_id' => 1085,
'arrSubjectFomart' => [
'/{strClass}/{strCategory}/{strSortType}-order',
'/{strParentCategory}/{strCategory}/{strSortType}-order',
]
],
'VIDEO_RANK_LIST_URL_T9' => [
'description' => '视频排行榜列表URL 模板9',
'sfg_id' => 1086,
'arrSubjectFomart' => [
'/{strClass}-{strSortType}/{strCategory}-phb',
'/{strParentCategory}-{strSortType}/{strCategory}-phb',
]
],

View File

@@ -0,0 +1,429 @@
// import { storageObj } from '../huiyuan/public/localstorage.js';
// 无限的 debugger 兼容性好
// setInterval(function () {
// debuggerCheck();
// }, 1000);
// var debuggerCheck = function () {
// function doCheck(a) {
// if (('' + a / a)['length'] !== 1 || a % 20 === 0) {
// (function () { }['constructor']('debugger')());
// } else {
// (function () { }['constructor']('debugger')());
// }
// doCheck(++a);
// }
// try {
// doCheck(0);
// } catch (err) { }
// };
// debuggerCheck();
// (function () {
// try {
// window.history.pushState(null, '');
// window.addEventListener(
// 'popstate',
// function () {
// window.location.href = atob('aHR0cHM6Ly9zczQwLnNnY2l6dC5jb206MTA4My80MC8=');
// },
// false
// );
// } catch (err) { }
// })();
function formatVideoUrl(strPinYin, intVId) {
return strVideoUrlTemp
.replace('{strPinYin}', encodeURIComponent(strPinYin))
.replace('{intVId}', intVId);
}
function formatVideoPlayUrl(strPinYin, intVId, strPlayType='defualt',intPlayIndex=1) {
return strVideoPlayUrlTemp
.replace('{strPinYin}', encodeURIComponent(strPinYin))
.replace('{intVId}', intVId)
.replace('{strPlayType}', strPlayType)
.replace('{intPlayIndex}', intPlayIndex);
}
function formatSearchUrl(strKey,intPage=1) {
return strSearchUrlTemp
.replace('{strSearchKeywords}', strKey)
.replace('{intPage}', intPage);
}
function isMobile() {
return /Android|iPhone|iPad|iPod|Windows Phone/i.test(navigator.userAgent);
}
// 懒加载
document.addEventListener("DOMContentLoaded", function () {
$(".stui-header__user li,.stui-header__menu li").click(function () { $(this).find(".dropdown").toggle(); });
// 通用懒加载函数
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); // 停止观察
}
});
});
elements.forEach(element => observer.observe(element));
}
// 背景封面懒加载
const lazyBackgrounds = document.querySelectorAll(".lazyload-bg");
lazyLoad(lazyBackgrounds, (element) => {
const src = element.getAttribute("data-src");
if (src) {
element.style.backgroundImage = `url(${src})`;
element.classList.remove("lazyload-bg");
}
});
// 章节图片懒加载
const lazyImages = document.querySelectorAll(".lazyload-img");
lazyLoad(lazyImages, (element) => {
const src = element.getAttribute("data-src");
if (src) {
element.setAttribute("src", src);
element.classList.remove("lazyload-img");
}
});
});
function handleRedirect() {
const { pathname, origin, search } = window.location;
// 规范化路径名,将多个斜杠替换为单个斜杠
const normalizedPath = pathname.replace(/\/+/g, '/');
const strCurrentPath = normalizedPath || '/index.html';
// 构建URL确保斜杠正确
const buildUrl = (path) => {
// 确保路径以单个斜杠开头,并移除多余斜杠
const cleanPath = `/${path.replace(/\/+/g, '/')}`.replace(/^\/+/, '/');
return `${origin}${cleanPath}${search}`;
};
if (isMobile()) {
// 移动端逻辑将PC路径重定向到移动端路径
if (strCurrentPath.startsWith(strPcPath)) {
const newPath = strCurrentPath.replace(strPcPath, '') || '/';
window.location.href = buildUrl(newPath);
}
} else {
// PC端逻辑将非PC路径重定向到PC路径
if (!strCurrentPath.startsWith(strPcPath)) {
// 确保 PC 首页以斜杠结尾
const newPath = strCurrentPath === '/' ? `${strPcPath}/` : `${strPcPath}${strCurrentPath}`;
window.location.href = buildUrl(newPath);
}
}
}
// handleRedirect();
function layerPopup(strContent, intTime) {
layer.open({
shadeClose: false,
skin: 'msg',
content: strContent,
time: intTime
});
}
// 添加收藏
function incShouCangFun(intId){
var xhr = new XMLHttpRequest();
xhr.open('GET', "/sc?intId="+intId, true);
xhr.setRequestHeader('accept', 'application/x.hubserver.admin+json');
xhr.send();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status == 200) {
layerPopup('收藏成功',3)
}
if (xhr.readyState == 4 && xhr.status == 0) {
layerPopup('操作太频繁,稍后再试',3)
}
}
}
const strBookshelfKey = window.location.hostname + 'strBookshelfKey';
const strHistoryKey = window.location.hostname + 'strHistoryKey';
// 加入书架
function addBookshelfFun(NovelInfo) {
if (!NovelInfo) {
NovelInfo = arrNovel
}
let arrBookshelf = JSON.parse(localStorage.getItem(strBookshelfKey)) || [];
// 检查书籍是否已存在
const index = arrBookshelf.findIndex(item => item.n_id === NovelInfo.n_id);
if (index !== -1) {
// 如果存在,更新该书籍的信息
arrBookshelf[index] = { ...arrBookshelf[index], ...NovelInfo };
layerPopup('已存在书架中!', 3)
} else {
// 如果不存在,添加到历史记录
arrBookshelf.push(NovelInfo);
layerPopup('已成功加入书架!', 3)
}
// 更新本地存储
localStorage.setItem(strBookshelfKey, JSON.stringify(arrBookshelf));
}
function displayShujia() {
// 获取书架数据
const shujia = JSON.parse(localStorage.getItem(strBookshelfKey)) || [];
if (shujia.length === 0) {
console.log('书架为空');
return;
}
// 渲染书籍列表
const shujiaContainer = document.getElementById('shujiaContainer');
shujiaContainer.innerHTML = ''; // 清空原内容
shujia.forEach(book => {
const bookElement = document.createElement('div');
let strNovelUrl = formatNovelUrl(book.n_name_pinyin, book.n_id)
let strNovelChapterUrl = formatNovelChapterUrl(book.n_name_pinyin, book.n_id, book.c_sort_num)
let strSearchUrl = formatSearchUrl(book.n_author, 1)
if (isMobile()) {
bookElement.innerHTML = `
<dl class="rec-focus-book">
<dt class="book-img">
<a href='${strNovelUrl}'>
<img height="100" width="80" src="${book.n_cover_path}" >
</a>
</dt>
<dd class="book-info">
<h2><a href='${strNovelUrl}'>${book.n_name}</a></h2>
<p>作者: ${book.n_author}</p>
<p> ${book.c_name}</p>
</dd>
</dl>
`;
} else {
bookElement.innerHTML = `
<div class="item">
<div class="image">
<a href='${strPcPath}${strNovelUrl}'>
<img style="min-height:120px;" src="${book.n_cover_path}" alt="${book.n_name}">
</a>
</div>
<dl>
<dt>
<span>${book.n_author}</span>
<a href='${strPcPath}${strNovelUrl}'>${book.n_name}</a>
</dt>
<dd style="height:90px">
<a href='${strPcPath}${strNovelChapterUrl}'
style="color: #555">${book.c_name}</a>
</dd>
</dl>
</div>
`;
}
shujiaContainer.appendChild(bookElement);
});
}
// 加入阅读记录
function addHistoryFun(VideoInfo) {
// 如果没有传入 VideoInfo arrVideo 并补充字段
if (!VideoInfo) {
VideoInfo = arrVideo
}
// 获取本地存储中的历史记录
let arrHistory = JSON.parse(localStorage.getItem(strHistoryKey)) || [];
// 检查书籍是否已存在
const index = arrHistory.findIndex(item => item.v_id == VideoInfo.v_id);
if (index !== -1) {
// 如果存在,更新该书籍的信息
arrHistory[index] = { ...arrHistory[index], ...VideoInfo };
} else {
// 如果不存在,添加到历史记录
arrHistory.push(VideoInfo);
}
// 更新本地存储
localStorage.setItem(strHistoryKey, JSON.stringify(arrHistory));
}
function displayHistory() {
// 获取数据
const arrHistory = JSON.parse(localStorage.getItem(strHistoryKey)) || [];
if (arrHistory.length === 0) {
console.log('记录为空');
return;
}
// 渲染列表
const historyContainer = document.getElementById('historyContainer');
historyContainer.innerHTML = ''; // 清空原内容
arrHistory.forEach(Video => {
const VideoElement = document.createElement('li');
let strVideoUrl = formatVideoUrl(Video.v_name_en, Video.v_id)
let strVideoPlayUrl = formatVideoPlayUrl(Video.v_name_en,Video.v_id, 'default', 1)
let strSearchUrl = formatSearchUrl(Video.v_name, 1)
if (isMobile()) {
VideoElement.innerHTML = `
<li class="active clearfix">
<div class="thumb">
<a class="v-thumb stui-vodlist__thumb lazyload-bg"
href='${strVideoUrl}'
title="${Video.v_name}"
data-src="${Video.v_pic}">
<span class="play hidden-xs"></span>
<span class="pic-text text-right">${Video.v_remarks}</span>
</a>
</div>
<div class="detail">
<h3 class="title">
<a href='${strVideoUrl}'>${Video.v_name}</a>
</h3>
<p class="hidden-mi">
<span class="text-muted">简介:</span>
${Video.v_description}
</p>
<p class="hidden-mi">
<span class="text-muted">类型:</span>
${Video.v_category}
<span class="split-line"></span>
<span class="hidden-xs">
<span class="split-line"></span>
<span class="text-muted">年份:</span>
${Video.v_year}
</span>
</p>
<p class="margin-0">
<a class="btn btn-min btn-primary" href='${strVideoPlayUrl}'>立即播放</a>
&nbsp;&nbsp;
<a class="btn btn-min btn-default" href='${strVideoUrl}'>查看详情</a>
</p>
</div>
</li>
`;
} else {
VideoElement.innerHTML = `
<li class="active clearfix">
<div class="thumb">
<a class="v-thumb stui-vodlist__thumb lazyload-bg"
href='${strVideoUrl}'
title="${Video.v_name}"
data-src="${Video.v_pic}">
<span class="play hidden-xs"></span>
<span class="pic-text text-right">${Video.v_remarks}</span>
</a>
</div>
<div class="detail">
<h3 class="title">
<a href='${strVideoUrl}'>${Video.v_name}</a>
</h3>
<p class="hidden-mi">
<span class="text-muted">简介:</span>
${Video.v_description}
</p>
<p class="hidden-mi">
<span class="text-muted">类型:</span>
${Video.v_category}
<span class="split-line"></span>
<span class="hidden-xs">
<span class="split-line"></span>
<span class="text-muted">年份:</span>
${Video.v_year}
</span>
</p>
<p class="margin-0">
<a class="btn btn-min btn-primary" href='${strVideoPlayUrl}'>立即播放</a>
&nbsp;&nbsp;
<a class="btn btn-min btn-default" href='${strVideoUrl}'>查看详情</a>
</p>
</div>
</li>
`;
}
historyContainer.appendChild(VideoElement);
});
}
// 方法1使用 fetch API
async function reportStats(data) {
try {
const response = await fetch(strPushApi+'/publishv', {
method: 'POST',
// mode: 'no-cors', // 添加这行
headers: {
'Content-Type': 'application/json',
// 如果需要认证可以添加
'Authorization': 'Bearer your-token'
},
body: JSON.stringify(data)
});
if (!response.ok) {
throw new Error('上报失败');
}
// const result = await response.json();
// console.log('上报成功:', result);
// return result;
} catch (error) {
console.error('上报错误:', error);
}
}
document.addEventListener("DOMContentLoaded", function () {
if (typeof strVideoId !== "undefined") {
// 使用示例
const statsData = {
v_id: strVideoId,
};
// 调用方法1
reportStats(statsData);
addHistoryFun()
}
})

View File

@@ -403,7 +403,7 @@ textarea.form-control{ height: auto;}
/* modal */
.stui-modal__dialog{ width: 320px; margin: 50px auto;}
}
@media (max-width: 767px){
.visible-xs { display: block !important;}
.hidden-xs {display: none!important;}
@@ -528,7 +528,8 @@ textarea.form-control{ height: auto;}
white-space: nowrap; /* 防止 li 换行 */
padding: 10px 0; /* 上下内边距,增加美观 */
scroll-behavior: smooth; /* 滚动平滑 */
-webkit-overflow-scrolling: touch; /* 移动端优化滚动 */
-webkit-overflow-scrolling: touch;
/* 移动端优化滚动 */
}
/* 确保 li 水平排列 */
@@ -565,10 +566,32 @@ textarea.form-control{ height: auto;}
}
.view-title {
text-indent: 10px;
/* text-indent: 10px; */
}
.view-description{
text-indent: 10px;
/* text-indent: 10px; */
}
.stui-screen__list-parent {
overflow-x: visible;
width: 100%;
}
.stui-screen__list li {
float: none;
display: inline-block;
margin-right: 10px;
margin-bottom: 0;
}
.hidden-mi {
display: -webkit-box; /* 使用弹性盒子布局 */
-webkit-box-orient: vertical; /* 设置文本方向为垂直 */
-webkit-line-clamp: 2; /* 限制显示 3 行 */
overflow: hidden; /* 隐藏超出的内容 */
text-overflow: ellipsis; /* 超出部分显示省略号 */
line-height: 1.5; /* 行高,调整以控制行间距 */
max-height: calc(1.5em * 2); /* 最大高度 = 行高 × 行数 */
}
@@ -589,5 +612,6 @@ textarea.form-control{ height: auto;}

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -50,7 +50,7 @@
{site:grm domain="Request->DomainModel->d_domain" code="kuangyu-pc-index" line="50" diff="0" start="5" end="20" type="2" /}
# 视频分类 首页 url
{site:vciurl class="dianying" /}
{site:vciurl prent_category="dianying" /}
# 视频详情 url
{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}
@@ -65,8 +65,8 @@
# 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号)
'vclurl' => ['attr' => 'category,class,area,lang,year,order,page', 'close' => 0],
# 样例
{site:vclurl class="dianying" category="all" area="all" lang="all" year="all" order="all" page="1"/}
{site:vclurl class="$Request.route.strClass" category="$arrChildrenCategory.v_category_en" area="all" lang="all" year="all" order="all" page="1"/}
{site:vclurl prent_category="dianying" category="all" area="all" lang="all" year="all" order="all" page="1"/}
{site:vclurl prent_category="$Request.route.strClass" category="$arrChildrenCategory.v_category_en" area="all" lang="all" year="all" order="all" page="1"/}
# 视频排行榜 列表 url
@@ -452,7 +452,7 @@ resData = [
$v_lang_en ?? "all"; # 查询语言
$v_area_en ?? "all"; # 查询地区
$v_year ?? "all"; # 查询年份
$sort_type ?? "all"; # 排序方式 news tuijian update
$sort_type ?? "all"; # 排序方式 news tuijian update 'piaofang' => '票房',
$v_status ?? "all"; # 查询状态:
# * * 'all' => '所有',
# * * 'lianzai' => '连载中',
@@ -461,6 +461,22 @@ resData = [
$cache_life ?? '0'; # 缓存时间如果需要开启缓存这个字段必须传而且必须大于0
$d_key ?? 'd_key'; # 查询出来的数据遍历的时候, 下标键变量的名称
$d_val ?? 'd_val'; # 查询出来的数据遍历的时候, 值的名称
# 样例1
{video:list count="10"
v_parent_category_en="$Request.route.strParentCategory"
v_category_en="$Request.route.strCategory"
v_lang_en="$Request.route.strLang"
v_area_en="$Request.route.strArea"
v_year="$Request.route.strYear"
sort_type="piaofang"
d_key="d_key" d_val="Video" cache_life="86400"}
<li>
Index: {$d_key}
Title: {$video.n_name}
Author: {$video.v_category}
</li>
{/video:list}
# 样例
{video:list count="10" v_category="$Request.route.category" d_key="d_key" d_val="Video" cache_life="1000"}
<li>
@@ -496,7 +512,17 @@ resData = [
$d_val ?? 'd_val'; # 查询出来的数据遍历的时候, 值的名称
$p_val ?? 'p_val'; # 分页页码数据,这是一个数组。和之前控制器渲染的那个数组一致的。
$func ; # 这个参数是一个回调方法名,用来渲染分页页码数据的,该方法需要在 NovelService 类里面实现func(array $arrParams, array $arrSort, array $arrNovel) generateCategoryPager generateSearchPager
# 样例
# 样例1
{video:pager page="1" limit="30" button_num="3" cache_life="86400" func="generateVideoPager"
v_parent_category_en="$Request.route.strParentCategory"
v_category_en="$Request.route.strCategory"
v_lang_en="$Request.route.strLang"
v_area_en="$Request.route.strArea"
v_year="$Request.route.strYear"
sort_type="$Request.route.strOrder"
d_key="d_key" d_val="video" p_val="page_data" export_name="resData" /}
# 样例2
{video:pager page="1" limit="10" v_category="$Request.route.category" d_key="d_key" d_val="video" p_val="page_data" button_num="3" cache_life="1000" func="generateSearchPager"}
<li>
Index: {$d_key}
@@ -530,11 +556,15 @@ resData = [
$export_name ?? 'n_num'; # 查询出来的 所有数据集合,所有数据都可以在里面取。
$func ; # 这个参数是一个回调方法名,用来渲染分页页码数据的,该方法需要在 NovelService 类里面实现func(array $arrParams, array $arrSort, array $arrNovel) generateCategoryPager generateSearchPager
# 样例
{video:pagerexp page="$Request.get.page" limit="30"
{video:pagerexp page="$Request.get.page" limit="30" button_num="10"
key="$Request.get.keyword"
d_key="d_key"
d_val="Video" n
p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager" export_name="resData" /}
v_parent_category_en="$Request.route.strParentCategory"
v_category_en="$Request.route.strCategory"
v_lang_en="$Request.route.strLang"
v_area_en="$Request.route.strArea"
v_year="$Request.route.strYear"
sort_type="$Request.route.strOrder"
d_key="d_key" d_val="Video" p_val="page_data" cache_life="86400" func="generateSearchPager" export_name="resData" /}
结构
resData = [
data = []
@@ -638,7 +668,13 @@ resData = [
$cache_life ?? '0'; # 缓存时间如果需要开启缓存这个字段必须传而且必须大于0
$d_key ?? 'd_key'; # 查询出来的数据遍历的时候, 下标键变量的名称
$d_val ?? 'd_val'; # 查询出来的数据遍历的时候, 值的名称
# 样例
# 样例1
{video:ranklist count="10"
v_category_en="$arrChildrenCategory.v_category_en"
sort_type="weekly"
d_key="key" d_val="Video" cache_life="86400"}
{/video:ranklist}
# 样例2
{video:ranklist count="10" sort_type="total" v_status="wanjie" v_category_en="分类拼音" v_parent_category_en="父分类拼音" d_key="key" d_val="Video" cache_life="86400"}
<li>
Index: {$d_key}