From bcf6ea997189e5c96a9a7c0db54c63c9ec0e4957 Mon Sep 17 00:00:00 2001 From: make Date: Mon, 5 May 2025 17:28:28 +0800 Subject: [PATCH] debug --- code/app/home/view/videoDadi/base.html | 18 +++--- code/app/home/view/videoDadi/index/index.html | 6 +- .../view/videoDadi/public/video-panel.html | 2 +- .../view/videoDadi/video/getCategoryType.html | 60 +++++++++++++++---- .../view/videoDadi/video/getVideoInfo.html | 8 +-- code/extend/template/taglib/Video.php | 4 ++ code/public/public/video/common.js | 3 - 7 files changed, 74 insertions(+), 27 deletions(-) diff --git a/code/app/home/view/videoDadi/base.html b/code/app/home/view/videoDadi/base.html index ebacaf7..5f4429b 100644 --- a/code/app/home/view/videoDadi/base.html +++ b/code/app/home/view/videoDadi/base.html @@ -21,13 +21,7 @@ - - - - + {block name="head"}{/block} {block name="head-css"}{/block} {block name="head-js"}{/block} @@ -124,6 +118,14 @@ {/block} + + + + + {// 全局统计 } {site:cfg code="PUBLIC_TONGJI_CODE" encode="false"/} @@ -131,6 +133,8 @@ {$DomainModel->d_statis|raw} + + diff --git a/code/app/home/view/videoDadi/index/index.html b/code/app/home/view/videoDadi/index/index.html index 94d98e3..f29cd0f 100644 --- a/code/app/home/view/videoDadi/index/index.html +++ b/code/app/home/view/videoDadi/index/index.html @@ -41,7 +41,11 @@ "@type": "VideoObject", "name": "{$DomainModel->d_name}热门推荐预告片", "description": "观看{$DomainModel->d_name}最新电影和电视剧的精彩预告片!", - "thumbnailUrl": "https://video1.com/img/video/2024/12/18/17/ai-qing-sheng-huo-di-er-ji.webp", + {volist name="arrVideoTuijian" id="Video" key="key"} + {if $key == 1 } + "thumbnailUrl": 'https://{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}', + {/if} + {/volist} "uploadDate": "{:date('y-m-d')}", "publisher": { "@type": "Organization", diff --git a/code/app/home/view/videoDadi/public/video-panel.html b/code/app/home/view/videoDadi/public/video-panel.html index b1c3c93..c54b372 100644 --- a/code/app/home/view/videoDadi/public/video-panel.html +++ b/code/app/home/view/videoDadi/public/video-panel.html @@ -11,7 +11,7 @@

最新{$val.v_category}{$val.v_category_en} + href="">最新{$val.v_category}

@@ -294,7 +294,7 @@ 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" /} + {include file="public/video-list-phb" start="0"/} {/video:ranklist} diff --git a/code/extend/template/taglib/Video.php b/code/extend/template/taglib/Video.php index bd4eaea..36d47dd 100644 --- a/code/extend/template/taglib/Video.php +++ b/code/extend/template/taglib/Video.php @@ -57,6 +57,10 @@ class Video extends TagLib */ public function tagRankList($tag, $content) { + // if($tag['sort_type'] == 'weekly'){ + // var_dump($tag);exit; + // } + $count = $tag['count'] ?? '10'; $sort_type = $tag['sort_type'] ?? ""; $v_status = $tag['v_status'] ?? "all"; diff --git a/code/public/public/video/common.js b/code/public/public/video/common.js index 25523af..64d82c4 100644 --- a/code/public/public/video/common.js +++ b/code/public/public/video/common.js @@ -59,9 +59,6 @@ function isMobile() { // 懒加载 document.addEventListener("DOMContentLoaded", function () { - $(".stui-header__user li,.stui-header__menu li").click(function () { $(this).find(".dropdown").toggle(); }); - - // 通用懒加载函数 function lazyLoad(elements, callback) { const observer = new IntersectionObserver((entries, observer) => {