fix(videoGpt1): restore detail and play url chain
This commit is contained in:
@@ -1,111 +1,123 @@
|
||||
{// ===================== Action Variants ===================== }
|
||||
{php}
|
||||
$strDetailActionSlug = trim((string)($arrVideo['v_name_en'] ?? request()->route('strPinyin') ?? ''));
|
||||
if ($strDetailActionSlug === '') {
|
||||
$strDetailActionSlug = (string)($arrVideo['v_id'] ?? '');
|
||||
}
|
||||
$strDetailDefaultPlayUrl = app(\app\services\VideoService::class)->getVideoPlayUrl(
|
||||
(int)($arrVideo['v_id'] ?? 0),
|
||||
$strDetailActionSlug,
|
||||
'default',
|
||||
1
|
||||
);
|
||||
{/php}
|
||||
|
||||
{if $variant == 0}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-action v0">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>立即播放</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">立即播放</a>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 1}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-action v1">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>在线播放</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">在线播放</a>
|
||||
<span>无需安装</span>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 2}
|
||||
<nav class="{$TpStyle.dom_prefix}-dm-action v2">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>▶ 播放</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">▶ 播放</a>
|
||||
<a href="#desc">剧情</a>
|
||||
</nav>
|
||||
|
||||
{elseif $variant == 3}
|
||||
<ul class="{$TpStyle.dom_prefix}-dm-action v3">
|
||||
<li><a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>高清</a></li>
|
||||
<li><a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>免费</a></li>
|
||||
<li><a href="{$strDetailDefaultPlayUrl}">高清</a></li>
|
||||
<li><a href="{$strDetailDefaultPlayUrl}">免费</a></li>
|
||||
</ul>
|
||||
|
||||
{elseif $variant == 4}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-action v4">
|
||||
<button onclick="location.href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'">立即观看</button>
|
||||
<button onclick="location.href='{$strDetailDefaultPlayUrl}'">立即观看</button>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 5}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-action v5">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>{$arrVideo.v_name} 在线观看</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">{$arrVideo.v_name} 在线观看</a>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 6}
|
||||
<footer class="{$TpStyle.dom_prefix}-dm-action v6">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>开始播放</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">开始播放</a>
|
||||
</footer>
|
||||
|
||||
{elseif $variant == 7}
|
||||
<section class="{$TpStyle.dom_prefix}-dm-action v7">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>免费观看</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">免费观看</a>
|
||||
<small>高清资源</small>
|
||||
</section>
|
||||
|
||||
{elseif $variant == 8}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-action v8">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>播放正片</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">播放正片</a>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 9}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-action v9">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>立即观看 {$arrVideo.v_name}</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">立即观看 {$arrVideo.v_name}</a>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 10}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-action v10">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>在线播放 · 高清</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">在线播放 · 高清</a>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 11}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-action v11">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>点击播放</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">点击播放</a>
|
||||
<span>支持多线路</span>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 12}
|
||||
<nav class="{$TpStyle.dom_prefix}-dm-action v12">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>播放</a>
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>下载</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">播放</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">下载</a>
|
||||
</nav>
|
||||
|
||||
{elseif $variant == 13}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-action v13">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>▶</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">▶</a>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 14}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-action v14">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>{$arrVideo.v_name} 免费看</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">{$arrVideo.v_name} 免费看</a>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 15}
|
||||
<aside class="{$TpStyle.dom_prefix}-dm-action v15">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>立即播放</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">立即播放</a>
|
||||
</aside>
|
||||
|
||||
{elseif $variant == 16}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-action v16"
|
||||
data-action="play">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>播放影片</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">播放影片</a>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 17}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-action v17">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>高清播放</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">高清播放</a>
|
||||
<em>无需登录</em>
|
||||
</div>
|
||||
|
||||
{elseif $variant == 18}
|
||||
<section class="{$TpStyle.dom_prefix}-dm-action v18">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>在线观看</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">在线观看</a>
|
||||
</section>
|
||||
|
||||
{elseif $variant == 19}
|
||||
<footer class="{$TpStyle.dom_prefix}-dm-action v19">
|
||||
<a href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>马上播放</a>
|
||||
<a href="{$strDetailDefaultPlayUrl}">马上播放</a>
|
||||
</footer>
|
||||
|
||||
{/if}
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
{// ===================== Cover Variants ===================== }
|
||||
{video:imgalt video="$arrVideo" slot="detail_cover" item_type="poster" export_name="strAlt" /}
|
||||
{php}
|
||||
$strDetailCoverSlug = trim((string)($arrVideo['v_name_en'] ?? request()->route('strPinyin') ?? ''));
|
||||
if ($strDetailCoverSlug === '') {
|
||||
$strDetailCoverSlug = (string)($arrVideo['v_id'] ?? '');
|
||||
}
|
||||
$strDetailCoverPlayUrl = app(\app\services\VideoService::class)->getVideoPlayUrl(
|
||||
(int)($arrVideo['v_id'] ?? 0),
|
||||
$strDetailCoverSlug,
|
||||
'default',
|
||||
1
|
||||
);
|
||||
{/php}
|
||||
|
||||
{if $variant == 0}
|
||||
<div class="{$TpStyle.dom_prefix}-dm-cover v0">
|
||||
@@ -20,7 +32,7 @@
|
||||
|
||||
{elseif $variant == 2}
|
||||
<a class="{$TpStyle.dom_prefix}-dm-cover v2"
|
||||
href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>
|
||||
href="{$strDetailCoverPlayUrl}">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-img"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}"
|
||||
alt="{$strAlt}">
|
||||
@@ -89,7 +101,7 @@
|
||||
|
||||
{elseif $variant == 11}
|
||||
<a class="{$TpStyle.dom_prefix}-dm-cover v11"
|
||||
href='{site:vpurl v_id="$arrVideo.v_id" v_py="$arrVideo.v_name_en" play_type="default" play_index="1" /}'>
|
||||
href="{$strDetailCoverPlayUrl}">
|
||||
<img class="{$TpStyle.dom_prefix}-dm-cover-bg" alt="{$strAlt}"
|
||||
src="{site:cfg code='PUBLIC_COVER_DOMAIN' encode='false'/}{$arrVideo.v_pic}">
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user