From cd0cfdeec53aee56863606e576ccdf3ac3d1a84c Mon Sep 17 00:00:00 2001 From: make Date: Tue, 22 Apr 2025 19:52:11 +0800 Subject: [PATCH 1/2] debug --- code/app/home/config/router.php | 8 + code/app/home/view/shikong/baseH5.html | 2 +- .../home/view/shikong/novel/getNovelRank.html | 24 +-- .../view/shikong/novel/getSearchIndex.html | 168 ++++++++++++++++++ .../view/shikong/novel/getSearchNovel.html | 116 ++++++------ .../home/view/shikong/user/getBookShelf.html | 23 ++- code/app/services/SiteContext.php | 8 +- code/extend/template/taglib/Novel.php | 39 +++- code/public/template/shikong/css/search.css | 8 +- doc/TemplateTag.md | 31 ++-- 10 files changed, 335 insertions(+), 92 deletions(-) create mode 100644 code/app/home/view/shikong/novel/getSearchIndex.html diff --git a/code/app/home/config/router.php b/code/app/home/config/router.php index 327cc9f..aec7356 100644 --- a/code/app/home/config/router.php +++ b/code/app/home/config/router.php @@ -58,6 +58,14 @@ Route::get('/sitemap-chapters-:page', function (\think\Request $Request, SiteCon })->ext('xml'); +/** + * 搜索首页 + */ +Route::get('/searchhome/0', function (\think\Request $Request, SiteContext $SiteContext) { + return view('novel/getSearchIndex.html'); +})->ext('html'); + + /** * 路由配置文件 */ diff --git a/code/app/home/view/shikong/baseH5.html b/code/app/home/view/shikong/baseH5.html index cb060d7..1273c85 100644 --- a/code/app/home/view/shikong/baseH5.html +++ b/code/app/home/view/shikong/baseH5.html @@ -51,7 +51,7 @@ - +
+{/block} + +{block name='nav-active-class'}searchhome{/block} +{block name="body-class"}novel_so novel_search_page{/block} + +{block name="logo-html"} +

+ {$DomainModel->d_name} +

