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

@@ -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) {