From 567b0e9ed6cdfef8d1147389b65f22bd04683b2d Mon Sep 17 00:00:00 2001 From: make Date: Mon, 21 Jul 2025 12:04:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F=E6=98=A8=E5=A4=A9=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=9A=84=20=E9=87=8D=E5=A4=8D=E7=8E=87=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/shikong/novel/getNovelInfo-back.html | 387 ++++++++++++++++++ .../home/view/shikong/novel/getNovelInfo.html | 101 +---- 2 files changed, 401 insertions(+), 87 deletions(-) create mode 100644 code/app/home/view/shikong/novel/getNovelInfo-back.html diff --git a/code/app/home/view/shikong/novel/getNovelInfo-back.html b/code/app/home/view/shikong/novel/getNovelInfo-back.html new file mode 100644 index 0000000..6c367fe --- /dev/null +++ b/code/app/home/view/shikong/novel/getNovelInfo-back.html @@ -0,0 +1,387 @@ +{extend name="baseH5" /} + +{block name="get-data"} +{if $Request.route.intNovelId} +{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} + +{if empty($Request.route.intForgeId)} +{site:grm page_code="novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /} +{else} +{site:grm page_code="novel_info" diff="$Request.route.intForgeId" num="120" g_key="arrGrm" /} +{/if} + +{/block} + +{block name="title"} + {if $DomainModel->info_id == $Request.route.intNovelId || empty($Request.route.intNovelId)} + {site:replace code="INDEX@INDEX@TITLE"} + {else} + {site:replace code="NOVEL@GETNOVELINFO@TITLE" diff="$Request.route.intNovelId" /} + {/if} +{/block} + +{block name="keywords"} + {if $DomainModel->info_id == $Request.route.intNovelId || empty($Request.route.intNovelId)} + {site:replace code="INDEX@INDEX@KEYWORDS"} + {else} + {site:replace code="NOVEL@GETNOVELINFO@KEYWORDS" diff="$Request.route.intNovelId"} + {/if} +{/block} + +{block name="description"} + {if $DomainModel->info_id == $Request.route.intNovelId || empty($Request.route.intNovelId)} + {site:replace code="INDEX@INDEX@DESCRIPTION"} + {else} + {site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"} + {/if} +{/block} + +{block name="head"} + + + + + + + + + + + + + + + + + + + + + + + +{/block} + + + +{block name="head-js"} +{/block} + +{block name="body-class"}novel_info{/block} + +{block name="logo-html"} +

+ {$DomainModel->d_name} +

+{/block} + + +{block name="logo-html"} + +

-{$DomainModel->d_name}-{$DomainModel->d_text_logo}

+
+{/block} + +{block name="main"} + + + +
+ {$arrGrm[1]|raw} + +

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

+ {if $DomainModel->info_id == $Request.route.intNovelId || empty($Request.route.intNovelId)} +

{$DomainModel->d_index_description}