+{/block} + +{block name="head-css"} + +{/block} + +{block name="subcategory"}{/block} +{block name="main"} + +
+
+
+
+
+
+
+
+ +
+ +
+
+
{site:wz wz="搜索" /}
+
+ +
+
+ + + {novel:list count="8" sort_type="tuijian" d_key="key" d_val="Novel" cache_life="86400"} + +
+
+ {$Novel.n_name}
+
+ {$Novel.n_author} +
+
+ + {/novel:list} + + +
+
+
+
+
+
+ + + + + +{/block} \ No newline at end of file diff --git a/code/app/home/view/shikong/novel/getSearchNovel.html b/code/app/home/view/shikong/novel/getSearchNovel.html index 1c6d512..34ee2eb 100644 --- a/code/app/home/view/shikong/novel/getSearchNovel.html +++ b/code/app/home/view/shikong/novel/getSearchNovel.html @@ -1,11 +1,26 @@ {extend name="baseH5" /} + +{block name="get-data"} +{novel:pagerexp page="$Request.get.page" limit="30" +key="$Request.get.keyword" +d_key="d_key" +d_val="Novel" +p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager" export_name="resData" /} + +{site:grm page_code="h5_novel_search" diff="$Request.url" num="30" g_key="arrGrm" /} + +{/block} + + + + {block name="title"}{site:replace code="NOVEL@GETSEARCHNOVEL@TITLE"}{/block} {block name="keywords"}{site:replace code="NOVEL@GETSEARCHNOVEL@KEYWORDS"}{/block} {block name="description"}{site:replace code="NOVEL@GETSEARCHNOVEL@DESCRIPTION"}{/block} {block name="head"} - + @@ -37,7 +52,7 @@ {/block} -{block name='nav-active-class'}home{/block} + {block name="body-class"}novel_so novel_search_page{/block} {block name="logo-html"} @@ -46,69 +61,62 @@ {/block} +{block name="head-css"} + +{/block} + + +{block name="subcategory"} +“ {$Request.get.keyword} ” 的搜索结果 共{$resData.p_data.total} +{/block} + +{block name='nav-active-class'}search{/block} + {block name="main"} -{novel:pagerexp page="$Request.get.page" limit="30" -key="$Request.get.keyword" -d_key="d_key" -d_val="Novel" -p_val="page_data" button_num="10" cache_life="86400" func="generateSearchPager" export_name="resData" /} -{site:grm page_code="h5_novel_search" diff="$Request.url" num="30" g_key="arrGrm" /} -
-

{$Request.get.keyword}搜索结果 - {$DomainModel->d_name} 第{$resData.p_data.page}页

- {if $resData.p_data.total < 1}

没有相关数据

- {else} - -
+
+

{$Request.get.keyword}搜索结果 - {$DomainModel->d_name} 第{$resData.p_data.page}页

+
+
{foreach $resData.data as $key=>$Novel} -
-
- {$arrGrm[$key]|raw} - - {$Novel['n_name'] ?? ''}小说封面 - {$Novel.n_author}最新章节 - -
-
-

{$Novel.n_name}

-

作者:{$Novel.n_author}

-

{$Novel.n_description}

-
-
+ {include file="public/novel-list" /} {/foreach} + +
- {/if} +
+
    + {volist name="resData.p_data.pager" id="vo" key="k"} + {switch $vo.label} + {case value="上一页"} + {if $resData.p_data.page == 1} +
  • «
  • + {else} +
  • «
  • + {/if} + {/case} + {case value="下一页"} + {if $resData.p_data.page >= $resData.p_data.total} +
  • »
  • + {else} +
  • »
  • + {/if} + {/case} + {default /} + {if preg_match('/^\d+$/', $vo.label)} +
  • {$vo.label}
  • + {/if} + {/switch} + {/volist} +
+
+
-
- {volist name="$resData.p_data.pager" id="vo" key="k"} - {switch $vo.label} - {case value="上一页"} - {if $resData.p_data.page == 1} - « - {else} - « - {/if} - {/case} - {case value="下一页"} - {if $resData.p_data.page >= $resData.p_data.total} - » - {else} - » - {/if} - {/case} - {default /} - {if preg_match('/^\d+$/', $vo.label)} - {$vo.label} - {/if} - {/switch} - {/volist} -
{/block} diff --git a/code/app/home/view/shikong/user/getBookShelf.html b/code/app/home/view/shikong/user/getBookShelf.html index 55a721a..d90b7ac 100644 --- a/code/app/home/view/shikong/user/getBookShelf.html +++ b/code/app/home/view/shikong/user/getBookShelf.html @@ -17,16 +17,27 @@ {/block} {block name="main"} +
+
-
-

我的书架

-
+
+
+
+
我的书架
+
+
+
+
+
+ +
+
+
+
+
- - - {/block} {block name="customize"} diff --git a/code/app/services/SiteContext.php b/code/app/services/SiteContext.php index 010514e..9162e48 100644 --- a/code/app/services/SiteContext.php +++ b/code/app/services/SiteContext.php @@ -312,10 +312,14 @@ class SiteContext { $strOrder = $this->Request->param('strOrder'); $strStatus = $this->Request->param('strStatus'); + $strNovelOrder = ''; + if(!empty($strOrder) && $strOrder != 'all'){ + $strNovelOrder = StaticConfig::$arrNovelRankSortType[$strOrder]; + } ConverterMovel::setVal([ 'intPage' => 1, - 'strNovelOrder' => StaticConfig::$arrNovelRankSortType[$strOrder], - 'strNovelStatus' => StaticConfig::$arrNovelStatus[$strStatus], + 'strNovelOrder' => $strNovelOrder, + 'strNovelStatus' => empty($strStatus) ? "" : StaticConfig::$arrNovelStatus[$strStatus], ]); } } diff --git a/code/extend/template/taglib/Novel.php b/code/extend/template/taglib/Novel.php index 3f5aea0..3db2203 100644 --- a/code/extend/template/taglib/Novel.php +++ b/code/extend/template/taglib/Novel.php @@ -12,6 +12,7 @@ class Novel extends TagLib 'pagerexp' => ['attr' => 'page,limit,n_category,sort_type,n_status,n_sex,key,diff_key,cache_life,d_key,d_val,p_val,func,export_name', 'close' => 0], 'info' => ['attr' => 'n_id,n_forge_id,n_key', 'close' => 0], 'sort' => ['attr' => 'd_key,d_val'], + 'ranksort' => ['attr' => 'd_key,d_val'], 'status' => ['attr' => 'd_key,d_val'], 'sex' => ['attr' => 'd_key,d_val'], 'category' => ['attr' => 'd_key,d_val,n_sex'], @@ -281,7 +282,39 @@ EOT; $strParse = <<arrSortType; +\$arrSort = app(\\app\\services\\StaticConfig::class)::\$arrNovelSortType; + +if (!empty(\$arrSort) && is_array(\$arrSort)): + +?> +EOT; + $strParse .= << \${$d_val}): ?> +EOT; + $strParse .= $content; + $strParse .= << + +EOT; + return $strParse; + } + + /** + * 获取排序筛选参数 + * + * @param array $tag + * @param string $content + * @return string + */ + public function tagRankSort($tag, $content) + { + + $d_key = $tag['d_key'] ?? 'd_key'; + $d_val = $tag['d_val'] ?? 'd_val'; + + $strParse = <<arrStatus; +\$arrStatus = app(\\app\\services\\StaticConfig::class)::\$arrNovelStatus; if (!empty(\$arrStatus) && is_array(\$arrStatus)): @@ -346,7 +379,7 @@ EOT; $strParse = <<arrSex; +\$arrSex = app(\\app\\services\\StaticConfig::class)::\$arrNovelSex; if (!empty(\$arrSex) && is_array(\$arrSex)): diff --git a/code/public/template/shikong/css/search.css b/code/public/template/shikong/css/search.css index 208a4dd..4ab77ff 100644 --- a/code/public/template/shikong/css/search.css +++ b/code/public/template/shikong/css/search.css @@ -10,6 +10,7 @@ body { .search-home { padding: 10px 20px 20px; color: #fff; + background: #161313; } .search-form { @@ -217,4 +218,9 @@ body { } /* .s-footer-tel , .footer-box{ color:#fff -} */ \ No newline at end of file +} */ + +.novel_search_page .title-h1{ + text-align: center; + font-size: 0.2rem; +} \ No newline at end of file diff --git a/doc/TemplateTag.md b/doc/TemplateTag.md index ee73851..f5b0170 100644 --- a/doc/TemplateTag.md +++ b/doc/TemplateTag.md @@ -227,8 +227,19 @@ resData = [
  • 键: {$key} - 值: {$val}
  • {/novel:sort} +# 08、获取小说排行榜排序筛选条件 +# 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号): + $d_key ?? 'd_key'; # 查询出来的数据遍历的时候, 下标键变量的名称 + $d_val ?? 'd_val'; # 查询出来的数据遍历的时候, 值的名称 +# 样例 +{novel:ranksort d_key="key" d_val="val"} +
  • 键: {$key} - 值: {$val}
  • +{/novel:ranksort} -# 08、获取小说分类筛选条件 + + + +# 09、获取小说分类筛选条件 # 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号): $d_key ?? 'd_key'; # 查询出来的数据遍历的时候, 下标键变量的名称 $d_val ?? 'd_val'; # 查询出来的数据遍历的时候, 值的名称 @@ -238,7 +249,7 @@ resData = [ {/novel:category} -# 09、 获取指定小说多个章节数据并且遍历 +# 10、 获取指定小说多个章节数据并且遍历 # 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号): $count ?? '10'; # 查询条数 $n_id ; # 小说ID @@ -257,7 +268,7 @@ resData = [ {/chapter:list} -# 10、 获取小说章节详情数据 +# 11、 获取小说章节详情数据 # 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号): $n_id ; # 传入的小说ID $c_sort_num ; # 传入的章节索引 @@ -268,7 +279,7 @@ resData = [ {$arrChapter01.c_name} -# 11-1、 获取指定小说章节分页数据并且遍历 +# 12-1、 获取指定小说章节分页数据并且遍历 # 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号): $page ?? '1'; # 页码 $limit ?? '10'; # 查询条数 @@ -291,7 +302,7 @@ resData = [ {/chapter:pager} -# 11-2、 获取分页小说章节数据不遍历 +# 12-2、 获取分页小说章节数据不遍历 # 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号): $page ?? '1'; # 页码 $limit ?? '10'; # 查询条数 @@ -321,7 +332,7 @@ resData = [ ] {php}var_dump($resData['p_data']);{/php} -# 12、 获取干扰码 +# 13、 获取干扰码 # 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号): $page_code ?? ""; # 页面编码 @@ -332,7 +343,7 @@ resData = [ {php}var_dump($arrGrm);{/php} -# 13、 获取指定类型小说排行榜并且遍历 +# 14、 获取指定类型小说排行榜并且遍历 # 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号): $count ?? '10'; # 查询条数 $sort_type ?? "daily"; # 排序方式: @@ -361,7 +372,7 @@ resData = [ {/novel:ranklist} -# 14、 获取随机伪造小说列表并且遍历 +# 15、 获取随机伪造小说列表并且遍历 # 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号): $count ?? '10'; # 查询条数 $diff_key ?? ""; # 缓存键值差异 @@ -381,7 +392,7 @@ resData = [ {/site:forgelist} -# 14、 视图反向控制器(注释函数),在视图开头调用,用来初始化一些操作。这里尽量不要复杂逻辑 +# 16、 视图反向控制器(注释函数),在视图开头调用,用来初始化一些操作。这里尽量不要复杂逻辑 # 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号): $func # SiteContext 里面的方法名 @@ -389,7 +400,7 @@ resData = [ {site:helper func="initHomeTKD" /} -# 15、 获取公共替换变量的值 +# 17、 获取公共替换变量的值 # 传参与默认值(传参用下面的变量名,名称不需要$符号, 值的话如果用第三方变量作为值,需要带$符号): $code # ConverterMovel 里面的arrMap 的key # 样例 From c87a377282fcc41ddd71955afe76024954ce5806 Mon Sep 17 00:00:00 2001 From: make Date: Tue, 22 Apr 2025 21:28:08 +0800 Subject: [PATCH 2/2] debug --- .../view/default/novel/getNovelCatalog.html | 5 +- .../home/view/default/novel/getNovelInfo.html | 4 +- .../view/shikong/novel/getNovelCatalog.html | 180 ++++------- .../view/shikong/novel/getNovelChapter.html | 286 +++++++++--------- .../home/view/shikong/novel/getNovelInfo.html | 221 +++++++------- code/app/services/NovelService.php | 1 + code/public/template/default/h5/css/style.css | 1 + code/public/template/shikong/css/style.css | 92 +++++- .../template/shikong/js/index-247463.js | 35 ++- doc/TemplateTag.md | 2 +- 10 files changed, 446 insertions(+), 381 deletions(-) diff --git a/code/app/home/view/default/novel/getNovelCatalog.html b/code/app/home/view/default/novel/getNovelCatalog.html index 4373c4a..f12bc9c 100644 --- a/code/app/home/view/default/novel/getNovelCatalog.html +++ b/code/app/home/view/default/novel/getNovelCatalog.html @@ -3,6 +3,8 @@ {block name="get-data"} {novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /} {site:grm page_code="h5_novel_catalog " diff="$Request.url" num="120" g_key="arrGrm" /} +{chapter:pagerexp page="$Request.route.intPage" limit="10" n_id="$Request.route.intNovelId" d_key="d_key" d_val="chapter" +cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="generateChapterPager" export_name="resData" /} {/block} {block name="title"}{site:replace code="NOVEL@GETNOVELCATALOG@TITLE"}{/block} @@ -135,8 +137,7 @@ {block name="main"} -{chapter:pagerexp page="$Request.route.intPage" limit="100" n_id="$Request.route.intNovelId" d_key="d_key" d_val="chapter" -cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="generateChapterPager" export_name="resData" /} +

    {$arrNovel['n_name']}最新章节 - {$arrNovel['n_author']} - {$DomainModel->d_name}

    diff --git a/code/app/home/view/default/novel/getNovelInfo.html b/code/app/home/view/default/novel/getNovelInfo.html index 0051efd..bc4de39 100644 --- a/code/app/home/view/default/novel/getNovelInfo.html +++ b/code/app/home/view/default/novel/getNovelInfo.html @@ -150,8 +150,8 @@ $Novel.n_id{extend name="baseH5" /}

    {$arrNovel.n_category}{$arrNovel.n_status}

    -

    最近更新:{$arrLatestChapter->c_name +

    最近更新:{$arrLatestChapter->c_name ?? ""}

    更新时间:{$arrNovel.n_update_time}

    diff --git a/code/app/home/view/shikong/novel/getNovelCatalog.html b/code/app/home/view/shikong/novel/getNovelCatalog.html index 6577c37..fbfb29e 100644 --- a/code/app/home/view/shikong/novel/getNovelCatalog.html +++ b/code/app/home/view/shikong/novel/getNovelCatalog.html @@ -1,17 +1,24 @@ -{extend name="baseH5" /} +$Novel.n_id{extend name="baseH5" /} -{block name="title"}{site:replace code="NOVEL@GETNOVELCATALOG@TITLE"}{/block} -{block name="keywords"}{site:replace code="NOVEL@GETNOVELCATALOG@KEYWORDS"}{/block} -{block name="description"}{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}{/block} +{block name="get-data"} + +{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="$Request.route.intForgeId" /} + +{site:grm page_code="h5_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /} +{chapter:pagerexp page="$Request.route.intPage" limit="10" n_id="$Request.route.intNovelId" d_key="d_key" d_val="chapter" +cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="generateChapterPager" export_name="resData" /} +{/block} + +{block name="title"}{site:replace code="NOVEL@GETNOVELINFO@TITLE" diff="$Request.route.intNovelId" /}{/block} +{block name="keywords"}{site:replace code="NOVEL@GETNOVELINFO@KEYWORDS" diff="$Request.route.intNovelId"}{/block} +{block name="description"}{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}{/block} {block name="head"} -{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /} -{site:grm page_code="h5_novel_catalog " diff="$Request.url" num="120" g_key="arrGrm" /} - - + @@ -30,7 +37,8 @@ - + {/block} + + {block name="head-js"} {/block} @@ -96,9 +106,12 @@ {/block} -{block name="nav-html"} + + +{block name="main"} + -{/block} +
    -{block name="main"} +

    {$arrNovel['n_name']}最新章节 - {$arrNovel['n_author']} - {$DomainModel->d_name}

    -{chapter:pagerexp page="$Request.route.intPage" limit="100" n_id="$Request.route.intNovelId" d_key="d_key" d_val="chapter" -cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="generateChapterPager" export_name="resData" /} +
    +
    -

    {$arrNovel['n_name']}最新章节 - {$arrNovel['n_author']} - {$DomainModel->d_name}

    -
    -
    -
    - {$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节 -
    -
    -
    -

    {$arrNovel.n_name}

    {$arrNovel.n_author} - 著 -
    -

    {$arrNovel.n_category}{$arrNovel.n_status} -

    -

    最近更新:{$arrLatestChapter->c_name - ?? ""}

    -

    更新时间:{$arrNovel.n_update_time}

    -
    -
    - -
    -
    -
    - {$arrNovel.n_description} -
    - -

    章节列表(第{$Request.route.intPage}页) - {if $Request.route.strOrder == 'zheng'} - 点击切换倒序 - {else} - 点击切换正序 - {/if} -

    -
    - - +
    + {include file="public/allChapterPage" start="1"/} -
      - {foreach $resData.data as $key=>$Chapter} -
    • - {$arrGrm[$key]|raw} - {$Chapter.c_name} -
    • +
        + {chapter:list count="10" sort_type="dao" n_id="$arrNovel.n_id" d_key="d_key" d_val="Chapter" + cache_life="86400"} +
      • + {$Chapter.c_name} +
      • + {/chapter:list} +
      - {/foreach} -
    - - {include file="public/allChapterPage" /} - -
    - -
    -

    完结推荐

    -
    - {novel:list count="6" n_category="$arrNovel.n_category_pinyin" n_status="wanjie" d_key="d_key" d_val="Novel" p_val="page_data" cache_life="86400"} -
    -
    - {$arrGrm[$d_key+110]|raw} - {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读
    -
    -

    {$Novel.n_name} -

    -

    作者:{$Novel.n_author}

    -

    {$Novel.n_description}

    -
    -
    - {/novel:list} -
    -
    + + {include file="public/allChapterPage" start="1"/} -
    -

    相邻小说

    -
    +
    + 相关标签: + + + {volist name='$arrNovel.arrRelateveNovel' id='Novel'} + {$Novel.n_name}   + {/volist} + {volist name='arrNovel.n_forge_novel' id='ForgeNovel'} + {$ForgeNovel.n_forge_title}   + {/volist} - {$arrNovel.strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}... -
    -
    - {volist name='$arrNovel.arrRelateveNovel' id='Novel'} - {$Novel.n_name}   - {/volist} - {volist name='arrNovel.n_forge_novel' id='ForgeNovel'} - {$ForgeNovel.n_forge_title}   - {/volist} + + +
    +
    + +
    +
    @@ -259,7 +202,6 @@ cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="gene 'c_name': `第一章`, }; - {/block} {block name="customize"} diff --git a/code/app/home/view/shikong/novel/getNovelChapter.html b/code/app/home/view/shikong/novel/getNovelChapter.html index 8c08d9d..346f55b 100644 --- a/code/app/home/view/shikong/novel/getNovelChapter.html +++ b/code/app/home/view/shikong/novel/getNovelChapter.html @@ -1,17 +1,19 @@ {extend name="baseH5" /} +{block name="get-data"} + +{site:grm page_code="h5_novel_chapter" diff="$Request.url" num="20" g_key="arrGrm" /} +{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /} +{chapter:info n_id="$Request.route.intNovelId" c_sort_num="$Request.route.intChapterSort" +c_page="$Request.route.intChapterPage" c_key="arrChapter" /} +{/block} + {block name="title"}{site:replace code="NOVEL@GETNOVELCHAPTER@TITLE"}{/block} {block name="keywords"}{site:replace code="NOVEL@GETNOVELCHAPTER@KEYWORDS"}{/block} {block name="description"}{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}{/block} {block name="head"} -{site:grm page_code="h5_novel_chapter" diff="$Request.url" num="20" g_key="arrGrm" /} - -{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /} -{chapter:info n_id="$Request.route.intNovelId" c_sort_num="$Request.route.intChapterSort" -c_page="$Request.route.intChapterPage" c_key="arrChapter" /} - @@ -68,6 +70,9 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /} {/block} +{block name="head-css"} +{/block} + {block name="head-js"} {/block} @@ -78,150 +83,157 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /} {block name="logo-html"}

    - {$DomainModel->d_name} + {$DomainModel->d_name}

    {/block} -{block name="nav-html"} - -{/block} + + + {block name="main"} -

    {$arrNovel['n_name']}最新章节 - {$arrChapter.c_name ?? ''}

    + - -
    - {$arrGrm[2]|raw} -
    - {$arrGrm[3]|raw} - - {$arrGrm[4]|raw} -
    -
    - {$arrGrm[5]|raw} -
      - {if $arrChapter.c_sort_num == 1} -
    • 上一页
    • - {elseif $arrChapter['pre_chapter'] && $arrChapter['pre_chapter']['c_sort_num']} -
    • 上一页 -
    • - {/if} -
    • 章节目录
    • - {if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num} -
    • 下一页 -
    • - {/if} -
    - {$arrGrm[6]|raw} +

    {$arrNovel['n_name']}最新章节 - + {$arrChapter.c_name ?? ''}

    + +
    + +
    +
    + + + +
    +
    + {if $arrChapter['pre_chapter'] && $arrChapter['pre_chapter']['c_sort_num']} + + {/if} + + {if $arrChapter['next_chapter'] && $arrChapter['next_chapter']['c_sort_num']} + + {/if} +
    +
    + +

    {$arrChapter.c_name ?? ''}

    + +
    + + {$arrGrm[3]|raw} + + {$arrGrm[4]|raw} + +
    +
    +
    + {if $arrChapter['pre_chapter'] && $arrChapter['pre_chapter']['c_sort_num']} + + {/if} + + {if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num} + + {/if} + +
    +
    + + +
    +
    -
    -

    完结推荐

    -
    - {novel:list count="6" n_category="$arrNovel.n_category_pinyin" n_status="wanjie" d_key="d_key" d_val="Novel" - p_val="page_data" cache_life="86400"} -
    -
    - {$arrGrm[$d_key+6]|raw} - {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读
    -
    -

    {$Novel.n_name} -

    -

    作者:{$Novel.n_author}

    -

    {$Novel.n_description}

    -
    -
    - {/novel:list} -
    -
    - -
    -

    相邻小说

    -
    - - {$arrNovel.strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}... -
    -
    - {volist name='arrNovel.arrRelateveNovel' id='Novel'} - {$Novel.n_name}   - {/volist} - - {volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"} - {$ForgeNovel.n_forge_title}   - {/volist} -
    -
    + {/block} {block name="customize"} - + {/block} \ No newline at end of file diff --git a/code/app/home/view/shikong/novel/getNovelInfo.html b/code/app/home/view/shikong/novel/getNovelInfo.html index 91e9ce2..1fe4e28 100644 --- a/code/app/home/view/shikong/novel/getNovelInfo.html +++ b/code/app/home/view/shikong/novel/getNovelInfo.html @@ -1,22 +1,24 @@ $Novel.n_id{extend name="baseH5" /} -{block name="title"}{site:replace code="NOVEL@GETNOVELINFO@TITLE"}{/block} -{block name="keywords"}{site:replace code="NOVEL@GETNOVELINFO@KEYWORDS"}{/block} -{block name="description"}{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION"}{/block} - -{block name="head"} +{block name="get-data"} {if $Request.route.intNovelId} -{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /} +{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="$Request.route.intForgeId" /} {else} {novel:info n_id="$DomainModel->info_id" n_key="arrNovel" n_forge_id="0" /} {/if} +{site:grm page_code="h5_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /} +{/block} -{site:grm page_code="h5_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /} +{block name="title"}{site:replace code="NOVEL@GETNOVELINFO@TITLE" diff="$Request.route.intNovelId" /}{/block} +{block name="keywords"}{site:replace code="NOVEL@GETNOVELINFO@KEYWORDS" diff="$Request.route.intNovelId"}{/block} +{block name="description"}{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}{/block} +{block name="head"} - + @@ -35,7 +37,8 @@ $Novel.n_id{extend name="baseH5" /} - + {/block} + + {block name="head-js"} {/block} @@ -112,7 +117,8 @@ $Novel.n_id{extend name="baseH5" /}