From 7ec3ef4f38ee7ca3daa99a613e74f1ef3dd48897 Mon Sep 17 00:00:00 2001 From: make Date: Fri, 2 May 2025 00:37:28 +0800 Subject: [PATCH] debug --- code/app/home/config/router.php | 57 +++ code/app/home/view/default/baseH5.html | 3 +- code/app/home/view/videoDadi/base.html | 4 +- .../videoDadi/public/video-list-text2.html | 4 +- .../view/videoDadi/video/getCategoryType.html | 76 +++ .../home/view/videoDadi/video/get_detail.html | 252 ++++++++++ .../home/view/videoDadi/video/get_gbook.html | 19 + .../home/view/videoDadi/video/get_index.html | 124 +++++ .../home/view/videoDadi/video/get_page.html | 160 ++++++ .../view/videoDadi/video/get_playurl.html | 337 +++++++++++++ .../home/view/videoDadi/video/get_search.html | 119 +++++ .../view/videoDadi/video/get_type-back.html | 467 +++++++++++++++++ .../home/view/videoDadi/video/get_type.html | 148 ++++++ .../home/view/videoDadi/video/get_type2.html | 471 ++++++++++++++++++ 14 files changed, 2235 insertions(+), 6 deletions(-) create mode 100644 code/app/home/view/videoDadi/video/getCategoryType.html create mode 100644 code/app/home/view/videoDadi/video/get_detail.html create mode 100644 code/app/home/view/videoDadi/video/get_gbook.html create mode 100644 code/app/home/view/videoDadi/video/get_index.html create mode 100644 code/app/home/view/videoDadi/video/get_page.html create mode 100644 code/app/home/view/videoDadi/video/get_playurl.html create mode 100644 code/app/home/view/videoDadi/video/get_search.html create mode 100644 code/app/home/view/videoDadi/video/get_type-back.html create mode 100644 code/app/home/view/videoDadi/video/get_type.html create mode 100644 code/app/home/view/videoDadi/video/get_type2.html diff --git a/code/app/home/config/router.php b/code/app/home/config/router.php index 6d660cd..35cd41d 100644 --- a/code/app/home/config/router.php +++ b/code/app/home/config/router.php @@ -76,6 +76,27 @@ Route::get('/searchhome/0', function (\think\Request $Request, SiteContext $Site })->ext('html'); +/** + * 视频分类首页 + */ +// Route::get('/vodtype/dianying', function (\think\Request $Request, SiteContext $SiteContext) { +// return view('video/getCategoryType.html'); +// }); +// Route::get('/vodtype/dianshiju', function (\think\Request $Request, SiteContext $SiteContext) { +// return view('video/getCategoryType.html'); +// }); +// Route::get('/vodtype/zonyi', function (\think\Request $Request, SiteContext $SiteContext) { +// return view('video/getCategoryType.html'); +// }); +// Route::get('/vodtype/donman', function (\think\Request $Request, SiteContext $SiteContext) { +// return view('video/getCategoryType.html'); +// }); +// Route::get('/vodtype/duanju', function (\think\Request $Request, SiteContext $SiteContext) { +// return view('video/getCategoryType.html'); +// }); + + + /** * 路由配置文件 */ @@ -88,6 +109,25 @@ $arrRoutes = [ // 通用路径别名 'paths' => [ + // 视频站点url -- start + + // 视频分类 首页 + 'video_category' => [ + '/vodtype/:strCategory', + '/vodclass/:strCategory', + '/shipin-fenlei/:strCategory', + '/shipin-leixing/:strCategory', + '/video-type/:strCategory', + '/video-class/:strCategory', + '/video-category/:strCategory', + '/video-leixing/:strCategory', + ], + + + // 视频站点url -- end + + + // 章节相关路径 'chapter' => [ '/xiaoshuo/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]', @@ -290,6 +330,23 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) { foreach ($arrUrl as $strUrl) { $strRoute = $strPath . $strUrl; switch ($key) { + + // 视频站点url -- start + case 'video_category': + $strView = 'pc/getCategoryType.html'; + if ($platform == 'h5') { + $strView = 'video/getCategoryType.html'; + } + //书库/分类 + Route::get($strRoute, function () use ($strView) { + return view($strView); + }) + ->pattern([ + 'strCategory' => '[a-z\-]*', // 允许空值 + ]); + break; + // 视频站点url -- end + case 'latest': //最新章节 $strView = 'pc/getNovelChapter.html'; diff --git a/code/app/home/view/default/baseH5.html b/code/app/home/view/default/baseH5.html index 70e7c95..fea10e2 100644 --- a/code/app/home/view/default/baseH5.html +++ b/code/app/home/view/default/baseH5.html @@ -61,7 +61,7 @@
{site:forgelist count="30" d_key="d_key" d_val="ForgeNovel" cache_life="86400"} - {$ForgeNovel.n_forge_title} @@ -84,7 +84,6 @@
  • 分类
  • XML地图
  • 阅读记录
  • -
    diff --git a/code/app/home/view/videoDadi/base.html b/code/app/home/view/videoDadi/base.html index 7ae8d2e..30e65c5 100644 --- a/code/app/home/view/videoDadi/base.html +++ b/code/app/home/view/videoDadi/base.html @@ -100,7 +100,7 @@ {video:categorytype category_type="ONE" d_key="key" d_val="val"}
  • + href="/vodtype/{$val.v_category_en}" > {$val.v_category}
  • @@ -120,7 +120,7 @@ $(".stui-header__user li,.stui-header__menu li").click(function () { $(this).find(".dropdown").toggle(); }); -
    +
    diff --git a/code/app/home/view/videoDadi/public/video-list-text2.html b/code/app/home/view/videoDadi/public/video-list-text2.html index d973efc..44b968c 100644 --- a/code/app/home/view/videoDadi/public/video-list-text2.html +++ b/code/app/home/view/videoDadi/public/video-list-text2.html @@ -1,5 +1,5 @@
  • {$vo.v_jiaobiao}{$vo.v_name} + href="/{$Video.v_name_en}.html" + title="{$Video.v_name}">{$Video.v_letter}{$Video.v_name}
  • \ No newline at end of file diff --git a/code/app/home/view/videoDadi/video/getCategoryType.html b/code/app/home/view/videoDadi/video/getCategoryType.html new file mode 100644 index 0000000..1196a54 --- /dev/null +++ b/code/app/home/view/videoDadi/video/getCategoryType.html @@ -0,0 +1,76 @@ +{extend name="base" /} + + + +{block name="head-css"} + +{/block} + +{block name="head-js"} + +{/block} + +{block name="main"} + +
    +
    +
    +
    + {video:categorytype category_type="ONE" d_key="key" d_val="val"} + + {if $val.v_category_en == $Request.route.strCategory} + + {foreach $val.children as $intChildrenKey=>$arrChildrenCategory } + +
    +
    +
    +
    + +
      + {video:list count="12" v_category="$val.v_category_en" sort_type="news" d_key="key" d_val="Video" cache_life="86400"} + {include file="public/video-list-shu" /} + {/video:list} +
    + +
    + +
    +
    +
    + {/foreach} + {/if} + {/video:categorytype} +
    + +
    +{/block} +{block name="customize"} + +{/block} \ No newline at end of file diff --git a/code/app/home/view/videoDadi/video/get_detail.html b/code/app/home/view/videoDadi/video/get_detail.html new file mode 100644 index 0000000..82e7cd7 --- /dev/null +++ b/code/app/home/view/videoDadi/video/get_detail.html @@ -0,0 +1,252 @@ +{extend name="base" /} + +{block name="main"} +
    +
    +
    +
    +
    +
    + + 当前位置 + + + 首页 + + {$VideoDetail->v_leixin} + + {$VideoDetail->v_name} +
    +
    + + + +
    +

    + 《{$VideoDetail->v_name}》{$VideoDetail->v_pingfen} +

    +

    + 类型: + {volist name='VideoDetail->arr_juqing' id='vo' key='index'} + {$vo} +   + {/volist} + + + {$VideoDetail->v_diqu} +   + + + {$VideoDetail->v_years} +   +

    +

    + 主演: + {volist name='VideoDetail->arr_zhuyan' id='vo' key='index'} + {$vo} +   + {/volist} +

    +

    + 导演: + {volist name='VideoDetail->arr_daoyan' id='vo' key='index'} + {$vo} +   + {/volist} +

    + + +
    + + 立即播放 +
    +
    +
    +
    + {$strGanRaoMa|raw} +
    +
    +
    +
    +
    + 无需安装任何插件 +

    + 1080播放2 +

    +
    +
    +
    +
      + {volist name='arrVideoPlayurlModel' id='vo' key='index'} +
    • + {$vo->vp_name} +
    • + {/volist} + +
    +
    +
    +
    +
    +
    +
    +
    +

    + 剧情简介 +

    +
    +
    +
    +

    {$VideoDetail->v_name}

    +

    + {$VideoDetail->v_description} + {volist name='arrSeoVideo' id='vo'} + {$vo.vis_name}   + {/volist} +

    +
    + {$strGanRaoMa|raw} +
    +
    + {$strGanRaoMa|raw} +
    +
    +
    +
    +

    + 猜你喜欢 +

    +
    + {$strGanRaoMa|raw} +
    +
    +
      + {volist name='arrCainixihuan' id='vo' key='index'} + {if $index <= 12} + {include file="public/video-list-shu" /} + {/if} + {/volist} +
    + +
    +
    +
    +
    + +
    +
    +{/block} {block name="customize"} {/block} \ No newline at end of file diff --git a/code/app/home/view/videoDadi/video/get_gbook.html b/code/app/home/view/videoDadi/video/get_gbook.html new file mode 100644 index 0000000..8f90da4 --- /dev/null +++ b/code/app/home/view/videoDadi/video/get_gbook.html @@ -0,0 +1,19 @@ +{extend name="base" /} + + + +{block name="head-css"} + +{/block} + +{block name="head-js"} + +{/block} + +{block name="main"} + + +{/block} +{block name="customize"} + +{/block} \ No newline at end of file diff --git a/code/app/home/view/videoDadi/video/get_index.html b/code/app/home/view/videoDadi/video/get_index.html new file mode 100644 index 0000000..da700c4 --- /dev/null +++ b/code/app/home/view/videoDadi/video/get_index.html @@ -0,0 +1,124 @@ +{extend name="base" /} + + +{block name="head-js"} + +{/block} + +{block name="main"} + +
    +
    + +
    +
    +
    + +
    +
    +
    + 更多 +

    + + 火爆推荐 +

    + +
    +
    +
      + {volist name="arrRecommend" id="vo" key="index"} + {if $index <= 12} {include file="public/video-list-shu" /} {/if} {/volist}
    + +
    + + +
    +
    +
    + + {volist name="categories" id="category"} + {include file="public/video-panel" /} + {/volist} + + +
    +
    + + {volist name="categories" id="category"} + {if $category.vc_id != 33} +
    +
    +
    +

    {$category.vc_name}总榜单

    +
    + {$strGanRaoMa|raw} +
    +
    +
      + {volist name='category.rank' id='vo' key='index'} + {if $index <= 10} {include file="public/video-list-phb" /} {/if} {/volist}
    +
    +
    + {/if} + {/volist} + + +
    +
    + + {$strGanRaoMa|raw} + + +
    +
    + + +{/block} + +{block name="customize"} +{php} +$intIndex=1; +{/php} +{ad:list code="TAN_CHUANG_GUANG_GAO" order="rand" limit="3" id="ad"} + + +{php} +$intIndex++; +{/php} +{/ad:list} +{/block} \ No newline at end of file diff --git a/code/app/home/view/videoDadi/video/get_page.html b/code/app/home/view/videoDadi/video/get_page.html new file mode 100644 index 0000000..263edb9 --- /dev/null +++ b/code/app/home/view/videoDadi/video/get_page.html @@ -0,0 +1,160 @@ +{extend name="base" /} + + +{block name="head-css"} + +{/block} + +{block name="head-js"} + +{/block} + +{block name="main"} +
    +
    +
    +
    +
    +
    +
    +

    {$strClassName}筛选

    +
    +
      + +
    • 按类型
    • +
    • + 全部 +
    • + {volist name='VideoLeixinModel' id='vo' key='index'} +
    • + {$vo.vl_name} +
    • + {/volist} +
    +
      +
    • 按剧情
    • +
    • + 全部
    • + {volist name='VideoJuqingModel' id='vo' key='index'} +
    • + {$vo.vj_name} +
    • + {/volist} + +
    + {$strGanRaoMa|raw} +
      +
    • 按地区
    • +
    • + 全部
    • + {volist name='VideoDiquModel' id='vo' key='index'} +
    • + {$vo.vd_name} +
    • + {/volist} +
    +
      +
    • 按年份
    • + {$strGanRaoMa|raw} +
    • + 全部
    • + {volist name='VideoYearsModel' id='vo' key='index'} +
    • + {$vo.vy_name} +
    • + {/volist} + +
    +
      +
    • 按语言
    • +
    • + 全部
    • + {volist name='VideoYuyanModel' id='vo' key='index'} +
    • + {$vo.vla_name} +
    • + {/volist} +
    +
    + {$strGanRaoMa|raw} +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
      + {volist name='FenYeData' id='vo' key='index'} + {include file="public/video-list-shu" /} + {/volist} +
    +
    +
    +
    + + {$paginationHtml|raw} +
    + + {$strGanRaoMa|raw} +
    +
    +{/block} +{block name="customize"} + +{/block} \ No newline at end of file diff --git a/code/app/home/view/videoDadi/video/get_playurl.html b/code/app/home/view/videoDadi/video/get_playurl.html new file mode 100644 index 0000000..e67c671 --- /dev/null +++ b/code/app/home/view/videoDadi/video/get_playurl.html @@ -0,0 +1,337 @@ +{extend name="base" /} + +{block name="head-css"} + + +{/block} +{block name="head-js"} + + +{/block} +{block name="main"} +
    +
    +
    +
    +
    +
    +
    + + {$strGanRaoMa|raw} + +
    +
    + +
    + +
    + +

    + 《{$VideoDetail->v_name}》 + +

    +

    + 类型: + {volist name='VideoDetail->arr_juqing' id='vo' key='index'} + {$vo} +   + {/volist} +   + + 地区: + {$VideoDetail->v_diqu} +   + + 年份: + {$VideoDetail->v_years} +   +

    +
    +
    +
    +
    +
    +
    +
    +
    +
    无需安装任何插件 +

    1080播放2

    +
    +
    +
    +
      + {volist name='arrVideoPlayurlModel' id='vo' key='index'} +
    • + {$vo->vp_name} +
    • + {/volist} +
    +
    +
    +
    +
    +
    +
    +
    +

    剧情简介

    +
    +
    +
    +

    【{$VideoDetail->v_name}】

    +

      {$VideoDetail->v_description}{volist name='arrSeoVideo' id='vo'} + {$vo.vis_name}   + {/volist} + +

    +
    +
    +
    + {$strGanRaoMa|raw} +
    +
    +
    +
    +

    猜你喜欢

    +
    + {$strGanRaoMa|raw} +
    +
    +
      + {volist name='arrCainixihuan' id='vo' key='index'} + {if $index <= 12} {include file="public/video-list-shu" /} {/if} {/volist}
    + +
    +
    + {$strGanRaoMa|raw} +
    +
    + +
    +
    +{/block} + +{block name="customize"} + +{/block} \ No newline at end of file diff --git a/code/app/home/view/videoDadi/video/get_search.html b/code/app/home/view/videoDadi/video/get_search.html new file mode 100644 index 0000000..61d5be6 --- /dev/null +++ b/code/app/home/view/videoDadi/video/get_search.html @@ -0,0 +1,119 @@ +{extend name="base" /} + +{block name="head-css"} + +{/block} + +{block name="head-js"} + +{/block} + +{block name="main"} +
    +
    +
    +
    +
    +
    +
    +

    +
    +
    +
    +
      + {volist name='FenYeData' id='vo' key='index'} +
    • + +
      +

      {$vo.v_name}

      +

      导演:{$vo.v_daoyan}

      +

      主演:{$vo.v_zhuyan}

      +

      + 类型: + {$vo.v_leixin} + + 地区: + {$vo.v_diqu} + +

      +

      立即播放  查看详情

      +
      + {if $index == 1}{$strGanRaoMa|raw}{/if} + {if $index == 3}{$strGanRaoMa|raw}{/if} + {if $index == 5}{$strGanRaoMa|raw}{/if} + {if $index == 7}{$strGanRaoMa|raw}{/if} + {if $index == 9}{$strGanRaoMa|raw}{/if} +
    • + {/volist} +
    +
    +
    +
    + + {$paginationHtml|raw} +
    + {$strGanRaoMa|raw} + +
    +
    +{/block} +{block name="customize"} + +{/block} \ No newline at end of file diff --git a/code/app/home/view/videoDadi/video/get_type-back.html b/code/app/home/view/videoDadi/video/get_type-back.html new file mode 100644 index 0000000..3ccff78 --- /dev/null +++ b/code/app/home/view/videoDadi/video/get_type-back.html @@ -0,0 +1,467 @@ +{extend name="base" /} +{block name='nav-active-class'}novel{/block} +{block name="title"}{$arrXiaoShuoXiangQing.xsxq_ming_zi}{/block} +{block name="subcategory"}{/block} + +{block name="head-css"} + +{/block} + +{block name="head-js"} + +{/block} + +{block name="main"} +
    +
    +
    + + +
    +
    +
    +
    +
    +
    + +
      + {volist name='arrNewsDianying' id='vo' key='index'} + {if $index <= 12} + {include file="public/video-list-shu" /} + {/if} + {/volist} +
    + +
    + +
    +
    +
    +
    +
    +
    +
    + +
      + {volist name='arrNewsDianyingXiju' id='vo' key='index'} + {if $index <= 12} + {include file="public/video-list-shu" /} + {/if} + {/volist} +
    + +
    + +
    +
    + {$strGanRaoMa|raw} +
    + {$strGanRaoMa|raw} +
    +
    +
    +
    + +
      + {volist name='arrNewsDianyingAiqing' id='vo' key='index'} + {if $index <= 12} + {include file="public/video-list-shu" /} + {/if} + {/volist} +
    + +
    + {$strGanRaoMa|raw} + +
    + {$strGanRaoMa|raw} +
    +
    +
    +
    +
    +
    + +
      + {volist name='arrNewsDianyingKehuan' id='vo' key='index'} + {if $index <= 12} + {include file="public/video-list-shu" /} + {/if} + {/volist} +
    + +
    + +
    +
    +
    +
    +
    +
    +
    + +
      + {volist name='arrNewsDianyingKongbu' id='vo' key='index'} + {if $index <= 12} + {include file="public/video-list-shu" /} + {/if} + {/volist} +
    + +
    + +
    +
    +
    +
    +
    +
    +
    + + {$strGanRaoMa|raw} +
      + {volist name='arrNewsDianyingJuqing' id='vo' key='index'} + {if $index <= 12} + {include file="public/video-list-shu" /} + {/if} + {/volist} +
    + +
    + +
    +
    + {$strGanRaoMa|raw} +
    +
    +
    +
    +
    + +
      + {volist name='arrNewsDianyingZhanzheng' id='vo' key='index'} + {if $index <= 12} + {include file="public/video-list-shu" /} + {/if} + {/volist} +
    + +
    + +
    + {$strGanRaoMa|raw} +
    +
    +
    + {$strGanRaoMa|raw} +
    +{/block} +{block name="customize"} + +{/block} \ No newline at end of file diff --git a/code/app/home/view/videoDadi/video/get_type.html b/code/app/home/view/videoDadi/video/get_type.html new file mode 100644 index 0000000..d2f3a0e --- /dev/null +++ b/code/app/home/view/videoDadi/video/get_type.html @@ -0,0 +1,148 @@ +{extend name="base" /} + + + +{block name="head-css"} + +{/block} + +{block name="head-js"} + +{/block} + +{block name="main"} + +
    +
    + + +
    +
    + {volist name="movieData" id="movie"} + +
    +
    +
    +
    + +
      + {volist name='movie.news' id='vo' key='index'} + {if $index <= 12} + {include file="public/video-list-shu" /} + {/if} + {/volist} +
    + +
    + +
    +
    +
    + {/volist} +
    + {$strGanRaoMa|raw} +
    +{/block} +{block name="customize"} + +{/block} \ No newline at end of file diff --git a/code/app/home/view/videoDadi/video/get_type2.html b/code/app/home/view/videoDadi/video/get_type2.html new file mode 100644 index 0000000..ee61ff8 --- /dev/null +++ b/code/app/home/view/videoDadi/video/get_type2.html @@ -0,0 +1,471 @@ +{extend name="base" /} +{block name='nav-active-class'}novel{/block} +{block name="title"}{$arrXiaoShuoXiangQing.xsxq_ming_zi}{/block} +{block name="subcategory"}{/block} + +{block name="head-css"} + +{/block} + +{block name="head-js"} + +{/block} + +{block name="main"} +
    + +
    + {volist name="movieData" id="movie"} +
    +
    +
    +
    +
    +

    短剧

    +
    + + + +
    +
    +
      + {volist name='movie.news' id='vo' key='index'} + {include file="public/video-list-shu" /} + {/volist} +
    +
    +
    + {$strGanRaoMa|raw} +
    + +
    + + {/volist} +
    +
    +{/block} +{block name="customize"} + +{/block} \ No newline at end of file