debug
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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));
|
||||
// });
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="stui-vodlist__box">
|
||||
<a style="color: rgb(233, 93, 80); background-image: url("/static/img/default.jpg");"
|
||||
|
||||
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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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}
|
||||
@@ -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>
|
||||
|
||||
{/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> <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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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}
|
||||
|
||||
|
||||
@@ -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> <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}
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
{/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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
{/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>
|
||||
|
||||
</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>
|
||||
|
||||
{/volist}
|
||||
<a href='{site:vsurl key="$vo" p="1"/}'>{$vo}</a>
|
||||
|
||||
{/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>
|
||||
|
||||
{/volist}
|
||||
<a href='{site:vsurl key="$vo" p="1"/}'>{$vo}</a>
|
||||
|
||||
{/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>
|
||||
<a
|
||||
href='{site:vurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en"/}'>{$arrVideo.v_name}</a>
|
||||
</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}
|
||||
@@ -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>
|
||||
|
||||
<a href='{site:vsurl key="$arrVideo.v_category" p="1"/}'>{$arrVideo.v_category}</a>
|
||||
|
||||
<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>
|
||||
|
||||
{/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>
|
||||
|
||||
</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>
|
||||
<a href="#">{}</a>
|
||||
|
||||
</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) {
|
||||
|
||||
@@ -184,7 +184,6 @@ class DomainModel extends BaseModel
|
||||
$arrKeys[] = '{' . $strKey . '}';
|
||||
$arrVals[] = $strVal;
|
||||
}
|
||||
|
||||
return str_replace($arrKeys, $arrVals, $strSfVal);
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user