+ {/if} + +
+ {$arrGrm[4]|raw} +
+
+
+ + + + +
+
+ + + {if !empty($Request.route.intForgeId) && !empty($arrGrm[113])} + {$arrGrm[113]|raw} + {/if} +
+
+ {$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节 +
+
+

{$arrNovel.n_name}

+
分类:{$arrNovel.n_category } / {$arrNovel.n_status }
+
作者:{$arrNovel.n_author ?? '迭名'}
+
更新:{$arrNovel.n_update_time}
+ {$arrGrm[5]|raw} + + 最新:{$arrNovel.arrLatestChapter.c_name ?? ""} +
+ +
+ 概要: + + {$arrNovel.n_description} +
+ {if !empty($Request.route.intForgeId) && !empty($arrGrm[114])} + {$arrGrm[114]|raw} + {/if} + + +
    + {chapter:list count="10" sort_type="dao" n_id="$arrNovel.n_id" d_key="key" d_val="Chapter" cache_life="3600"} +
  • + {if !empty($arrGrm[$key + 6])} + {$arrGrm[$key+6]|raw} + {/if} + + {$Chapter.c_name} +
  • + {/chapter:list} +
+ {if !empty($Request.route.intForgeId) && !empty($arrGrm[115])} + {$arrGrm[115]|raw} + {/if} +
+ {if empty($Request.route.intForgeId)} +
+
{site:wz wz="推荐等级" /}
+
{$arrNovel.n_level}
+
+
+
{site:wz wz="收藏数" /}
+
0
+
+
+
{site:wz wz="在看人数" /}
+
{$arrNovel.arrNovelClicks.total}
+
+ {else} + {php} + $min = 1; // 最小值(可根据需要调整) + $max = 10000; // 最大值(可根据需要调整) + $randomNumberR = mt_rand($min, 10); // 生成随机整数 + $randomNumberS = mt_rand($min, $max); // 生成随机整数 + $randomNumberK = mt_rand($min, $max); // 生成随机整数 + {/php} +
+
{site:wz wz="推荐等级" /}
+
{$randomNumberR}
+
+
+
{site:wz wz="收藏数" /}
+
{$randomNumberS}
+
+
+
{site:wz wz="在看人数" /}
+
{$randomNumberK}
+
+ {/if} +
+ +
+ 经典: + + {$arrNovel.strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}... +
+ {if !empty($Request.route.intForgeId) && !empty($arrGrm[116])} + {$arrGrm[116]|raw} + {/if} +
+ 相关标签: + + + {if empty($Request.route.intForgeId)} + {php} + $arrRandomForgeNovels = []; + if (isset($arrNovel['n_forge_novel']) && is_array($arrNovel['n_forge_novel'])) { + $arrRandomForgeNovels = $arrNovel['n_forge_novel']; + } + {/php} + {volist name='$arrNovel.arrRelateveNovel' id='Novel' key="key"} + {if !empty($arrGrm[$key + 24])} + {$arrGrm[$key+24]|raw} + {/if} + {$Novel.n_name}   + {/volist} + + {else} + {novel:list count="10" n_category="$arrNovel.n_category_pinyin" sort_type="update" d_key="d_key" d_val="Novel" diff_key="$Request.route.intForgeId" cache_life="1000"} + {$Novel.n_name}   + {/novel:list} + + {php} + $arrRandomForgeNovels = []; + if (isset($arrNovel['n_forge_novel']) && is_array($arrNovel['n_forge_novel'])) { + $forgeNovels = $arrNovel['n_forge_novel']; + if (count($forgeNovels) > 10) { + $randomKeys = array_rand($forgeNovels, 10); + $arrRandomForgeNovels = array_intersect_key($forgeNovels, array_flip($randomKeys)); + } else { + $arrRandomForgeNovels = $forgeNovels; + shuffle($arrRandomForgeNovels); + } + $arrRandomForgeNovels = array_values($arrRandomForgeNovels); + } + {/php} + {/if} + + {volist name='arrRandomForgeNovels' id='ForgeNovel' key="key"} + {if !empty($arrGrm[$key + 34])} + {$arrGrm[$key+34]|raw} + {/if} + {$ForgeNovel.n_forge_title}   + {/volist} + + +
+
+ +
+ {if !empty($Request.route.intForgeId) && !empty($arrGrm[101])} + {$arrGrm[101]|raw} + {/if} +
+
+ +
猜你喜欢
+
+
+ {if empty($Request.route.intForgeId)} +
+ {novel:list count="8" n_category="$arrNovel.n_category_pinyin" sort_type="update" d_key="d_key" d_val="Novel" cache_life="3600"} + {include file="public/novel-list-flex" start="16"/} + {/novel:list} +
+ {else} +
+ {novel:list count="8" n_category="$arrNovel.n_category_pinyin" sort_type="update" d_key="d_key" d_val="Novel" diff_key="$Request.route.intForgeId" cache_life="600"} + {include file="public/novel-list-flex" start="16"/} + {/novel:list} +
+ {/if} +
+
+ {if !empty($Request.route.intForgeId) && !empty($arrGrm[118])} + {$arrGrm[118]|raw} + {/if} +
+
+ + +{/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 c689e8a..e109ed7 100644 --- a/code/app/home/view/shikong/novel/getNovelInfo.html +++ b/code/app/home/view/shikong/novel/getNovelInfo.html @@ -1,4 +1,4 @@ -{extend name="baseH5" /} +$Novel.n_id{extend name="baseH5" /} {block name="get-data"} {if $Request.route.intNovelId} @@ -6,13 +6,7 @@ {else} {novel:info n_id="$DomainModel->info_id" n_key="arrNovel" n_forge_id="0" /} {/if} - -{if empty($Request.route.intForgeId)} {site:grm page_code="novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /} -{else} -{site:grm page_code="novel_info" diff="$Request.route.intForgeId" num="120" g_key="arrGrm" /} -{/if} - {/block} {block name="title"} @@ -190,9 +184,7 @@ - {if !empty($Request.route.intForgeId) && !empty($arrGrm[113])} - {$arrGrm[113]|raw} - {/if} +
{$arrNovel.n_description}
- {if !empty($Request.route.intForgeId) && !empty($arrGrm[114])} - {$arrGrm[114]|raw} - {/if} +
加入书架 目录 @@ -235,11 +225,8 @@ {/chapter:list} - {if !empty($Request.route.intForgeId) && !empty($arrGrm[115])} - {$arrGrm[115]|raw} - {/if} +
- {if empty($Request.route.intForgeId)}
{site:wz wz="推荐等级" /}
{$arrNovel.n_level}
@@ -252,27 +239,6 @@
{site:wz wz="在看人数" /}
{$arrNovel.arrNovelClicks.total}
- {else} - {php} - $min = 1; // 最小值(可根据需要调整) - $max = 10000; // 最大值(可根据需要调整) - $randomNumberR = mt_rand($min, 10); // 生成随机整数 - $randomNumberS = mt_rand($min, $max); // 生成随机整数 - $randomNumberK = mt_rand($min, $max); // 生成随机整数 - {/php} -
-
{site:wz wz="推荐等级" /}
-
{$randomNumberR}
-
-
-
{site:wz wz="收藏数" /}
-
{$randomNumberS}
-
-
-
{site:wz wz="在看人数" /}
-
{$randomNumberK}
-
- {/if}
@@ -280,83 +246,43 @@ {$arrNovel.strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}...
- {if !empty($Request.route.intForgeId) && !empty($arrGrm[116])} - {$arrGrm[116]|raw} - {/if} +
相关标签: - {if empty($Request.route.intForgeId)} - {php} - $arrRandomForgeNovels = $arrNovel['n_forge_novel']; - {/php} - {volist name='$arrNovel.arrRelateveNovel' id='Novel' key="key"} - {if !empty($arrGrm[$key + 24])} - {$arrGrm[$key+24]|raw} - {/if} - {$Novel.n_name}   - {/volist} - - {else} - {novel:list count="10" n_category="$arrNovel.n_category_pinyin" sort_type="update" d_key="d_key" d_val="Novel" diff_key="$Request.route.intForgeId" cache_life="1000"} - {$Novel.n_name}   - {/novel:list} - - {php} - // 随机选取 10 条数据 - $arrRorgeNovels = $arrNovel['n_forge_novel']; - if (count($arrRorgeNovels) > 10) { - $randomKeys = array_rand($arrRorgeNovels, 10); - $randomForgeNovels = array_intersect_key($arrRorgeNovels, array_flip($randomKeys)); - } else { - $randomForgeNovels = $arrRorgeNovels; - shuffle($randomForgeNovels); - } - $arrRandomForgeNovels = array_values($randomForgeNovels); // 重置索引以确保 key 从 1 开始 - {/php} + {volist name='$arrNovel.arrRelateveNovel' id='Novel' key="key"} + {if !empty($arrGrm[$key + 24])} + {$arrGrm[$key+24]|raw} {/if} - - - {volist name='arrRandomForgeNovels' id='ForgeNovel' key="key"} + {$Novel.n_name}   + {/volist} + {volist name='arrNovel.n_forge_novel' id='ForgeNovel' key="key"} {if !empty($arrGrm[$key + 34])} {$arrGrm[$key+34]|raw} {/if} {$ForgeNovel.n_forge_title}   {/volist} + +
- {if !empty($Request.route.intForgeId) && !empty($arrGrm[101])} - {$arrGrm[101]|raw} - {/if}
-
猜你喜欢
- {if empty($Request.route.intForgeId)}
{novel:list count="8" n_category="$arrNovel.n_category_pinyin" sort_type="update" d_key="d_key" d_val="Novel" cache_life="3600"} {include file="public/novel-list-flex" start="16"/} {/novel:list}
- {else} -
- {novel:list count="8" n_category="$arrNovel.n_category_pinyin" sort_type="update" d_key="d_key" d_val="Novel" diff_key="$Request.route.intForgeId" cache_life="600"} - {include file="public/novel-list-flex" start="16"/} - {/novel:list} -
- {/if}
- {if !empty($Request.route.intForgeId) && !empty($arrGrm[118])} - {$arrGrm[118]|raw} - {/if} @@ -380,4 +306,5 @@ {block name="customize"} + {/block} \ No newline at end of file