From bb10add769a5ffb49a175c6ebf13601481e93901 Mon Sep 17 00:00:00 2001 From: make Date: Mon, 5 May 2025 13:54:05 +0800 Subject: [PATCH 1/5] debug --- code/app/home/view/videoDadi/base.html | 11 ++---- code/app/home/view/videoDadi/index/index.html | 39 +++++++++++++++---- .../view/videoDadi/public/video-panel.html | 2 +- 3 files changed, 36 insertions(+), 16 deletions(-) diff --git a/code/app/home/view/videoDadi/base.html b/code/app/home/view/videoDadi/base.html index a78a98c..c3f345b 100644 --- a/code/app/home/view/videoDadi/base.html +++ b/code/app/home/view/videoDadi/base.html @@ -62,7 +62,7 @@ @@ -127,11 +125,10 @@ {/block} - - + {// 全局统计 } {site:cfg code="PUBLIC_TONGJI_CODE" encode="false"/} - + {// 站点统计 } {$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 7fccb28..41dee94 100644 --- a/code/app/home/view/videoDadi/index/index.html +++ b/code/app/home/view/videoDadi/index/index.html @@ -37,8 +37,7 @@ "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", - "uploadDate": "2025-05-05", - "duration": "m3u8", + "uploadDate": "{:date('y-m-d')}", "publisher": { "@type": "Organization", "name": "{$DomainModel->d_name}" @@ -61,7 +60,7 @@ "item": { "@type": "TVSeries", "name": "{$Video.v_name}", - "url": "https://video1.com/voddetail/ai-qing-sheng-huo-di-er-ji-115959", + "url": 'https://{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}', "description": "{$Video.v_description}", "actor": [ {foreach $Video.v_actor as $strActorKey=>$strActor } @@ -74,13 +73,37 @@ "image": "{$Video.v_pic}", "aggregateRating": { "@type": "AggregateRating", - "ratingValue": "7.5", - "reviewCount": "1200" + "ratingValue": "{$Video.v_score}", + } + } + }, + {/video:list} + + {video:list count="2" sort_type="tuijian" d_key="key" d_val="Video" cache_life="86400"} + { + "@type": "ListItem", + "position": {$key+=1}, + "item": { + "@type": "Movies", + "name": "{$Video.v_name}", + "url": 'https://{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}', + "description": "{$Video.v_description}", + "actor": [ + {foreach $Video.v_actor as $strActorKey=>$strActor } + {if $strActorKey < 5 } + { "@type": "Person", "name": "{$strActor}" }, + {/if} + {/foreach} + ], + "numberOfEpisodes": {$Video.v_play_url|count}, + "image": "{$Video.v_pic}", + "aggregateRating": { + "@type": "AggregateRating", + "ratingValue": "{$Video.v_score}", } } }, {/video:list} - ] } } @@ -111,7 +134,7 @@
更多更多推荐

@@ -171,7 +194,7 @@

    - {video:ranklist count="10" + {video:ranklist count="2" sort_type="$key" d_key="key" d_val="Video" cache_life="86400"} {include file="public/video-list-phb" /} diff --git a/code/app/home/view/videoDadi/public/video-panel.html b/code/app/home/view/videoDadi/public/video-panel.html index 0ff0790..d4e0da9 100644 --- a/code/app/home/view/videoDadi/public/video-panel.html +++ b/code/app/home/view/videoDadi/public/video-panel.html @@ -6,7 +6,7 @@
    更多更多{$val.v_category}

    From 9ae9e94f8ac6cb910d9510c9a0d833af2208874e Mon Sep 17 00:00:00 2001 From: make Date: Mon, 5 May 2025 14:15:51 +0800 Subject: [PATCH 2/5] debug --- code/app/home/view/videoDadi/base.html | 3 +- code/app/home/view/videoDadi/index/index.html | 15 +- code/public/template/videodadi/css/index.css | 29 --- .../template/videodadi/css/stui_block.css | 167 ++++++++++++++++++ .../videodadi/css/stui_block_color.css | 130 -------------- 5 files changed, 178 insertions(+), 166 deletions(-) delete mode 100644 code/public/template/videodadi/css/index.css delete mode 100644 code/public/template/videodadi/css/stui_block_color.css diff --git a/code/app/home/view/videoDadi/base.html b/code/app/home/view/videoDadi/base.html index c3f345b..3ca1fa7 100644 --- a/code/app/home/view/videoDadi/base.html +++ b/code/app/home/view/videoDadi/base.html @@ -17,10 +17,9 @@ - + - @@ -44,12 +44,8 @@ {block name="head-js"}{/block} - - {block name="main"} - -

    {site:replace code="VIDEO@GETCATEGORYINDEX@H1"} @@ -60,77 +56,76 @@
    {video:categorytype category_type="ONE" d_key="key" d_val="val"} - {if $val.v_category_en == $Request.route.strParentCategory} + {if $val.v_category_en == $Request.route.strParentCategory} - {foreach $val.children as $intChildrenKey=>$arrChildrenCategory } - -
    -
    -
    -
    -
    -
    - - 更多 - - -

    - - {site:getval code="strYear" /}最新{$arrChildrenCategory.v_category}推荐 - {$DomainModel->d_name} - -

    + {foreach $val.children as $intChildrenKey=>$arrChildrenCategory } + +
    +
    +
    +
    + +
      + {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" start="0"/} + {/video:list} + +
    + +
    +
    -
      - {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} - -
    - -
    -
    -
    -
    - {/foreach} - {/if} + {/foreach} + {/if} {/video:categorytype}
    diff --git a/code/app/model/VideoCategoryModel.php b/code/app/model/VideoCategoryModel.php index b20549d..fbfb0d9 100644 --- a/code/app/model/VideoCategoryModel.php +++ b/code/app/model/VideoCategoryModel.php @@ -79,11 +79,11 @@ class VideoCategoryModel extends MongoModel "v_category" => "动画片", "children" => [], ], - [ - "v_category_en" => "lun-li-pian", - "v_category" => "倫理片", - "children" => [], - ], + // [ + // "v_category_en" => "lun-li-pian", + // "v_category" => "倫理片", + // "children" => [], + // ], ], ], [ diff --git a/code/app/services/VideoService.php b/code/app/services/VideoService.php index c22fe69..ef10c89 100644 --- a/code/app/services/VideoService.php +++ b/code/app/services/VideoService.php @@ -301,6 +301,7 @@ class VideoService */ public function getVideoList(array $arrParams): array { + $intCount = (int)$arrParams['count'] ?? 10; // $strVCategory = $arrParams['v_category'] ?? ''; $strSortType = (string)$arrParams['sort_type'] ?? ''; @@ -311,6 +312,7 @@ class VideoService $strVCategoryEn = (string) $arrParams['v_category_en'] ?? ''; $strVParentCategoryEn = (string) $arrParams['v_parent_category_en'] ?? ''; + $strVLangEn = (string)$arrParams['v_lang_en'] ?? 'all'; $strVAreaEn = (string)$arrParams['v_area_en'] ?? 'all'; diff --git a/code/extend/template/taglib/Video.php b/code/extend/template/taglib/Video.php index 7e4d8ba..bd4eaea 100644 --- a/code/extend/template/taglib/Video.php +++ b/code/extend/template/taglib/Video.php @@ -7,10 +7,10 @@ use think\template\TagLib; class Video extends TagLib { protected $tags = [ - 'list' => ['attr' => 'count,v_category,v_parent_category_en,sort_type,v_status,v_sex,diff_key,cache_life,d_key,d_val,export_name', 'close' => 1], - 'listexp' => ['attr' => 'count,v_category,v_parent_category_en,sort_type,v_status,v_sex,diff_key,cache_life,d_key,d_val,export_name', 'close' => 0], - 'pager' => ['attr' => 'page,limit,v_category,v_parent_category_en,sort_type,v_status,v_sex,key,diff_key,cache_life,d_key,d_val,p_val,func,export_name', 'close' => 1], - 'pagerexp' => ['attr' => 'page,limit,v_class,v_category,v_parent_category_en,sort_type,v_status,v_sex,key,diff_key,cache_life,d_key,d_val,p_val,func,export_name', 'close' => 0], + 'list' => ['attr' => 'count,v_category_en,v_parent_category_en,sort_type,v_status,v_sex,diff_key,cache_life,d_key,d_val,export_name', 'close' => 1], + 'listexp' => ['attr' => 'count,v_category_en,v_parent_category_en,sort_type,v_status,v_sex,diff_key,cache_life,d_key,d_val,export_name', 'close' => 0], + 'pager' => ['attr' => 'page,limit,v_category_en,v_parent_category_en,sort_type,v_status,v_sex,key,diff_key,cache_life,d_key,d_val,p_val,func,export_name', 'close' => 1], + 'pagerexp' => ['attr' => 'page,limit,v_class,v_category_en,v_parent_category_en,sort_type,v_status,v_sex,key,diff_key,cache_life,d_key,d_val,p_val,func,export_name', 'close' => 0], 'info' => ['attr' => 'v_id,v_forge_id,v_key', 'close' => 0], 'sort' => ['attr' => 'd_key,d_val'], 'ranksort' => ['attr' => 'd_key,d_val'], @@ -253,6 +253,10 @@ EOT; */ public function tagList($tag, $content) { + // if($tag['sort_type'] == "news1"){ + // echo $tag['v_parent_category_en']; + // } + $count = $tag['count'] ?? '10'; // $v_category = $tag['v_category'] ?? "all"; $sort_type = $tag['sort_type'] ?? ""; @@ -281,6 +285,7 @@ EOT; $arrDataName = randomString(5); + $strParse = <<getVideoList([ diff --git a/code/public/template/videodadi/css/stui_block.css b/code/public/template/videodadi/css/stui_block.css index 3b8daa1..0a31c2f 100644 --- a/code/public/template/videodadi/css/stui_block.css +++ b/code/public/template/videodadi/css/stui_block.css @@ -658,7 +658,155 @@ textarea.form-control{ height: auto;} stui_block_color.css end */ - +/** + stui_default.css strat +*/ +/*! + * Edition v2.0 Copyright 2016-2018 http://v.shoutu.cn + * Email 726662013@qq.com,admin@shoutu.cn + */ + @charset "utf-8"; + /* all */ + body{ padding-top: 80px} + + /* header */ + .stui-header__top{ position:fixed; top:0;z-index: 999;width:100%; height: 60px; background-color: #292838; border-top: 5px solid #155FAA;} + .top-fixed-down{margin-top:-60px} + .stui-header__side{float:right} + + /* header-logo */ + .stui-header__logo,.stui-header__menu{float:left} + .stui-header__logo{margin-top: 0} + .stui-header__logo .logo{ display:block; width:150px; height:50px; background:url(../img/logo_pc.png) no-repeat; background-position:50% 50%; background-size:cover} + .stui-header__logo .logo-text{ display:block; width:150px; height:50px; font-size:1.5rem;color: #ff9900;line-height: 50px;text-align: center;letter-spacing: 5px;} + + /* header-menu */ + .stui-header__menu{position:relative;margin-left:10px} + .stui-header__menu li{float:left;} + .stui-header__menu li a{ display:inline-block; height: 55px; line-height: 50px; font-size:15px; padding: 0 20px; color: #fff;} + .stui-header__menu li.active a{ background-color: #155FAA; color: #fff;} + + /* header-seacrh */ + .stui-header__search{float:left;position:relative;margin-top:12px;width:200px} + .stui-header__search .submit{display:block;position:absolute;top:0;right:0;width:30px;height:30px;line-height:30px;text-align:center; background: none; border: 0;cursor: pointer;} + .stui-header__search .submit .icon{font-size:14px;color:#999} + + /* header-user */ + .stui-header__user{float:right} + .stui-header__user > li{ float:left; position: relative; padding: 15px 0 10px; margin-left: 30px;} + .stui-header__user > li > a .icon{ display: inline-block; font-size: 24px; line-height: 24px; color: #fff;} + .stui-header__user > li .dropdown{ display: none; position: absolute; z-index: 999; width: 240px; top: 100%; right: -15px; padding: 15px; font-size: 12px; color: #999; background-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); border-radius: 4px; background-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2);} + .stui-header__user > li .dropdown:before{ content:" "; width:10px; height:10px; -webkit-transform:rotate(-45deg); -ms-transform:rotate(-45deg); transform:rotate(-45deg); position: absolute; top:-5px; right: 22px; background-color: #fff; border-top: 1px solid #eee; border-right: 1px solid #eee;} + .stui-header__user .dropdown li{ position: relative; padding: 10px 0;} + .stui-header__user .dropdown li:first-child{ margin-top: 10px;} + .stui-header__user .dropdown li:last-child{ padding-bottom: 0;} + .stui-header__user > li:hover .dropdown{ display: block;} + + /* content */ + .stui-content__detail,.stui-content__thumb{display:table-cell;vertical-align:top} + .stui-content__thumb .v-thumb{width:190px} + .stui-content__thumb .w-thumb{width:300px} + .stui-content__detail{width:100%;padding:10px 20px;} + .stui-content__detail .title{margin:10px 0 10px;line-height:30px} + .stui-content__detail .title .score{display: inline-block; margin-left: 10px; font-family: Georgia,"Times New Roman",Times,serif; font-size: 24px; line-height: 24px; color: #09BB07;} + .stui-content__detail .data{margin-bottom:10px} + .stui-content__detail .data li{float:left;margin-right:20px} + .stui-content__detail .desc{padding-left:42px} + .stui-content__detail .desc .left{margin-left:-42px} + + /* player */ + .stui-player__video{ background-color: #000} + .stui-player__detail{ margin-top: 20px;} + .stui-player__detail .more-btn{ float: right; padding-top: 10px;} + .stui-player__detail .more-btn li{ display: inline-block; margin-left: 10px;} + .stui-player__detail .more-btn .btn{ padding: 6px 15px;} + .stui-player__detail .title{margin:0 0 10px} + .stui-player__detail .detail-content{padding-top:10px} + .stui-player__detail .desc{padding-left:42px} + .stui-player__detail .desc .left{margin-left:-42px} + + /* autocomplete */ + .autocomplete-suggestions{ padding: 0 10px; margin-top: 5px; border-radius:4px; background-color: #FFFFFF; box-shadow: 0 2px 10px rgba(0,0,0,.05);} + .autocomplete-suggestions.active{position: absolute; z-index: 9999; top: 100%; width: 100%;} + .autocomplete-suggestion{padding:10px 0; cursor:pointer; border-top: 1px solid #EEEEEE;} + .autocomplete-suggestion:first-child{border-top:0} + .mac_results{ z-index: 9999; padding: 0 10px; margin-top: 5px; border-radius:4px; background-color: #FFFFFF; border:1px solid #EEEEEE; box-shadow: 0 2px 10px rgba(0,0,0,.05);} + .mac_results li{padding:10px 0; cursor:pointer; border-top: 1px solid #EEEEEE;} + .mac_results li:first-child{ border: 0;} + + + @media (min-width:768px){ + .container{width:750px} + } + @media (min-width:992px){ + .container{width:920px} + } + @media (min-width:1200px){ + .container{width:1170px} + } + @media (min-width:1400px){ + .container{width:1380px} + } + @media (max-width:1024px){ + + /* all */ + body{padding-top:100px} + + /* header */ + .top-fixed-down{margin-top:-55px} + .stui-header__side{float:none;position:absolute;top:0;left:150px;right:0;width:auto} + .stui-header__logo,.stui-header__menu{float:none} + .stui-header__logo{margin:10px 0 10px} + .stui-header__logo .logo{width:127px;height:30px; background:url(../img/logo_h5.png) no-repeat; background-position:50% 50%; background-size:cover;} + .stui-header__logo .logo-text{width:127px;height:30px; font-size:1.2rem;color: #ff9900;line-height: 30px;text-align: left;letter-spacing: 2px;} + .stui-header__search{float:right;margin-top:10px} + .stui-header__top{ padding: 0 10px; height: 100px;} + .stui-header__menu{margin:0;padding:0;} + .stui-header__menu:before{content:" ";position:absolute;left:0;top:0;right:0;width:100%;height:1px;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5); border-top: 1px solid #155FAA} + .stui-header__menu li{ margin-top:0;margin-right:10px} + .stui-header__menu li a{ padding: 0; font-size:14px; height: 40px; line-height: 40px; white-space:nowrap; color: #fff;} + .stui-header__menu li.active a{ position:relative; background: none; color: #ff9900;} + .stui-header__user > li{ padding: 15px 0 10px; margin-right: 10px;} + .stui-header__user > li .dropdown{ right: 0;} + .stui-header__user > li .dropdown:before{ right: 8px;} + .stui-header__menu > li:hover .dropdown,.stui-header__user > li:hover .dropdown{ display: none;} + } + @media (max-width:767px){ + + /* header */ + .stui-header__search{position:absolute;top:0;left:0;right:50px;width:auto} + .stui-header__user > li{ padding: 14px 0; margin: 0;} + + /* content */ + .stui-content__thumb .v-thumb{width:115px} + .stui-content__thumb .w-thumb{width:160px} + .stui-content__detail{padding:0 10px} + .stui-content__detail .title{margin:10px 0 10px;font-size:16px;line-height:18px} + .stui-content__detail .data{margin:0 0 10px;font-size:12px} + .stui-content__detail .play-btn{margin:0;padding:0} + + /* player */ + .stui-player__detail.detail .title{ margin-top: 10px; font-size: 16px;} + .stui-player__detail{ margin-top: 0;} + .stui-player__detail .data .title{font-size:16px} + .stui-player__detail .more-btn{ margin-bottom: 10px;} + .stui-player__detail .more-btn{ float: none; padding: 10px; background-color: #222; display: -webkit-box; display: -webkit-flex; display: flex;} + .stui-player__detail .more-btn li{ margin: 0; padding: 0 5px; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; text-align: center;} + .stui-player__detail .more-btn .btn{ display: block; padding: 6px;} + + /* type */ + .stui-mobile__type li{padding:0 20px} + .stui-mobile__type li a{display:block;padding:10px 0;text-align:center} + + /* foot */ + .stui-foot{padding:20px 0} + + } + .fa-thumbs-up:before{content:"\f164"} + .fa-thumbs-down:before{content:"\f165"} +/** + stui_default.css end +*/ .stui-screen__list { display: flex; /* 使用 Flexbox 布局 */ diff --git a/code/public/template/videodadi/css/stui_default.css b/code/public/template/videodadi/css/stui_default.css deleted file mode 100644 index a88552f..0000000 --- a/code/public/template/videodadi/css/stui_default.css +++ /dev/null @@ -1,143 +0,0 @@ -/*! - * Edition v2.0 Copyright 2016-2018 http://v.shoutu.cn - * Email 726662013@qq.com,admin@shoutu.cn - */ -@charset "utf-8"; -/* all */ -body{ padding-top: 80px} - -/* header */ -.stui-header__top{ position:fixed; top:0;z-index: 999;width:100%; height: 60px; background-color: #292838; border-top: 5px solid #155FAA;} -.top-fixed-down{margin-top:-60px} -.stui-header__side{float:right} - -/* header-logo */ -.stui-header__logo,.stui-header__menu{float:left} -.stui-header__logo{margin-top: 0} -.stui-header__logo .logo{ display:block; width:150px; height:50px; background:url(../img/logo_pc.png) no-repeat; background-position:50% 50%; background-size:cover} -.stui-header__logo .logo-text{ display:block; width:150px; height:50px; font-size:1.5rem;color: #ff9900;line-height: 50px;text-align: center;letter-spacing: 5px;} - -/* header-menu */ -.stui-header__menu{position:relative;margin-left:10px} -.stui-header__menu li{float:left;} -.stui-header__menu li a{ display:inline-block; height: 55px; line-height: 50px; font-size:15px; padding: 0 20px; color: #fff;} -.stui-header__menu li.active a{ background-color: #155FAA; color: #fff;} - -/* header-seacrh */ -.stui-header__search{float:left;position:relative;margin-top:12px;width:200px} -.stui-header__search .submit{display:block;position:absolute;top:0;right:0;width:30px;height:30px;line-height:30px;text-align:center; background: none; border: 0;cursor: pointer;} -.stui-header__search .submit .icon{font-size:14px;color:#999} - -/* header-user */ -.stui-header__user{float:right} -.stui-header__user > li{ float:left; position: relative; padding: 15px 0 10px; margin-left: 30px;} -.stui-header__user > li > a .icon{ display: inline-block; font-size: 24px; line-height: 24px; color: #fff;} -.stui-header__user > li .dropdown{ display: none; position: absolute; z-index: 999; width: 240px; top: 100%; right: -15px; padding: 15px; font-size: 12px; color: #999; background-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); border-radius: 4px; background-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2);} -.stui-header__user > li .dropdown:before{ content:" "; width:10px; height:10px; -webkit-transform:rotate(-45deg); -ms-transform:rotate(-45deg); transform:rotate(-45deg); position: absolute; top:-5px; right: 22px; background-color: #fff; border-top: 1px solid #eee; border-right: 1px solid #eee;} -.stui-header__user .dropdown li{ position: relative; padding: 10px 0;} -.stui-header__user .dropdown li:first-child{ margin-top: 10px;} -.stui-header__user .dropdown li:last-child{ padding-bottom: 0;} -.stui-header__user > li:hover .dropdown{ display: block;} - -/* content */ -.stui-content__detail,.stui-content__thumb{display:table-cell;vertical-align:top} -.stui-content__thumb .v-thumb{width:190px} -.stui-content__thumb .w-thumb{width:300px} -.stui-content__detail{width:100%;padding:10px 20px;} -.stui-content__detail .title{margin:10px 0 10px;line-height:30px} -.stui-content__detail .title .score{display: inline-block; margin-left: 10px; font-family: Georgia,"Times New Roman",Times,serif; font-size: 24px; line-height: 24px; color: #09BB07;} -.stui-content__detail .data{margin-bottom:10px} -.stui-content__detail .data li{float:left;margin-right:20px} -.stui-content__detail .desc{padding-left:42px} -.stui-content__detail .desc .left{margin-left:-42px} - -/* player */ -.stui-player__video{ background-color: #000} -.stui-player__detail{ margin-top: 20px;} -.stui-player__detail .more-btn{ float: right; padding-top: 10px;} -.stui-player__detail .more-btn li{ display: inline-block; margin-left: 10px;} -.stui-player__detail .more-btn .btn{ padding: 6px 15px;} -.stui-player__detail .title{margin:0 0 10px} -.stui-player__detail .detail-content{padding-top:10px} -.stui-player__detail .desc{padding-left:42px} -.stui-player__detail .desc .left{margin-left:-42px} - -/* autocomplete */ -.autocomplete-suggestions{ padding: 0 10px; margin-top: 5px; border-radius:4px; background-color: #FFFFFF; box-shadow: 0 2px 10px rgba(0,0,0,.05);} -.autocomplete-suggestions.active{position: absolute; z-index: 9999; top: 100%; width: 100%;} -.autocomplete-suggestion{padding:10px 0; cursor:pointer; border-top: 1px solid #EEEEEE;} -.autocomplete-suggestion:first-child{border-top:0} -.mac_results{ z-index: 9999; padding: 0 10px; margin-top: 5px; border-radius:4px; background-color: #FFFFFF; border:1px solid #EEEEEE; box-shadow: 0 2px 10px rgba(0,0,0,.05);} -.mac_results li{padding:10px 0; cursor:pointer; border-top: 1px solid #EEEEEE;} -.mac_results li:first-child{ border: 0;} - - -@media (min-width:768px){ - .container{width:750px} -} -@media (min-width:992px){ - .container{width:920px} -} -@media (min-width:1200px){ - .container{width:1170px} -} -@media (min-width:1400px){ - .container{width:1380px} -} -@media (max-width:1024px){ - - /* all */ - body{padding-top:100px} - - /* header */ - .top-fixed-down{margin-top:-55px} - .stui-header__side{float:none;position:absolute;top:0;left:150px;right:0;width:auto} - .stui-header__logo,.stui-header__menu{float:none} - .stui-header__logo{margin:10px 0 10px} - .stui-header__logo .logo{width:127px;height:30px; background:url(../img/logo_h5.png) no-repeat; background-position:50% 50%; background-size:cover;} - .stui-header__logo .logo-text{width:127px;height:30px; font-size:1.2rem;color: #ff9900;line-height: 30px;text-align: left;letter-spacing: 2px;} - .stui-header__search{float:right;margin-top:10px} - .stui-header__top{ padding: 0 10px; height: 100px;} - .stui-header__menu{margin:0;padding:0;} - .stui-header__menu:before{content:" ";position:absolute;left:0;top:0;right:0;width:100%;height:1px;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5); border-top: 1px solid #155FAA} - .stui-header__menu li{ margin-top:0;margin-right:10px} - .stui-header__menu li a{ padding: 0; font-size:14px; height: 40px; line-height: 40px; white-space:nowrap; color: #fff;} - .stui-header__menu li.active a{ position:relative; background: none; color: #ff9900;} - .stui-header__user > li{ padding: 15px 0 10px; margin-right: 10px;} - .stui-header__user > li .dropdown{ right: 0;} - .stui-header__user > li .dropdown:before{ right: 8px;} - .stui-header__menu > li:hover .dropdown,.stui-header__user > li:hover .dropdown{ display: none;} -} -@media (max-width:767px){ - - /* header */ - .stui-header__search{position:absolute;top:0;left:0;right:50px;width:auto} - .stui-header__user > li{ padding: 14px 0; margin: 0;} - - /* content */ - .stui-content__thumb .v-thumb{width:115px} - .stui-content__thumb .w-thumb{width:160px} - .stui-content__detail{padding:0 10px} - .stui-content__detail .title{margin:10px 0 10px;font-size:16px;line-height:18px} - .stui-content__detail .data{margin:0 0 10px;font-size:12px} - .stui-content__detail .play-btn{margin:0;padding:0} - - /* player */ - .stui-player__detail.detail .title{ margin-top: 10px; font-size: 16px;} - .stui-player__detail{ margin-top: 0;} - .stui-player__detail .data .title{font-size:16px} - .stui-player__detail .more-btn{ margin-bottom: 10px;} - .stui-player__detail .more-btn{ float: none; padding: 10px; background-color: #222; display: -webkit-box; display: -webkit-flex; display: flex;} - .stui-player__detail .more-btn li{ margin: 0; padding: 0 5px; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; text-align: center;} - .stui-player__detail .more-btn .btn{ display: block; padding: 6px;} - - /* type */ - .stui-mobile__type li{padding:0 20px} - .stui-mobile__type li a{display:block;padding:10px 0;text-align:center} - - /* foot */ - .stui-foot{padding:20px 0} - -} -.fa-thumbs-up:before{content:"\f164"} -.fa-thumbs-down:before{content:"\f165"} \ No newline at end of file From bcf6ea997189e5c96a9a7c0db54c63c9ec0e4957 Mon Sep 17 00:00:00 2001 From: make Date: Mon, 5 May 2025 17:28:28 +0800 Subject: [PATCH 4/5] 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}

      - {video:list count="12" + {video:list count="2" v_category_en="$arrChildrenCategory.v_category_en" v_lang_en="all" v_area_en="all" @@ -92,7 +130,7 @@
      - {video:ranklist count="10" + {video:ranklist count="2" v_category_en="$arrChildrenCategory.v_category_en" sort_type="weekly" d_key="key" d_val="Video" cache_life="86400"} diff --git a/code/app/home/view/videoDadi/video/getVideoInfo.html b/code/app/home/view/videoDadi/video/getVideoInfo.html index 687fada..b647c97 100644 --- a/code/app/home/view/videoDadi/video/getVideoInfo.html +++ b/code/app/home/view/videoDadi/video/getVideoInfo.html @@ -237,7 +237,7 @@ sort_type="news" d_key="d_key" d_val="Video" cache_life="86400"} - {include file="public/video-list-shu" /} + {include file="public/video-list-shu" start="0"/} {/video:list}
    @@ -249,7 +249,7 @@ v_year="all" sort_type="news" d_key="d_key" d_val="Video" cache_life="86400"} - {include file="public/video-list-text2" /} + {include file="public/video-list-text2" start="0"/} {/video:list}

@@ -273,7 +273,7 @@ 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" /} + {include file="public/video-list-phb" start="0"/} {/video:ranklist}
@@ -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) => { From 1c23e3dc7ab6c79626c0ee604bfd86eeba6ffc48 Mon Sep 17 00:00:00 2001 From: make Date: Tue, 6 May 2025 00:38:52 +0800 Subject: [PATCH 5/5] debug --- code/app/home/config/router.php | 4 +- code/app/home/view/videoDadi/base.html | 8 +- code/app/home/view/videoDadi/index/index.html | 4 +- .../home/view/videoDadi/public/footer.html | 8 +- .../view/videoDadi/video/getCategory.html | 133 +++++--- .../view/videoDadi/video/getCategoryType.html | 196 +++++++----- .../video/{getRank.html => getRankIndex.html} | 104 +++--- .../view/videoDadi/video/getRankList.html | 118 ++++--- .../view/videoDadi/video/getSearchVideo.html | 83 +++-- .../view/videoDadi/video/getVideoInfo.html | 146 ++++++--- .../view/videoDadi/video/getVideoPlayUrl.html | 296 +++++++----------- .../推广SEO过程设计记录/TKD/category.md | 12 +- .../推广SEO过程设计记录/TKD/categorytype.md | 10 +- .../推广SEO过程设计记录/TKD/index.md | 10 +- .../TKD/排行榜页面 TKD 模板.md | 12 +- .../TKD/排行榜首页 TKD 模板.md | 78 +++++ .../TKD/视频播放页面TKD.md | 8 +- .../TKD/视频详情页面TKD.md | 12 +- .../视频所有页面TKD设计的占位符/分类列表页面.md | 12 +- .../视频所有页面TKD设计的占位符/分类首页.md | 10 +- .../排行榜页面 TKD 模板.md | 12 +- .../视频所有页面TKD设计的占位符/视频播放页面TKD.md | 2 +- .../视频所有页面TKD设计的占位符/视频详情页面TKD.md | 2 +- code/app/model/ConverterMovel.php | 10 +- code/app/model/VideoCategoryModel.php | 20 +- code/app/services/SiteContext.php | 59 ++++ code/app/services/StaticConfig.php | 195 ++++++------ code/app/services/VideoService.php | 14 +- .../initdata/video/baseSubjectFomartGroup.php | 67 +++- .../video/getCategory/description.php | 100 +++--- code/public/initdata/video/getCategory/h1.php | 100 +++--- .../initdata/video/getCategory/keywords.php | 100 +++--- .../initdata/video/getCategory/text.php | 100 +++--- .../initdata/video/getCategory/title.php | 100 +++--- .../video/getCategoryIndex/description.php | 100 +++--- .../initdata/video/getCategoryIndex/h1.php | 100 +++--- .../video/getCategoryIndex/keywords.php | 100 +++--- .../initdata/video/getCategoryIndex/text.php | 100 +++--- .../initdata/video/getCategoryIndex/title.php | 100 +++--- .../initdata/video/getInfo/description.php | 46 +-- code/public/initdata/video/getInfo/h1.php | 22 +- .../initdata/video/getInfo/keywords.php | 100 +++--- code/public/initdata/video/getInfo/text.php | 52 +-- code/public/initdata/video/getInfo/title.php | 50 +-- .../initdata/video/getRank/description.php | 57 ---- code/public/initdata/video/getRank/h1.php | 57 ---- .../initdata/video/getRank/keywords.php | 57 ---- code/public/initdata/video/getRank/text.php | 57 ---- code/public/initdata/video/getRank/title.php | 57 ---- .../video/getRankIndex/description.php | 57 ++++ .../public/initdata/video/getRankIndex/h1.php | 57 ++++ .../initdata/video/getRankIndex/keywords.php | 57 ++++ .../initdata/video/getRankIndex/text.php | 57 ++++ .../initdata/video/getRankIndex/title.php | 57 ++++ .../video/getRankList/description.php | 57 ++++ code/public/initdata/video/getRankList/h1.php | 57 ++++ .../initdata/video/getRankList/keywords.php | 57 ++++ .../initdata/video/getRankList/text.php | 57 ++++ .../initdata/video/getRankList/title.php | 57 ++++ .../video/getVideolPlay/description.php | 40 +-- .../initdata/video/getVideolPlay/h1.php | 22 +- .../initdata/video/getVideolPlay/keywords.php | 100 +++--- .../initdata/video/getVideolPlay/other.md | 6 +- .../initdata/video/getVideolPlay/text.php | 48 +-- .../initdata/video/getVideolPlay/title.php | 16 +- .../initdata/video/tkdSubjectFomartGroup.php | 78 +++-- .../initdata/video/urlSubjectFomartGroup.php | 2 +- code/public/public/video/common.js | 82 +++++ .../template/videodadi/css/stui_block.css | 55 +++- 69 files changed, 2525 insertions(+), 1694 deletions(-) rename code/app/home/view/videoDadi/video/{getRank.html => getRankIndex.html} (60%) create mode 100644 code/app/home/view/videoDadi/推广SEO过程设计记录/TKD/排行榜首页 TKD 模板.md delete mode 100644 code/public/initdata/video/getRank/description.php delete mode 100644 code/public/initdata/video/getRank/h1.php delete mode 100644 code/public/initdata/video/getRank/keywords.php delete mode 100644 code/public/initdata/video/getRank/text.php delete mode 100644 code/public/initdata/video/getRank/title.php create mode 100644 code/public/initdata/video/getRankIndex/description.php create mode 100644 code/public/initdata/video/getRankIndex/h1.php create mode 100644 code/public/initdata/video/getRankIndex/keywords.php create mode 100644 code/public/initdata/video/getRankIndex/text.php create mode 100644 code/public/initdata/video/getRankIndex/title.php create mode 100644 code/public/initdata/video/getRankList/description.php create mode 100644 code/public/initdata/video/getRankList/h1.php create mode 100644 code/public/initdata/video/getRankList/keywords.php create mode 100644 code/public/initdata/video/getRankList/text.php create mode 100644 code/public/initdata/video/getRankList/title.php diff --git a/code/app/home/config/router.php b/code/app/home/config/router.php index a6af224..f5b0fe2 100644 --- a/code/app/home/config/router.php +++ b/code/app/home/config/router.php @@ -447,9 +447,9 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) { break; case 'video_rank_index': - $strView = 'pc/getRank.html'; + $strView = 'pc/getRankIndex.html'; if ($platform == 'h5') { - $strView = 'video/getRank.html'; + $strView = 'video/getRankIndex.html'; } //视频排行榜 首页 Route::get($strRoute, function () use ($strView) { diff --git a/code/app/home/view/videoDadi/base.html b/code/app/home/view/videoDadi/base.html index 5f4429b..d4d574b 100644 --- a/code/app/home/view/videoDadi/base.html +++ b/code/app/home/view/videoDadi/base.html @@ -31,7 +31,7 @@ - +
@@ -114,14 +114,14 @@ {include file="public/footer" /} - {block name="customize"} - - {/block} + {block name="customize"}{/block} + + {block name="footer-js"}{/block} diff --git a/code/app/home/view/videoDadi/index/index.html b/code/app/home/view/videoDadi/index/index.html index f29cd0f..827db3d 100644 --- a/code/app/home/view/videoDadi/index/index.html +++ b/code/app/home/view/videoDadi/index/index.html @@ -31,7 +31,7 @@ "description": "{site:replace code="VIDEO@INDEX@INDEX@DESCRIPTION"}", "potentialAction": { "@type": "SearchAction", - "target": 'https://{$DomainModel->d_domain}{site:vsurl key="search_term_string" p="1"/}", + "target": 'https://{$DomainModel->d_domain}{site:vsurl key="search_term_string" p="1"/}', "query-input": "required name=search_term_string" } @@ -65,7 +65,7 @@ {volist name="arrVideoTuijian" id="Video" key="key"} {if $key < 5 } { - "@type": "ListItem{$Video.v_id}", + "@type": "ListItem", "position": {$key}, "item": { "@type": "TVSeries", diff --git a/code/app/home/view/videoDadi/public/footer.html b/code/app/home/view/videoDadi/public/footer.html index b780798..6abea24 100644 --- a/code/app/home/view/videoDadi/public/footer.html +++ b/code/app/home/view/videoDadi/public/footer.html @@ -43,15 +43,15 @@ -