From ef4050fb65b1d8766f0052721ebf9e5e0d1c5223 Mon Sep 17 00:00:00 2001 From: make Date: Wed, 16 Apr 2025 23:15:37 +0800 Subject: [PATCH 1/3] debug --- code/app/home/BaseController.php | 2 + code/app/home/controller/Index.php | 2 +- code/app/home/controller/Novel.php | 83 ++- .../home/view/default/Novel/getLibrary.html | 9 +- .../view/default/Novel/getNovelCatalog.html | 199 +++++++ .../view/default/Novel/getNovelChannel.html | 45 -- .../view/default/Novel/getNovelChapter.html | 358 ++++------- .../home/view/default/Novel/getNovelInfo.html | 391 ++++++------ .../default/Pc/Public/allChapterPage.html | 33 ++ code/app/home/view/default/Pc/getLibrary.html | 230 ++++--- .../home/view/default/Pc/getNovelCatalog.html | 217 +++++++ .../home/view/default/Pc/getNovelChannel.html | 81 --- .../home/view/default/Pc/getNovelChapter.html | 560 +++++------------- .../view/default/Pc/getNovelChapterAll.html | 28 - .../home/view/default/Pc/getNovelInfo.html | 360 +++++------ code/app/home/view/default/Pc/index.html | 5 +- .../view/default/Public/allChapterPage.html | 37 ++ code/app/home/view/default/basePc.html | 6 +- .../view/kuangYu/novel/getNovelChapter.html | 1 - .../view/kuangYu/public/allChapterPage.html | 4 +- code/public/template/default/js/common.js | 38 ++ doc/TemplateTag.md | 25 + 22 files changed, 1453 insertions(+), 1261 deletions(-) create mode 100644 code/app/home/view/default/Novel/getNovelCatalog.html delete mode 100644 code/app/home/view/default/Novel/getNovelChannel.html create mode 100644 code/app/home/view/default/Pc/Public/allChapterPage.html create mode 100644 code/app/home/view/default/Pc/getNovelCatalog.html delete mode 100644 code/app/home/view/default/Pc/getNovelChannel.html delete mode 100644 code/app/home/view/default/Pc/getNovelChapterAll.html create mode 100644 code/app/home/view/default/Public/allChapterPage.html diff --git a/code/app/home/BaseController.php b/code/app/home/BaseController.php index 33d2731..e7e9062 100644 --- a/code/app/home/BaseController.php +++ b/code/app/home/BaseController.php @@ -6,6 +6,7 @@ namespace app\home; use app\model\ConverterMovel; use app\model\GanRaoMaModel; +use app\model\CategoryModel; use think\App; use think\exception\ValidateException; use think\facade\View; @@ -122,6 +123,7 @@ abstract class BaseController View::assign([ 'arrForgeNovel' => $arrForgeNovel, + 'arrCategoryAll' => CategoryModel::$arrCategoryAll, ]); break; case 'kuangYu': diff --git a/code/app/home/controller/Index.php b/code/app/home/controller/Index.php index 7c26c8d..7bc1a9b 100644 --- a/code/app/home/controller/Index.php +++ b/code/app/home/controller/Index.php @@ -149,7 +149,7 @@ class Index extends BaseController View::assign([ 'arrAllCategoryNovel' => $arrAllCategoryNovel, 'arrNewsNovel' => $arrNewsNovel, - 'arrCategoryAll' => CategoryModel::$arrCategoryAll, + ]); break; diff --git a/code/app/home/controller/Novel.php b/code/app/home/controller/Novel.php index 686a883..a1b9e54 100644 --- a/code/app/home/controller/Novel.php +++ b/code/app/home/controller/Novel.php @@ -168,7 +168,7 @@ class Novel extends BaseController ['key'=>10,'name'=>'日排行'], ['key'=>11,'name'=>'周排行'], ['key'=>2,'name'=>'月排行'], - ['key'=>3,'name'=>'总排行'], + ['key'=>3,'name'=>'总排行'], // ['key'=>4,'name'=>'日推荐'], // ['key'=>5,'name'=>'周推荐'], // ['key'=>6,'name'=>'月推荐'], @@ -494,6 +494,7 @@ class Novel extends BaseController unset($arrNovelJs['n_related_novel'], $arrNovelJs['n_forge_novel'], $arrNovelJs['n_description']); View::assign([ + 'intPage' => 1, 'arrRelateveNovel' => $arrRelateveNovel, 'arrNovel' => $arrNovel, 'arrNovelJs' => $arrNovelJs, @@ -502,13 +503,12 @@ class Novel extends BaseController 'arrNovelClicks' => $arrNovelClicks, 'strFocus' => $strFocus, 'intFirstChapterSort' => $intFirstChapterSort, - 'strPageCode' => 'boy', + 'strPageCode' => 'detail', 'strTitle' => $strTitle, 'strKeywords' => $strKeywords, 'strDescription' => $strDescription, ]); - $strView = $boolIsMobile ? 'getNovelInfo' : 'pc/getNovelInfo'; $this->generateGrm(2, $intNId . '-' . $intForgeId, 50); return $this->rending($strView); @@ -601,7 +601,7 @@ class Novel extends BaseController 'arrNovelClicks' => $arrNovelClicks, 'strFocus' => $strFocus, 'intFirstChapterSort' => $intFirstChapterSort, - 'strPageCode' => 'boy', + 'strPageCode' => 'detail', 'strTitle' => $strTitle, 'strKeywords' => $strKeywords, 'strDescription' => $strDescription, @@ -652,6 +652,27 @@ class Novel extends BaseController $arrChapter['c_content'] = base64_encode($arrChapter['c_content']); } + $strTemplatesModel = $Request->TemplatesModel->t_code; + switch ($strTemplatesModel) { + case 'default': + if(!$boolIsMobile){ + // 推荐小说 + $arrRelateveNId = array_column($arrNovel['n_related_novel'], 'n_id'); + $arrRelateveNovel = $NovelModel->findMany(['n_id' => [ + '$in' => $arrRelateveNId, + ]], 10); + + View::assign([ + 'arrRelateveNovel' => $arrRelateveNovel, + ]); + } + + break; + + case 'kuangYu': + } + + $arrCategoryAll = CategoryModel::$arrCategoryAll; // 更新值 @@ -693,11 +714,10 @@ class Novel extends BaseController ]); $strView = $boolIsMobile ? 'getNovelChapter' : 'pc/getNovelChapter'; - $this->generateGrm(2, $intNId . '-' . $arrChapter['c_sort_num'] ?? 0, 20); + $this->generateGrm(2, $intNId . '-' . $arrChapter['c_sort_num'] ?? 0, 100); return $this->rending($strView); } - /** * 章节详情 * @@ -741,6 +761,26 @@ class Novel extends BaseController $arrChapter['c_content'] = base64_encode($arrChapter['c_content']); } + $strTemplatesModel = $Request->TemplatesModel->t_code; + switch ($strTemplatesModel) { + case 'default': + if(!$boolIsMobile){ + // 推荐小说 + $arrRelateveNId = array_column($arrNovel['n_related_novel'], 'n_id'); + $arrRelateveNovel = $NovelModel->findMany(['n_id' => [ + '$in' => $arrRelateveNId, + ]], 10); + + View::assign([ + 'arrRelateveNovel' => $arrRelateveNovel, + ]); + } + + break; + + case 'kuangYu': + } + $arrCategoryAll = CategoryModel::$arrCategoryAll; // 更新值 @@ -780,7 +820,7 @@ class Novel extends BaseController ]); $strView = $boolIsMobile ? '' : 'pc/getNovelChapter'; - $this->generateGrm(2, $intNId . '-' . $arrChapter['c_sort_num'] ?? 0, 20); + $this->generateGrm(2, $intNId . '-' . $arrChapter['c_sort_num'] ?? 0, 100); return $this->rending($strView); } @@ -810,7 +850,7 @@ class Novel extends BaseController $strKey = sprintf('Nid:%s:Chapter-Page:%s:Order:%s', $intNId, $intPage, $strOrder); $arrFilter = ['n_id' => $intNId, 'c_page' => 0,]; - $intLimit = 100; + $intLimit = 10; $intLifeTime = 12 * 3600; if ($strOrder == 'zheng') { @@ -819,6 +859,31 @@ class Novel extends BaseController $arrSort = ['c_sort_num' => -1]; } + $strTemplatesModel = $Request->TemplatesModel->t_code; + switch ($strTemplatesModel) { + case 'default': + // 第一章 + $arrFirstChapter = $ChapterModel->getFirstChapterByNId($intNId, false); + $intFirstChapterSort = null; + if ($arrFirstChapter) { + $intFirstChapterSort = $arrFirstChapter['c_sort_num']; + } + + // 推荐小说 + $arrRelateveNId = array_column($arrNovel['n_related_novel'], 'n_id'); + $arrRelateveNovel = $NovelModel->findMany(['n_id' => [ + '$in' => $arrRelateveNId, + ]], 10); + + View::assign([ + 'intFirstChapterSort' => $intFirstChapterSort, + 'arrRelateveNovel' => $arrRelateveNovel, + ]); + break; + + case 'kuangYu': + } + $arrPage = $ChapterModel->findPaginatedWithCache($arrFilter, $intPage, $intLimit, $arrSort, $strKey, $intLifeTime); $intButtomNum = 5; @@ -826,7 +891,7 @@ class Novel extends BaseController $intButtomNum = 10; } - $strBaseUrl = sprintf('/pc/xiaoshuo/%s-%s/mulu/%s/{page}', $arrNovel['n_name_pinyin'], $intNId, $strOrder); + $strBaseUrl = NovelModel::getNovelCatalogUrl($intNId, $arrNovel['n_name_pinyin'], $strOrder,'{page}'); $arrPaginator = CusteomPage02::generate($intPage, $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum); // 更新值 diff --git a/code/app/home/view/default/Novel/getLibrary.html b/code/app/home/view/default/Novel/getLibrary.html index 49b1e58..db4616f 100644 --- a/code/app/home/view/default/Novel/getLibrary.html +++ b/code/app/home/view/default/Novel/getLibrary.html @@ -1,8 +1,11 @@ {extend name="baseH5" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} +{block name="title"}{$strTitle??''}{/block} +{block name="keywords"}{$strKeywords??''}{/block} +{block name="description"}{$strDescription??''}{/block} + +{block name="head-js"}{/block} +{block name='nav-active-class'}home{/block} {block name="body-class"}novel_home{/block} {block name='head-name'}{$DomainModel->d_name}{/block} {block name='head-href'}/{/block} diff --git a/code/app/home/view/default/Novel/getNovelCatalog.html b/code/app/home/view/default/Novel/getNovelCatalog.html new file mode 100644 index 0000000..8393f2b --- /dev/null +++ b/code/app/home/view/default/Novel/getNovelCatalog.html @@ -0,0 +1,199 @@ +{extend name="baseH5" /} +{block name="title"}{$strTitle??''}{/block} +{block name="keywords"}{$strKeywords??''}{/block} +{block name="description"}{$strDescription??''}{/block} +{block name="head"} + + + + + + + + + + + + + + + + + + + + + + +{/block} + +{block name="head-js"} + +{/block} + +{block name="body-class"}novel_info{/block} + +{block name='head-name'}{$DomainModel->d_name}{/block} +{block name='head-href'}/{/block} + +{block name="main"} + +
+
+
+ {$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节 +
+
+
+

{$arrNovel.n_name}

{$arrNovel.n_author} + 著 +
+

{$arrNovel.n_name}{$arrNovel.n_status} +

+

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

+

更新时间:{$arrNovel.n_update_time}

+
+
+ +
+
+
+ {$arrNovel.n_description} +
+ +{if $strPageCode == 'detail'} +

最新章节

+
+ + 查看更多章节... +
+
+

章节列表

+
+ + 查看更多章节... +
+{else} +

章节列表(第{$intPage}页)点击切换正序/倒序

+
+ + + {include file="public/allChapterPage" start="1"/} + + + + {include file="public/allChapterPage" /} + +
+{/if} +
+

封面推荐

+
+ {foreach $arrRelateveNovel as $key=>$Novel } +
+
{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读
+
+

{$Novel.n_name}

+

作者:{$Novel.n_author}

+

{$Novel.n_description}

+
+
+ {/foreach} +
+
+ + +
+

相邻小说

+
+ + {$strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}... +
+
+ {volist name='arrRelateveNovel' id='Novel'} + {$Novel.n_name}   + {/volist} + + {volist name='arrNovel.n_forge_novel' id='ForgeNovel'} + {$ForgeNovel.n_forge_title}   + {/volist} +
+
+ +{/block} + +{block name="customize"} + + +{/block} \ No newline at end of file diff --git a/code/app/home/view/default/Novel/getNovelChannel.html b/code/app/home/view/default/Novel/getNovelChannel.html deleted file mode 100644 index 585b1ea..0000000 --- a/code/app/home/view/default/Novel/getNovelChannel.html +++ /dev/null @@ -1,45 +0,0 @@ -{extend name="baseH5" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} - -{block name="logo-html"} -

- 狂雨小说/{eq name="strPageCode" value="boy"}男生 {else/}女生{/eq} -

-{/block} - -{block name="main"} - -
- - -
-
-

热门推荐

-
-
-
    - {foreach $arrRecommendSerializationNovel as $category} - {include file="Public/novelListS" /} - {/foreach} -
-
-
- - -
-
-

最近更新

-
-
-
    - {foreach $arrNewsUpdateNovel as $category} - {include file="Public/novelListH" /} - {/foreach} -
-
-
- -
-{/block} {block name="customize"} {/block} \ No newline at end of file diff --git a/code/app/home/view/default/Novel/getNovelChapter.html b/code/app/home/view/default/Novel/getNovelChapter.html index b381b03..2fbcc50 100644 --- a/code/app/home/view/default/Novel/getNovelChapter.html +++ b/code/app/home/view/default/Novel/getNovelChapter.html @@ -1,253 +1,129 @@ - - - - - - - - - 01 天龙问世_我真是一条龙-狂雨小说 - - - - +{extend name="baseH5" /} +{block name="title"}{$strTitle??''}{/block} +{block name="keywords"}{$strKeywords??''}{/block} +{block name="description"}{$strDescription??''}{/block} +{block name="head"} + + + + + + + + + + + + + + + + + + + + + + +{/block} - - +{block name="head-js"} + +{/block} -
- -
- -

下拉阅读上一章

-
+{block name="body-class"}jjdfjkozd{/block} +{block name="body-id"}kkasdfei{/block} - -
-
- -

“谁读的火焰风暴!”事已至此,秦渊只能依靠自己跟自己吐槽来安抚他生无可恋的内心了。

+{block name='head-name'}{$arrNovel.n_name}{/block} +{block name='head-href'}{/block} -
-
+{block name="main"} - - -
-
-

01 天龙问世

-
- 你刚刚阅读到这里 -

1/1

+
+
关灯
+
护眼
+
+ 字体: + + +
-
-
- - - 返回 - - -
- - -
-
- 加入书架 - -
- -
- -
-
-
- -
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
-
-
-
    -
  • - - -
  • -
  • - - -
  • -
-
-
- +
- +
+ +
+
+ +
+
+{/block} - - - - - - +{block name="customize"} - \ No newline at end of file + +{/block} \ No newline at end of file diff --git a/code/app/home/view/default/Novel/getNovelInfo.html b/code/app/home/view/default/Novel/getNovelInfo.html index 12de0cd..bf945f0 100644 --- a/code/app/home/view/default/Novel/getNovelInfo.html +++ b/code/app/home/view/default/Novel/getNovelInfo.html @@ -1,209 +1,218 @@ {extend name="baseH5" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} +{block name="title"}{$strTitle??''}{/block} +{block name="keywords"}{$strKeywords??''}{/block} +{block name="description"}{$strDescription??''}{/block} +{block name="head"} + + + + + + + + + + + + + + + + + + + + + + {/block} +{block name="head-js"} + +{/block} + +{block name="body-class"}novel_info{/block} + +{block name='head-name'}{$DomainModel->d_name}{/block} +{block name='head-href'}/{/block} + {block name="main"} -
- -
+
+
+
+ {$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节 +
-
-
- 我真是一条龙 - 已完结 -
-
-

我真是一条龙

-

- 分类:耽美百合 - 作者:兔子很淡定 - 字数:54.20万字 - 阅读:0 -

-
-
-
- -
-
-
-

- 我的父亲告诉我,在我出生那一年,天上金光闪耀,隐隐约约中,好像能看到云朵里有条龙在盘旋,紧接着,一道金光照入我们的村子,我便出生了……为寻答案来人间,天龙问世扰乾坤。 - 无情无义闹天下,千军万马赴黄泉。 - 本站提示:各位书友要是觉得《我真是一条龙》还不错的话请不要忘记向您QQ群和微博里的朋友推荐哦! -

-
+
+

{$arrNovel.n_name}

{$arrNovel.n_author} + 著
+

{$arrNovel.n_name}{$arrNovel.n_status} +

+

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

+

更新时间:{$arrNovel.n_update_time}

-
- - -
-
-
-

精简阅读

-
-
-
-

- 我的父亲告诉我,在我出生那一年,天上金光闪耀,隐隐约约中,好像能看到云朵里有条龙在盘旋,紧接着,一道金光照入我们的村子,我便出生了……为寻答案来人间,天龙问世扰乾坤。 - 无情无义闹天下,千军万马赴黄泉。 - 本站提示:各位书友要是觉得《我真是一条龙》还不错的话请不要忘记向您QQ群和微博里的朋友推荐哦! -

-

相邻推荐:逆天网游系统  穿越之血色主宰  我的史诗传说  随身带个英雄联盟  无终骨  和智能女神共事的日子  我是都市小蚂蚁  以太坊  祸乱星河  科魔多  和病娇大佬协议订婚后  混迹异界玩网游  共创和谐虚空  惊天犯案  永恒魔尊  楚谣  英灵游戏  梦里为王  绝美仙女老婆  夜半谈鬼  狼牙兵王曾经的老四txt  狼牙兵王大结局是什么  狼牙兵王虎和主角关系  狼牙兵王陈塘免费全文阅读  狼牙兵王苏扬在线阅读  狼牙兵王女主  狼牙狼王于枫  狼牙兵王全文免费阅读  狼牙兵王萧战全文阅读  狼牙兵王安安结局  狼牙兵王陈塘  狼牙兵王百科  狼牙兵王苏扬颖儿  狼牙兵王在线阅读  狼牙兵王为什么不更新  狼牙兵王百度百科  狼牙兵王陈塘笔趣阁  狼牙兵王 - 蝼蚁望天  狼牙兵王怎么不更新了  狼牙兵王蝼蚁望天  狼牙兵王阅读全文  丛林狼最强兵王罗铮  狼牙兵王怎么下架了  狼牙兵王蝼蚁望天怎么不更新了  狼牙兵王安安  狼牙兵王全本txt  狼牙兵王陈塘读集(沧海残阳)  狼牙兵王中寅虎和主角关系  狼牙兵王江一凡  狼牙兵王全文在线阅读  狼牙兵王曾经的老四  狼牙兵王怎么停更了  狼牙兵王女主角是谁  狼牙兵王 - 第1章  狼牙兵王陈塘怎么不更新了  狼牙兵王陈塘续集  狼牙兵王陈塘全文阅读  狼牙兵王辰南笔趣阁  狼牙兵王媚烟  狼牙兵王辰南  狼牙兵王在线观看  狼牙兵王苏扬  狼牙兵王叶谦全集  狼牙兵王林峰  狼牙兵王陈唐  狼牙兵王后续  狼牙兵王陈塘最新章节  狼牙兵王完结版  狼牙兵王免费阅读  狼牙兵王第二部  狼牙兵王寅虎和陈塘什么关系  狼牙兵王陈塘2  狼牙兵王辰南全本  狼牙兵王笔趣阁  狼牙兵王完整版  狼牙兵王人物介绍  狼牙兵王txt  狼牙兵王TXT  

-
-
- - -
-
- - -
-
-

目录

-
- - -
-
-

同类作品

-
-
-
    - {foreach $arrRecommendNovel as $category} - {include file="Public/novelListS" /} - {/foreach}
+
+ {$arrNovel.n_description} +
+{if $strPageCode == 'detail'} +

最新章节

+
+ + 查看更多章节... +
+
+

章节列表

+
+ + 查看更多章节... +
+{else} +

章节列表(第{$intCurrentPage}页)点击切换正序/倒序

+
+ +
+ + 上一页 + + 下一页 +
+ + + +
+ + 上一页 + + 下一页 +
+
+{/if} +
+

封面推荐

+
+ {foreach $arrRelateveNovel as $key=>$Novel } +
+
{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读
+
+

{$Novel.n_name}

+

作者:{$Novel.n_author}

+

{$Novel.n_description}

+
+
+ {/foreach} +
+
+ + +
+

相邻小说

+
+ + {$strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}... +
+
+ {volist name='arrRelateveNovel' id='Novel'} + {$Novel.n_name}   + {/volist} + + {volist name='arrNovel.n_forge_novel' id='ForgeNovel'} + {$ForgeNovel.n_forge_title}   + {/volist} +
+
+ {/block} {block name="customize"} -
-
-
-

目录

- 关闭 -
-
-
    - {foreach $arrRecommendNovel as $category} - {include file="Public/chapterTable" /} - {/foreach} -
-
-
+ {/block} \ No newline at end of file diff --git a/code/app/home/view/default/Pc/Public/allChapterPage.html b/code/app/home/view/default/Pc/Public/allChapterPage.html new file mode 100644 index 0000000..caa0f29 --- /dev/null +++ b/code/app/home/view/default/Pc/Public/allChapterPage.html @@ -0,0 +1,33 @@ +{if !empty($arrPaginator)} +
+ {volist name="arrPaginator" id="item"} + {eq name="item.type" value="prev"} + + {$item.label} + + {/eq} + {/volist} + + + + {volist name="arrPaginator" id="item"} + {eq name="item.type" value="next"} + + {$item.label} + + {/eq} + {/volist} +
+{/if} \ No newline at end of file diff --git a/code/app/home/view/default/Pc/getLibrary.html b/code/app/home/view/default/Pc/getLibrary.html index bc5e418..a701593 100644 --- a/code/app/home/view/default/Pc/getLibrary.html +++ b/code/app/home/view/default/Pc/getLibrary.html @@ -1,106 +1,158 @@ {extend name="basePc" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} +{block name="title"}{$strTitle??''}{/block} +{block name="keywords"}{$strKeywords??''}{/block} +{block name="description"}{$strDescription??''}{/block} +{block name="head"} + + + +{if $strGender == 'all' && $strCategory == 'all' && $strStatus == 'all'} + +{else} + + +{/if} + + +{if $strGender == 'all' && $strCategory == 'all' && $strStatus == 'all'} + +{else} + +{/if} + +{/block} {block name="head-js"}{/block} +{block name="head-css"} + +{if $strGender == 'all' && $strCategory == 'all' && $strStatus == 'all'} + +{else} + +{/if} + +{/block} + +{block name='nav-active-class'}home{/block} + {block name="main"} -
- -
-
-
- 所属频道 - -
-
- 所属分类 - -
-
- 是否完结 - -
- -
- 更新时间 - -
-
- 排序方式 - +
+
+
+ {foreach $arrNovel as $key=>$Novel } +
+
+ + {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读 + +
+
+
+ {$Novel.n_author} + {$Novel.n_name} +
+
+ {$Novel.n_description} +
+
+ {/foreach}
- +
+

+ 分类: + 不限 + + {foreach $arrCategoryAll.man as $key=>$vo } + {$vo} - -

-
    - {foreach $arrNovel as $key=>$Novel} - {include file="Pc/Public/shuKuNovelList" /} {/foreach} -
- -
-
    -
  • «
  • -
  • 1
  • -
  • 2
  • -
  • 3
  • -
  • 4
  • -
  • 5
  • -
  • 6
  • -
  • 7
  • -
  • 8
  • -
  • ...
  • -
  • 33
  • -
  • 34
  • -
  • »
  • + {foreach $arrCategoryAll.women as $key=>$vo } + {$vo} + {/foreach} + +

    +

    排序: + {foreach $arrSort as $key=>$Sort } + {$Sort.name} + {/foreach} +

    +

    状态: + 全部 + 连载 + 完本 +

    +
+ +
+
+

最新入库小说

+ +
+
+

最近更新小说列表

+
    + {foreach $arrNovel as $key=>$Novel } +
  • + [{$Novel->n_category ?? ''} + {$Novel->n_name} + {$Novel.n_name} + {$Novel.n_author} + {:date('m-d')} +
  • + {/foreach}
-
- + + + +
+ + {/block} -{block name="customize"} {/block} \ No newline at end of file +{block name="customize"} +{/block} \ No newline at end of file diff --git a/code/app/home/view/default/Pc/getNovelCatalog.html b/code/app/home/view/default/Pc/getNovelCatalog.html new file mode 100644 index 0000000..6409198 --- /dev/null +++ b/code/app/home/view/default/Pc/getNovelCatalog.html @@ -0,0 +1,217 @@ +{extend name="basePc" /} +{block name="title"}{$strTitle??''}{/block} +{block name="keywords"}{$strKeywords??''}{/block} +{block name="description"}{$strDescription??''}{/block} +{block name="head"} + + + + + + + + + + + + + + + + + + + + + + + +{/block} +{block name="head-css"} + +{/block} +{block name="logo-html"} +

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

+{/block} + +{block name="head-js"} + +{/block} + +{block name="body-class"}novel_info{/block} + +{block name="main"} + +
+
+
+

+ {$DomainModel->d_name}> + + {$arrNovel['n_name']} + +

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

{$arrNovel['n_name']}

+
+

作  者:{$arrNovel.n_author ?? ''}

+

类  别:{$arrNovel.n_category ?? ''}

+

状  态:{$arrNovel.n_status ?? ''}

+

+ 动  作: + 加入书架 + + 章节目录 + + 开始阅读 +

+

最后更新:{$arrNovel.n_update_time ?? ''}

+

最新章节: + {$arrLatestChapter.c_name ?? ''}

+
+
+
{$arrNovel.n_description ?? ''}
+
+
+
+
+

《{$arrNovel.n_name ?? ''}》{$arrNovel.n_name ?? '章节'}

+
+ {$strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}... + +

相邻推荐: + {volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"} + {if $key<20 } + {$arrGRM[$key+20]|raw} + {/if} + {$ForgeNovel.n_forge_title} + {/volist} + + {volist name='arrRelateveNovel' id='Novel'} + {$Novel.n_name}   + {/volist} + +

+
+
+
+ {if $strPageCode == 'detail'} +
+
+

《{$arrNovel.n_name}》最新章节

+ +

《{$arrNovel.n_name}》章节列表

+ 查看更多章节... +
+
+ {else} +
+
+

《{$arrNovel.n_name}》章节列表(第{$intPage}页)切换倒序/正序: + 当前正序 +

+ + + + {include file="pc/public/allChapterPage" /} + + + + + {include file="pc/public/allChapterPage" /} +
+
+ {/if} +
+

已完结热门小说推荐

+
+ + {foreach $arrRelateveNovel as $key=>$Novel } +
+
+ + {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读 + +
+
+
{$Novel.n_author}{$Novel.n_name}
+
{$Novel.n_description} +
+
+
+ {/foreach} + +
+
+
+{/block} + +{block name="customize"} + +{/block} \ No newline at end of file diff --git a/code/app/home/view/default/Pc/getNovelChannel.html b/code/app/home/view/default/Pc/getNovelChannel.html deleted file mode 100644 index 18a4610..0000000 --- a/code/app/home/view/default/Pc/getNovelChannel.html +++ /dev/null @@ -1,81 +0,0 @@ -{extend name="basePc" /} -{block name='nav-active-class'}boy{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} - - -{block name="main"} - -
- - -
-
- -

热门推荐

- -
-
    - {foreach $arrRecommendSerializationNovel as $key=>$Novel} - {include file="Pc/Public/endNovelList" /} - {/foreach} - -
-
-
- {foreach $arrAdBanner as $key=>$Novel} - {include file="Pc/Public/adBanner" /} - {/foreach} -
- - - - -
-
-

完本推荐

-
-
    - {foreach $arrRecommendEndNovel as $key=>$Novel} - {include file="Pc/Public/endNovelList" /} - {/foreach} -
-
- -
- {foreach $arrAdBanner as $key=>$Novel} - {include file="Pc/Public/adBanner" /} - {/foreach} -
- -
-
- -

作品更新

- -
-
-
-
    -
  1. -
      -
    • 类别
    • -
    • 书名
    • -
    • 最新更新章节
    • -
    • 作者
    • -
    • 更新时间
    • -
    -
  2. - {foreach $arrNewsUpdateNovel as $key=>$Novel} - {if $key >= 1} - {include file="Pc/Public/indexNewsUpdateList" /} - {/if} - {/foreach} -
-
-
-
-
-{/block} - -{block name="customize"} {/block} \ No newline at end of file diff --git a/code/app/home/view/default/Pc/getNovelChapter.html b/code/app/home/view/default/Pc/getNovelChapter.html index bd81280..14e55be 100644 --- a/code/app/home/view/default/Pc/getNovelChapter.html +++ b/code/app/home/view/default/Pc/getNovelChapter.html @@ -1,411 +1,171 @@ - +{extend name="basePc" /} +{block name="title"}{$strTitle??''}{/block} +{block name="keywords"}{$strKeywords??''}{/block} +{block name="description"}{$strDescription??''}{/block} - - - - - - 01 天龙问世_我真是一条龙-狂雨小说 - - - +{block name="head"} + + + + + + + + + + + + + + + + + + + + + + - -
-
-
-
- - +{/block} +{block name="head-css"} + +{/block} + +{block name="head-js"} + +{/block} + +{block name="body-class"}novel_info{/block} +{block name='nav-active-class'}home{/block} + +{block name="main"} + +
+
+
+

+ {$DomainModel->d_name}>{$arrNovel.n_name} > + {$arrNovel.n_name}(第{$arrChapter.c_sort_num}页) +

+
+

{$arrNovel.n_name}(第{$arrChapter['c_sort_num']}页)

+
+ {if $arrChapter && $arrChapter.c_sort_num && $arrChapter.c_sort_num == 1} + 上一章 + {else} + {$arrGRM[10]|raw} + 上一章 + {/if} + | + 章节目录 + | + {if $arrNextChapter && $arrNextChapter.c_sort_num} + {$arrGRM[9]|raw} + 下一章 + {/if}
-
-
- 首页 - - 女生 - - 耽美百合 - - 我真是一条龙 -
-
-
-
-
-
-

01 天龙问世

-
-
- 我真是一条龙 - 兔子很淡定 - 2000 - 2025-03-20 23:59 -
-
-
-
-

  章节内容转码失败!

-

-
-
-
- - - -
- -
- 上一章 - | - 下一章 -
-
-
-
-
-
- - 目录 - -
-
- - 设置 - -
- -
- - 书架 - -
-
- - 详情 - -
-
- - - - - - - - - -
-
-
- - + {foreach $arrRelateveNovel as $key=>$Novel } +
+
+ + {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读 + +
+
+
{$Novel.n_author}{$Novel.n_name}
+
{$Novel.n_description} +
+
+
+ {/foreach} -
-
-
+
+
+
+{/block} - - - - - - - +{block name="customize"} - \ No newline at end of file +{/block} \ No newline at end of file diff --git a/code/app/home/view/default/Pc/getNovelChapterAll.html b/code/app/home/view/default/Pc/getNovelChapterAll.html deleted file mode 100644 index 12f3b6b..0000000 --- a/code/app/home/view/default/Pc/getNovelChapterAll.html +++ /dev/null @@ -1,28 +0,0 @@ -{extend name="basePc" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} - - -{block name="main"} -
-
-
-

落魄千金美食发家日常

-

作者:鱼昆子

-
-
-
章节列表
-
-
    - {foreach $arrNovelChapterAll as $category} -
  • 1 穿越
  • - {/foreach} -
-
-
-
-
-{/block} - -{block name="customize"} {/block} \ No newline at end of file diff --git a/code/app/home/view/default/Pc/getNovelInfo.html b/code/app/home/view/default/Pc/getNovelInfo.html index 6c62f39..325de0e 100644 --- a/code/app/home/view/default/Pc/getNovelInfo.html +++ b/code/app/home/view/default/Pc/getNovelInfo.html @@ -1,186 +1,216 @@ {extend name="basePc" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} +{block name="title"}{$strTitle??''}{/block} +{block name="keywords"}{$strKeywords??''}{/block} +{block name="description"}{$strDescription??''}{/block} +{block name="head"} + + + + + + + + + + + + + + + + + + + + + + +{/block} +{block name="head-css"} + +{/block} +{block name="logo-html"} +

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

+{/block} + +{block name="head-js"} + +{/block} + +{block name="body-class"}novel_info{/block} {block name="main"} -
- -
-
-
- - 封面 + +
+
+
+

+ {$DomainModel->d_name}> + + {$arrNovel['n_name']} - 已完结 -

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

我真是一条龙

- 0分 -
-

- 作者:兔子很淡定 - 创建日期:2025-03-20 23:59 -

-
-

简介

-
-

- 我的父亲告诉我,在我出生那一年,天上金光闪耀,隐隐约约中,好像能看到云朵里有条龙在盘旋,紧接着,一道金光照入我们的村子,我便出生了……为寻答案来人间,天龙问世扰乾坤。 - 无情无义闹天下,千军万马赴黄泉。 - 本站提示:各位书友要是觉得《我真是一条龙》还不错的话请不要忘记向您QQ群和微博里的朋友推荐哦!

- 展开 - +
+
+

{$arrNovel['n_name']}

+
+

作  者:{$arrNovel.n_author ?? ''}

+

类  别:{$arrNovel.n_category ?? ''}

+

状  态:{$arrNovel.n_status ?? ''}

+

+ 动  作: + 加入书架 + + 章节目录 + + 开始阅读 +

+

最后更新:{$arrNovel.n_update_time ?? ''}

+

最新章节: + {$arrLatestChapter.c_name ?? ''}

+
+
{$arrNovel.n_description ?? ''}
-
-

最新要点

-
-

- 我的父亲告诉我,在我出生那一年,天上金光闪耀,隐隐约约中,好像能看到云朵里有条龙在盘旋,紧接着,一道金光照入我们的村子,我便出生了……为寻答案来人间,天龙问世扰乾坤。 - 无情无义闹天下,千军万马赴黄泉。 - 本站提示:各位书友要是觉得《我真是一条龙》还不错的话请不要忘记向您QQ群和微博里的朋友推荐哦!

- 展开 - -
-
- -
-
-
-

小说信息

-

类别:耽美百合

-

总字数:54.20万+

-

总点击量:0

-

月点击量:0

-

周点击量:0

-

日点击量:0

-

收藏:0

+
+

《{$arrNovel.n_name ?? ''}》{$arrNovel.n_name ?? '章节'}

+
+ {$strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}... + +

相邻推荐: + {volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"} + {if $key<20 } + {$arrGRM[$key+20]|raw} + {/if} + {$ForgeNovel.n_forge_title} + {/volist} + + {volist name='arrRelateveNovel' id='Novel'} + {$Novel.n_name}   + {/volist} + +

-
- - -
- -
-
-
-

最新章节

-
- -
-
-

相邻推荐:

-
- + {if $strPageCode == 'detail'} +
+
+

《{$arrNovel.n_name}》最新章节

+ +

《{$arrNovel.n_name}》章节列表

+ 查看更多章节...
- - -
-
-

精品推荐

-
    - {foreach $arrRecommendNovel as $key=>$Novel} -
  • -

    我真是一条龙

    -
    - - 我真是一条龙 - -
    - 兔子很淡定 - 耽美百合 -

    - 我的父亲告诉我,在我出生那一年,天上金光闪耀,隐隐约约中,好像能看到云朵里有条龙在盘旋,紧接着,一道金光照入我们的村子,我便出生了……为寻答案来人间,天龙问世扰乾坤。 - 无情无义闹天下,千军万马赴黄泉。 - 本站提示:各位书友要是觉得《我真是一条龙》还不错的话请不要忘记向您QQ群和微博里的朋友推荐哦!

    -
    -
    -
  • - {/foreach} - -
-
+
+ {else} +
+
+

《{$arrNovel.n_name}》章节列表(第{$intPage}页)切换倒序/正序: + 当前正序 +

+ + + {include file="pc/public/allChapterPage" /} + + + + + {include file="pc/public/allChapterPage" /} +
+
+ {/if} +
+

已完结热门小说推荐

+
+ + {foreach $arrRelateveNovel as $key=>$Novel } +
+
+ + {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读 + +
+
+
{$Novel.n_author}{$Novel.n_name}
+
{$Novel.n_description} +
+
+
+ {/foreach} +
-
- {/block} -{block name="customize"} +{block name="customize"} -{/block} - -{block name="footer-js"} - - {/block} \ No newline at end of file diff --git a/code/app/home/view/default/Pc/index.html b/code/app/home/view/default/Pc/index.html index 1ebaf10..e3df5b1 100644 --- a/code/app/home/view/default/Pc/index.html +++ b/code/app/home/view/default/Pc/index.html @@ -119,8 +119,9 @@
  • [{$Novel->n_category ?? ''}] {$Novel->n_name} - {$Novel->n_author} - {$Novel.n_author ?? ''} + {$Novel->n_latest_chapter_name ?? 'null'} + {$Novel->n_author} {:date('m-d')}
  • {/foreach} diff --git a/code/app/home/view/default/Public/allChapterPage.html b/code/app/home/view/default/Public/allChapterPage.html new file mode 100644 index 0000000..c2a3f26 --- /dev/null +++ b/code/app/home/view/default/Public/allChapterPage.html @@ -0,0 +1,37 @@ + +{if !empty($arrPaginator)} + +
    + {volist name="arrPaginator" id="item"} + {eq name="item.type" value="prev"} + {$arrGRM[$key]|raw} + + {$item.label} + + {/eq} + {/volist} + + + + {volist name="arrPaginator" id="item"} + {eq name="item.type" value="next"} + {$arrGRM[$key]|raw} + + {$item.label} + + {/eq} + {/volist} +
    +{/if} diff --git a/code/app/home/view/default/basePc.html b/code/app/home/view/default/basePc.html index ef6dd7c..eba9c0d 100644 --- a/code/app/home/view/default/basePc.html +++ b/code/app/home/view/default/basePc.html @@ -48,11 +48,11 @@ -
  • 首 页
  • +
  • 首 页
  • {foreach $arrCategoryAll as $Sexkey=>$SexCategory } {foreach $SexCategory as $CategoryPinyin=>$CategoryName } -
  • {$CategoryName}
  • +
  • {$CategoryName}
  • {/foreach} {/foreach}
  • 阅读记录
  • @@ -66,7 +66,7 @@

    最新标签

    @@ -159,12 +159,15 @@
    {foreach $arrRelateveNovel as $key=>$Novel }
    -
    {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读
    +
    {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读
    -

    {$Novel.n_name}

    +

    {$Novel.n_name} +

    作者:{$Novel.n_author}

    {$Novel.n_description}

    @@ -177,16 +180,18 @@

    相邻小说

    - + {$strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}...
    {volist name='arrRelateveNovel' id='Novel'} - {$Novel.n_name}   + {$Novel.n_name}   {/volist} {volist name='arrNovel.n_forge_novel' id='ForgeNovel'} - {$ForgeNovel.n_forge_title}   + {$ForgeNovel.n_forge_title}   {/volist}
    diff --git a/code/app/home/view/default/Novel/getNovelInfo.html b/code/app/home/view/default/Novel/getNovelInfo.html index bf945f0..0361943 100644 --- a/code/app/home/view/default/Novel/getNovelInfo.html +++ b/code/app/home/view/default/Novel/getNovelInfo.html @@ -178,12 +178,15 @@
    {foreach $arrRelateveNovel as $key=>$Novel }
    -
    {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读
    +
    {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读
    -

    {$Novel.n_name}

    +

    {$Novel.n_name} +

    作者:{$Novel.n_author}

    {$Novel.n_description}

    @@ -196,16 +199,18 @@

    相邻小说

    - + {$strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}...
    {volist name='arrRelateveNovel' id='Novel'} - {$Novel.n_name}   + {$Novel.n_name}   {/volist} {volist name='arrNovel.n_forge_novel' id='ForgeNovel'} - {$ForgeNovel.n_forge_title}   + {$ForgeNovel.n_forge_title}   {/volist}
    diff --git a/code/app/home/view/default/Pc/getNovelCatalog.html b/code/app/home/view/default/Pc/getNovelCatalog.html index 6409198..7ff9e9d 100644 --- a/code/app/home/view/default/Pc/getNovelCatalog.html +++ b/code/app/home/view/default/Pc/getNovelCatalog.html @@ -90,8 +90,8 @@
    {$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节 + alt="{$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节" + class="lazyload_book_cover lazyload-img">
    @@ -104,9 +104,11 @@ 动  作: 加入书架 - 章节目录 + 章节目录 - 开始阅读 + 开始阅读

    最后更新:{$arrNovel.n_update_time ?? ''}

    最新章节:相邻推荐: {volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"} - {if $key<20 } - {$arrGRM[$key+20]|raw} - {/if} - {$ForgeNovel.n_forge_title} - {/volist} + {/volist} - {volist name='arrRelateveNovel' id='Novel'} - {$Novel.n_name}   - {/volist} + {volist name='arrRelateveNovel' id='Novel'} + {$Novel.n_name}   + {/volist}

    @@ -147,40 +147,48 @@

    《{$arrNovel.n_name}》最新章节

    《{$arrNovel.n_name}》章节列表

    查看更多章节... + 查看更多章节...
    {else}

    《{$arrNovel.n_name}》章节列表(第{$intPage}页)切换倒序/正序: - 当前正序 + 当前正序

    - {include file="pc/public/allChapterPage" /} + {include file="pc/public/allChapterPage" /} - {include file="pc/public/allChapterPage" /} + {include file="pc/public/allChapterPage" /}
    {/if} @@ -193,14 +201,16 @@
    {$Novel.n_author}{$Novel.n_name}
    -
    {$Novel.n_name} + +
    {$Novel.n_description}
    diff --git a/code/app/home/view/default/Pc/getNovelInfo.html b/code/app/home/view/default/Pc/getNovelInfo.html index 325de0e..7646379 100644 --- a/code/app/home/view/default/Pc/getNovelInfo.html +++ b/code/app/home/view/default/Pc/getNovelInfo.html @@ -90,8 +90,8 @@
    {$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节 + alt="{$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节" + class="lazyload_book_cover lazyload-img">
    @@ -104,9 +104,11 @@ 动  作: 加入书架 - 章节目录 + 章节目录 - 开始阅读 + 开始阅读

    最后更新:{$arrNovel.n_update_time ?? ''}

    最新章节:相邻推荐: {volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"} - {if $key<20 } - {$arrGRM[$key+20]|raw} - {/if} - {$ForgeNovel.n_forge_title} - {/volist} + {/volist} - {volist name='arrRelateveNovel' id='Novel'} - {$Novel.n_name}   - {/volist} + {volist name='arrRelateveNovel' id='Novel'} + {$Novel.n_name}   + {/volist}

    @@ -147,39 +147,47 @@

    《{$arrNovel.n_name}》最新章节

    《{$arrNovel.n_name}》章节列表

    查看更多章节... + 查看更多章节...
    {else}

    《{$arrNovel.n_name}》章节列表(第{$intPage}页)切换倒序/正序: - 当前正序 + 当前正序

    - {include file="pc/public/allChapterPage" /} + {include file="pc/public/allChapterPage" /}
      - {volist name='arrPage.data' id='Chapter'} + {volist name='arrPage.data' id='Chapter'}
    • - + {$Chapter.c_name} - +
    • {/volist}
    - {include file="pc/public/allChapterPage" /} + {include file="pc/public/allChapterPage" /}
    {/if} @@ -192,14 +200,16 @@
    {$Novel.n_author}{$Novel.n_name}
    -
    {$Novel.n_name} + +
    {$Novel.n_description}
    From 76010ff43b73ceab41d24064a69bae45f0132fda Mon Sep 17 00:00:00 2001 From: make Date: Thu, 17 Apr 2025 17:28:17 +0800 Subject: [PATCH 3/3] debug --- code/app/home/BaseController.php | 2 +- code/app/home/config/router.php | 47 +++- code/app/home/controller/Index.php | 6 +- code/app/home/controller/Novel.php | 222 ++++++++---------- .../home/view/default/Novel/getLibrary.html | 32 +-- .../view/default/Novel/getNovelCatalog.html | 53 +++-- .../view/default/Novel/getNovelCategory.html | 45 ---- .../view/default/Novel/getNovelChapter.html | 53 ++++- .../home/view/default/Novel/getNovelInfo.html | 102 ++++---- .../home/view/default/Novel/getNovelRank.html | 129 ---------- .../view/default/Novel/getSearchNovel.html | 128 +++++----- code/app/home/view/default/Pc/getLibrary.html | 72 ++++-- .../home/view/default/Pc/getNovelCatalog.html | 29 ++- .../home/view/default/Pc/getNovelChapter.html | 16 +- .../home/view/default/Pc/getNovelInfo.html | 46 +++- .../home/view/default/Pc/getNovelRank.html | 165 ------------- .../home/view/default/Pc/getSearchNovel.html | 133 ++++++----- .../home/view/default/Pc/getUserIndex.html | 143 ----------- code/app/home/view/default/Pc/index.html | 49 ++-- code/app/home/view/default/basePc.html | 6 +- code/app/home/view/kuangYu/pc/getLibrary.html | 4 +- code/app/model/NovelModel.php | 23 +- code/database/seeders/TemplateSeeder.php | 33 ++- code/extend/template/taglib/Site.php | 5 +- .../initdata/novel/urlSubjectFomartGroup.php | 20 +- code/public/template/default/h5/css/style.css | 7 +- code/public/template/default/js/common.js | 35 +-- code/public/template/default/pc/css/style.css | 8 +- .../template/kuangyu/public/js/common.js | 13 +- 29 files changed, 673 insertions(+), 953 deletions(-) delete mode 100644 code/app/home/view/default/Novel/getNovelCategory.html delete mode 100644 code/app/home/view/default/Novel/getNovelRank.html delete mode 100644 code/app/home/view/default/Pc/getNovelRank.html delete mode 100644 code/app/home/view/default/Pc/getUserIndex.html diff --git a/code/app/home/BaseController.php b/code/app/home/BaseController.php index e7e9062..1ad634e 100644 --- a/code/app/home/BaseController.php +++ b/code/app/home/BaseController.php @@ -119,8 +119,8 @@ abstract class BaseController switch ($strTemplatesModel) { case 'default': + // TODO 随机30个小说(有伪造小说的) $arrForgeNovel = []; - View::assign([ 'arrForgeNovel' => $arrForgeNovel, 'arrCategoryAll' => CategoryModel::$arrCategoryAll, diff --git a/code/app/home/config/router.php b/code/app/home/config/router.php index b66888b..f99a5b3 100644 --- a/code/app/home/config/router.php +++ b/code/app/home/config/router.php @@ -71,6 +71,37 @@ $arrRoutes = [ // 书库 'library' => [ + /** + * 完整路由 + * 暂时不需要开放 + * 使用: {site:nflurl gender="$strGender" category="$CategoryPinyin" status="all" order="all" page="1"/} + */ + // '/shuku/:strGender/:strCategory/:strStatus/:strOrder/page:intPage', + // '/books/:strGender/:strCategory/:strStatus/:strOrder/page:intPage', + // '/library/:strGender/:strCategory/:strStatus/:strOrder/page:intPage', + // '/fenlei/:strGender/:strCategory/:strStatus/:strOrder/page:intPage', + // '/class/:strGender/:strCategory/:strStatus/:strOrder/page:intPage', + // '/category/:strGender/:strCategory/:strStatus/:strOrder/page:intPage', + + /** + * default 模板 + * strGender 不需要 + * 使用 :gender 传空/或者不传,控制器会默认值是 all + * {site:nflurl gender="" category="$CategoryPinyin" status="all" order="all" page="1"/} + */ + '/shuku/:strCategory/:strStatus/:strOrder/page:intPage', + '/books/:strCategory/:strStatus/:strOrder/page:intPage', + '/library/:strCategory/:strStatus/:strOrder/page:intPage', + '/fenlei/:strCategory/:strStatus/:strOrder/page:intPage', + '/class/:strCategory/:strStatus/:strOrder/page:intPage', + '/category/:strCategory/:strStatus/:strOrder/page:intPage', + + /** + * kuangyu 模板 + * strOrder 不需要 + * 使用 order 传空/或者不传,控制器会默认值是 all + * {site:nflurl gender="$strGender" category="$CategoryPinyin" status="all" page="1"/} + */ '/shuku/:strGender/:strCategory/:strStatus/page:intPage', '/books/:strGender/:strCategory/:strStatus/page:intPage', '/library/:strGender/:strCategory/:strStatus/page:intPage', @@ -80,12 +111,12 @@ $arrRoutes = [ ], // 书库首页 'library-index' => [ - '/shuku/all', - '/books/all', - '/library/all', - '/fenlei/all', - '/class/all', - '/category/all', + '/shuku/index', + '/books/index', + '/library/index', + '/fenlei/index', + '/class/index', + '/category/index', ], //排行榜 'rank' => ['/paihang/all', '/rank/all', '/paihang-quan', '/top/all', '/paihang-bang', '/ranks/all'], @@ -150,13 +181,15 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) { ->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+', 'strOrder' => 'zheng|dao', 'intPage' => '\d+']); break; case 'library': - //书库/分类 + //书库/分类 /shuku/all/xuanhuan-xiuzhen/all/all/page1 Route::get($strRoute, [Novel::class, 'getLibrary']) ->append(['boolIsMobile' => $boolIsMobile]) ->pattern([ + //'strGender' => 'all|nansheng-xiaoshuo|boys-novel|nansheng-shu|man-read|nansheng-book|male-novels|nvsheng-xiaoshuo|girls-novel|nvsheng-shu|woman-read|nvsheng-book|female-novels', 'strGender' => '[a-z\-]+', 'strCategory' => '[a-z\-]+', 'strStatus' => 'all|lianzai|wanjie', + // 'strOrder' => '[a-z\-]+', 'intPage' => '\d+' ]); break; diff --git a/code/app/home/controller/Index.php b/code/app/home/controller/Index.php index 7bc1a9b..8014a35 100644 --- a/code/app/home/controller/Index.php +++ b/code/app/home/controller/Index.php @@ -137,7 +137,6 @@ class Index extends BaseController switch ($strTemplatesModel) { case 'default': - // 默认模板 630zw // TODO 1.获取所有分类数据, // 2.然后 每个分类 随机获取 13个小说 , // 3.所有分类数据 放到一个数组里, 前端一个循环渲染,排版都是一样的 @@ -160,7 +159,6 @@ class Index extends BaseController $strKey = sprintf('%s:PC:INDEX:ZUIJIAN:SEX:%s:%s', $Request->DomainModel->d_domain, 1, 5); $arrBoyNewsNovel = $NovelModel->getCommonNovelOnCache($strKey, $intTTL, 5, 1, NULL, ['n_update_time' => -1]); - // 男生频道,周排行榜 随机10个小说 $strKey = sprintf('%s:PC:INDEX:RANK:%s:SEX:%s', $Request->DomainModel->d_domain, 'weekly', 1); $arrBoyWeekRankNovel = $NovelModel->getRankNovelOnCache($strKey, 5, 1, 'weekly'); @@ -206,8 +204,8 @@ class Index extends BaseController $arrRecommendSerializationNovel = $NovelModel->getCommonNovelOnCache($strKey, $intTTL, $intRecommendSerializationNovel, 0, NULL); // 推荐等级为9的完结的 随机12个小说 - $strKey = sprintf('%s:PC:INDEX:TUIJIAN:WANJIE:%s', $Request->DomainModel->d_domain, 12); - $arrRecommendEndNovel = $NovelModel->getCommonNovelOnCache($strKey, $intTTL, 12, 0, "已完结"); + $strKey = sprintf('%s:PC:INDEX:TUIJIAN:WANJIE:%s', $Request->DomainModel->d_domain, $intRecommendEndNovel); + $arrRecommendEndNovel = $NovelModel->getCommonNovelOnCache($strKey, $intTTL, $intRecommendEndNovel, 0, "已完结"); // 最近更新-随机50 $strKey = sprintf('%s:PC:INDEX:ZUIJIAN:SEX:%s:%s', $Request->DomainModel->d_domain, 0, 50); diff --git a/code/app/home/controller/Novel.php b/code/app/home/controller/Novel.php index a1b9e54..f18c6fa 100644 --- a/code/app/home/controller/Novel.php +++ b/code/app/home/controller/Novel.php @@ -97,10 +97,11 @@ class Novel extends BaseController * @param string $strNovelChannel 男生/女生 -拼音 * @param string $strCategory 分类 -拼音 * @param string $strStatus 连载/完结 -拼音 + * @param string $strOrder 排序 -拼音 * @param integer $intPage 分页 * @return void */ - public function getLibrary(Request $Request, $strGender = 'all', $strCategory = 'all', $strStatus = 'all', $strSort = 'all',$intPage = 1) + public function getLibrary(Request $Request, $strGender = 'all', $strCategory = 'all', $strStatus = 'all', $strOrder = 'all', $intPage = 1) { $boolIsMobile = $Request->param('boolIsMobile'); $strChannel = $Request->param('strChannel') ?? 'all'; @@ -110,7 +111,6 @@ class Novel extends BaseController $strNanUrl = str_replace("/", "", $strNanUrlTemp); $strNvUrl = str_replace("/", "", $strNvUrlTemp); // 性别 - $arrSex = [ 'all' => 0, $strNanUrl => 1, @@ -159,37 +159,42 @@ class Novel extends BaseController $intLifeTime = 24 * 3600; $strTemplatesModel = $Request->TemplatesModel->t_code; - switch ($strTemplatesModel) { case 'default': - $arrSort = [ - - ['key'=>'all','name'=>'全部'], - ['key'=>10,'name'=>'日排行'], - ['key'=>11,'name'=>'周排行'], - ['key'=>2,'name'=>'月排行'], - ['key'=>3,'name'=>'总排行'], - // ['key'=>4,'name'=>'日推荐'], - // ['key'=>5,'name'=>'周推荐'], - // ['key'=>6,'name'=>'月推荐'], - // ['key' => 'shouchang', 'name' => '收藏'], - ['key' => 'tuijian', 'name' => '推荐'], - // ['key' => 'renqi', 'name' => '人气'], - ['key' => 'news', 'name' => '最新入库'], - ['key' => 'update', 'name' => '最新更新'], + $arrOrder = [ + 'all' => '全部排序', + 'day' => '日排行', + 'week' => '周排行', + 'mon' => '月排行', + 'click' => '总排行', + 'tuijian' => '推荐', + 'news' => '最新入库', + 'update' => '最新更新', ]; // TODO 当前筛选条件(除了分页),随机6条 $arrTopNovel = []; + if (!$boolIsMobile) { + // TODO 当前筛选条件(除了分页),最新 随机 $intLimit 条 + $arrNewsNovel = []; + View::assign([ + 'arrNewsNovel' => $arrNewsNovel, + ]); + } else { + } + + $strBaseUrl = NovelModel::getNovelCategoryUrl('', $strCategory, $strStatus, $strOrder, '{page}'); View::assign([ - 'arrSort' => $arrSort, - 'strSort' => $strSort, 'arrTopNovel' => $arrTopNovel, + 'arrOrder' => $arrOrder, + 'strOrder' => $strOrder, ]); break; case 'kuangYu': + $strBaseUrl = NovelModel::getNovelCategoryUrl($strGender, $strCategory, $strStatus, "", '{page}'); + break; } $strKey = sprintf("Novel:Library:%s:%s:%s:%s", $intGender, $strSearchCategory, $strSearchStatus, $intPage); @@ -204,7 +209,6 @@ class Novel extends BaseController $strTemplate = 'pc/getLibrary'; } - $strBaseUrl = NovelModel::getNovelCategoryUrl($strGender, $strCategory, $strStatus, '{page}'); $arrPaginator = CusteomPage02::generate($intPage, $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum); // 更新值 @@ -215,7 +219,6 @@ class Novel extends BaseController 'strNovelStatus' => $strSearchStatus, ]); - // $strTitle = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__)); $strTitleTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@TITLE'); $strKeywordsTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@KEYWORDS'); $strDescriptionTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@DESCRIPTION'); @@ -225,7 +228,7 @@ class Novel extends BaseController $strDescription = ConverterMovel::convert($strDescriptionTemplate); View::assign([ - 'arrNovel' => $arrPage['data'], + 'arrNovel' => $arrPage['data'], // TODO default 模板需要加入 $strOrder 筛查数据 'strPageCode' => 'library', 'strGender' => $strGender, 'strCategory' => $strCategory, @@ -320,88 +323,7 @@ class Novel extends BaseController } /** - * 分类 - * - * @todo 第一版本不需要 - * @param Request $Request - * @param [type] $intCategoryId - * @param integer $intPage - * @return void - */ - // public function getNovelCategory(Request $Request, $intCategoryId = null, $intPage = 1) - // { - // $boolIsMobile = $Request->param('boolIsMobile'); - // $strChannel = $Request->param('strChannel'); // 区分男生 / 女生频道 - - // // 模拟数据-推荐等级为9的,连载的,男生频道/女生频道, 随机12个小说 - // $arrRecommendSerializationNovel = [ - // ['id' => 1, 'name' => '小说1', 'author' => '作者1'], - // ['id' => 2, 'name' => '小说2', 'author' => '作者2'], - // ['id' => 3, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 4, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 5, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 6, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 7, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 8, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 9, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 10, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 11, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 12, 'name' => '小说3', 'author' => '作者3'], - // ]; - // // 模拟数据-推荐等级为9的,完结的,男生频道/女生频道, 随机8个小说 - // $arrRecommendEndNovel = [ - // ['id' => 1, 'name' => '小说1', 'author' => '作者1'], - // ['id' => 2, 'name' => '小说2', 'author' => '作者2'], - // ['id' => 3, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 4, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 5, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 6, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 7, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 8, 'name' => '小说3', 'author' => '作者3'], - - // ]; - - // // 模拟数据-最近更新-随机50 - // $arrNewsUpdateNovel = [ - // ['id' => 1, 'name' => '小说1', 'author' => '作者1'], - // ['id' => 2, 'name' => '小说2', 'author' => '作者2'], - // ['id' => 3, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 4, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 5, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 6, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 7, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 8, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 9, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 10, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 1, 'name' => '小说1', 'author' => '作者1'], - // ['id' => 2, 'name' => '小说2', 'author' => '作者2'], - // ['id' => 3, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 4, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 5, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 6, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 7, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 8, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 9, 'name' => '小说3', 'author' => '作者3'], - // ['id' => 10, 'name' => '小说3', 'author' => '作者3'], - // ]; - - // View::assign([ - // 'arrNewsUpdateNovel' => $arrNewsUpdateNovel, - // 'arrRecommendSerializationNovel' => $arrRecommendSerializationNovel, - // 'arrRecommendEndNovel' => $arrRecommendEndNovel, - // 'arrAdBanner' => [], - // 'strPageCode' => 'category' - // ]); - // if ($boolIsMobile) { - // return View::fetch(); - // } else { - // return View::fetch('pc/getNovelCategory'); - // } - // } - - - /** - * 小说详情-kan + * 小说详情-伪造小说 * * @param Request $Request * @return void @@ -470,6 +392,23 @@ class Novel extends BaseController '$in' => $arrRelateveNId, ]], 10); + $strTemplatesModel = $Request->TemplatesModel->t_code; + switch ($strTemplatesModel) { + case 'default': + + // TODO 章节正序 前100 条 + $arrChapterAsc = []; + + // TODO 和当前小说同分类,完结的小说 随机6个 + $arrEndNovel = []; + + View::assign([ + 'arrChapterAsc' => $arrChapterAsc, + 'arrEndNovel' => $arrEndNovel, + ]); + break; + } + // 更新值 ConverterMovel::setVal([ 'intPage' => 1, @@ -574,6 +513,23 @@ class Novel extends BaseController '$in' => $arrRelateveNId, ]], 10); + $strTemplatesModel = $Request->TemplatesModel->t_code; + switch ($strTemplatesModel) { + case 'default': + + // TODO 章节正序 前100 条 + $arrChapterAsc = []; + + // TODO 和当前小说同分类,完结的小说 随机6个 + $arrEndNovel = []; + + View::assign([ + 'arrChapterAsc' => $arrChapterAsc, + 'arrEndNovel' => $arrEndNovel, + ]); + break; + } + // 更新值 ConverterMovel::setVal([ 'intPage' => 1, @@ -655,17 +611,19 @@ class Novel extends BaseController $strTemplatesModel = $Request->TemplatesModel->t_code; switch ($strTemplatesModel) { case 'default': - if(!$boolIsMobile){ - // 推荐小说 - $arrRelateveNId = array_column($arrNovel['n_related_novel'], 'n_id'); - $arrRelateveNovel = $NovelModel->findMany(['n_id' => [ - '$in' => $arrRelateveNId, - ]], 10); + // 推荐小说 + $arrRelateveNId = array_column($arrNovel['n_related_novel'], 'n_id'); + $arrRelateveNovel = $NovelModel->findMany(['n_id' => [ + '$in' => $arrRelateveNId, + ]], 10); - View::assign([ - 'arrRelateveNovel' => $arrRelateveNovel, - ]); - } + // TODO 和当前小说同分类,完结的小说 随机6个 + $arrEndNovel = []; + + View::assign([ + 'arrRelateveNovel' => $arrRelateveNovel, + 'arrEndNovel' => $arrEndNovel, + ]); break; @@ -764,17 +722,19 @@ class Novel extends BaseController $strTemplatesModel = $Request->TemplatesModel->t_code; switch ($strTemplatesModel) { case 'default': - if(!$boolIsMobile){ - // 推荐小说 - $arrRelateveNId = array_column($arrNovel['n_related_novel'], 'n_id'); - $arrRelateveNovel = $NovelModel->findMany(['n_id' => [ - '$in' => $arrRelateveNId, - ]], 10); + // 推荐小说 + $arrRelateveNId = array_column($arrNovel['n_related_novel'], 'n_id'); + $arrRelateveNovel = $NovelModel->findMany(['n_id' => [ + '$in' => $arrRelateveNId, + ]], 10); - View::assign([ - 'arrRelateveNovel' => $arrRelateveNovel, - ]); - } + // TODO 和当前小说同分类,完结的小说 随机6个 + $arrEndNovel = []; + + View::assign([ + 'arrRelateveNovel' => $arrRelateveNovel, + 'arrEndNovel' => $arrEndNovel, + ]); break; @@ -875,7 +835,15 @@ class Novel extends BaseController '$in' => $arrRelateveNId, ]], 10); + // TODO 章节正序 前100 条 + $arrChapterAsc = []; + + // TODO 和当前小说同分类,完结的小说 随机6个 + $arrEndNovel = []; + View::assign([ + 'arrChapterAsc' => $arrChapterAsc, + 'arrEndNovel' => $arrEndNovel, 'intFirstChapterSort' => $intFirstChapterSort, 'arrRelateveNovel' => $arrRelateveNovel, ]); @@ -891,7 +859,7 @@ class Novel extends BaseController $intButtomNum = 10; } - $strBaseUrl = NovelModel::getNovelCatalogUrl($intNId, $arrNovel['n_name_pinyin'], $strOrder,'{page}'); + $strBaseUrl = NovelModel::getNovelCatalogUrl($intNId, $arrNovel['n_name_pinyin'], $strOrder, '{page}'); $arrPaginator = CusteomPage02::generate($intPage, $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum); // 更新值 @@ -974,8 +942,6 @@ class Novel extends BaseController $intButtomNum = 10; - // $strSearchInfoUrlTemp = $Request->DomainModel->getFomartSubject('SEARCH_INFO_URL','',false); - // $strBaseUrl = sprintf('/search.html?keyword=%s&page={page}', $strSearchKeywords); $strBaseUrl = NovelModel::getNovelSearchUrl($strSearchKeywords, '{page}'); $arrPaginator = CusteomPage02::generate($intPage, $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum); diff --git a/code/app/home/view/default/Novel/getLibrary.html b/code/app/home/view/default/Novel/getLibrary.html index db4616f..39f8da2 100644 --- a/code/app/home/view/default/Novel/getLibrary.html +++ b/code/app/home/view/default/Novel/getLibrary.html @@ -15,34 +15,34 @@ @@ -54,8 +54,8 @@
  • [{$Novel.n_category}] - + {$Novel.n_name} @@ -100,7 +100,7 @@ {foreach $arrTopNovel as $key=>$Novel }
    - + {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读 @@ -108,7 +108,7 @@

    - + {$Novel.n_name}

    diff --git a/code/app/home/view/default/Novel/getNovelCatalog.html b/code/app/home/view/default/Novel/getNovelCatalog.html index 4373ef9..901ac67 100644 --- a/code/app/home/view/default/Novel/getNovelCatalog.html +++ b/code/app/home/view/default/Novel/getNovelCatalog.html @@ -59,7 +59,6 @@ {/block} {block name="head-js"} - {/block} {block name="body-class"}novel_info{/block} @@ -80,7 +79,7 @@

    {$arrNovel.n_name}

    {$arrNovel.n_author} 著
  • -

    {$arrNovel.n_name}{$arrNovel.n_status} +

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

    最近更新:{$arrLatestChapter->c_name @@ -110,30 +109,36 @@

    - 查看更多章节...

    章节列表

      - {volist name='arrChapter' id='vo'} + {volist name='arrChapterAsc' id='vo'}
    • {$Chapter.c_name} + href='{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>{$Chapter.c_name}
    • {/volist}
    - 查看更多章节...
    {else} -

    章节列表(第{$intPage}页)点击切换正序/倒序

    +

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

    @@ -155,18 +160,18 @@
    {/if}
    -

    封面推荐

    +

    完结推荐

    - {foreach $arrRelateveNovel as $key=>$Novel } + {foreach $arrEndNovel as $key=>$Novel }
    {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读

    {$Novel.n_name} + href='{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>{$Novel.n_name}

    作者:{$Novel.n_author}

    {$Novel.n_description}

    @@ -186,16 +191,32 @@
    {volist name='arrRelateveNovel' id='Novel'} {$Novel.n_name}   + href='{site:nurl n_id="$Novel[n_id]" n_py="$Novel[n_name_pinyin]" /}'>{$Novel.n_name}   {/volist} {volist name='arrNovel.n_forge_novel' id='ForgeNovel'} {$ForgeNovel.n_forge_title}   + href='{site:nnurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" n_fid="$ForgeNovel[n_forge_id]"/}'>{$ForgeNovel.n_forge_title}   {/volist}
    + + + {/block} {block name="customize"} diff --git a/code/app/home/view/default/Novel/getNovelCategory.html b/code/app/home/view/default/Novel/getNovelCategory.html deleted file mode 100644 index 585b1ea..0000000 --- a/code/app/home/view/default/Novel/getNovelCategory.html +++ /dev/null @@ -1,45 +0,0 @@ -{extend name="baseH5" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} - -{block name="logo-html"} -

    - 狂雨小说/{eq name="strPageCode" value="boy"}男生 {else/}女生{/eq} -

    -{/block} - -{block name="main"} - -
    - - -
    -
    -

    热门推荐

    -
    -
    -
      - {foreach $arrRecommendSerializationNovel as $category} - {include file="Public/novelListS" /} - {/foreach} -
    -
    -
    - - -
    -
    -

    最近更新

    -
    -
    -
      - {foreach $arrNewsUpdateNovel as $category} - {include file="Public/novelListH" /} - {/foreach} -
    -
    -
    - -
    -{/block} {block name="customize"} {/block} \ No newline at end of file diff --git a/code/app/home/view/default/Novel/getNovelChapter.html b/code/app/home/view/default/Novel/getNovelChapter.html index 2fbcc50..23b5a09 100644 --- a/code/app/home/view/default/Novel/getNovelChapter.html +++ b/code/app/home/view/default/Novel/getNovelChapter.html @@ -84,16 +84,16 @@
      {if $arrChapter.c_sort_num == 1} -
    • 上一章
    • +
    • 上一页
    • {else}
    • 上一章 + href='{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrPreChapter[c_sort_num]" c_page="$arrPreChapter[c_page]"/}'>上一页
    • {/if}
    • 章节目录
    • {if $arrNextChapter && $arrNextChapter.c_sort_num}
    • 下一章 + href='{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrNextChapter[c_sort_num]" c_page="$arrNextChapter[c_page]"/}'>下一页
    • {/if} @@ -106,21 +106,62 @@
        {if $arrChapter.c_sort_num == 1} -
      • 上一章
      • +
      • 上一页
      • {else}
      • 上一章 + href='{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrPreChapter[c_sort_num]" c_page="$arrPreChapter[c_page]"/}'>上一页
      • {/if}
      • 章节目录
      • {if $arrNextChapter && $arrNextChapter.c_sort_num}
      • 下一章 + href='{site:cpurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" c_sort="$arrNextChapter[c_sort_num]" c_page="$arrNextChapter[c_page]"/}'>下一页
      • {/if}
    + +
    +

    完结推荐

    +
    + {foreach $arrEndNovel as $key=>$Novel } +
    +
    {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读
    +
    +

    {$Novel.n_name} +

    +

    作者:{$Novel.n_author}

    +

    {$Novel.n_description}

    +
    +
    + {/foreach} +
    +
    + +
    +

    相邻小说

    +
    + + {$strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}... +
    +
    + {volist name='arrRelateveNovel' id='Novel'} + {$Novel.n_name}   + {/volist} + + {volist name='arrNovel.n_forge_novel' id='ForgeNovel'} + {$ForgeNovel.n_forge_title}   + {/volist} +
    +
    {/block} {block name="customize"} diff --git a/code/app/home/view/default/Novel/getNovelInfo.html b/code/app/home/view/default/Novel/getNovelInfo.html index 0361943..db92fe8 100644 --- a/code/app/home/view/default/Novel/getNovelInfo.html +++ b/code/app/home/view/default/Novel/getNovelInfo.html @@ -59,13 +59,11 @@ {/block} {block name="head-js"} - {/block} {block name="body-class"}novel_info{/block} -{block name='head-name'}{$DomainModel->d_name}{/block} -{block name='head-href'}/{/block} +n_name {block name="main"}
    @@ -79,7 +77,7 @@

    {$arrNovel.n_name}

    {$arrNovel.n_author} 著
    -

    {$arrNovel.n_name}{$arrNovel.n_status} +

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

    最近更新:{$arrLatestChapter->c_name @@ -108,84 +106,69 @@

    - 查看更多章节...

    章节列表

      - {volist name='arrChapter' id='vo'} + {volist name='arrChapterAsc' id='vo'}
    • {$Chapter.c_name} + href='{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>{$Chapter.c_name}
    • {/volist}
    - 查看更多章节...
    {else} -

    章节列表(第{$intCurrentPage}页)点击切换正序/倒序

    +

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

    -
    - - 上一页 - - 下一页 -
    + + {include file="public/allChapterPage" start="1"/} -
    - - 上一页 - - 下一页 -
    + {include file="public/allChapterPage" /} +
    {/if}
    -

    封面推荐

    +

    完结推荐

    - {foreach $arrRelateveNovel as $key=>$Novel } + {foreach $arrEndNovel as $key=>$Novel }
    {$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读

    {$Novel.n_name} + href='{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[n_name_pinyin]" /}'>{$Novel.n_name}

    作者:{$Novel.n_author}

    {$Novel.n_description}

    @@ -195,7 +178,6 @@
    -

    相邻小说

    @@ -205,16 +187,30 @@
    {volist name='arrRelateveNovel' id='Novel'} {$Novel.n_name}   + href='{site:nurl n_id="$Novel[n_id]" n_py="$Novel[n_name_pinyin]" /}'>{$Novel.n_name}   {/volist} - {volist name='arrNovel.n_forge_novel' id='ForgeNovel'} - {$ForgeNovel.n_forge_title}   + {volist name='arrNovel.n_forge_novel' id='ForgeNovel'} + {$ForgeNovel.n_forge_title}   {/volist}
    + {/block} {block name="customize"} diff --git a/code/app/home/view/default/Novel/getNovelRank.html b/code/app/home/view/default/Novel/getNovelRank.html deleted file mode 100644 index 459a474..0000000 --- a/code/app/home/view/default/Novel/getNovelRank.html +++ /dev/null @@ -1,129 +0,0 @@ -{extend name="baseH5" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} - -{block name="logo-html"} -

    - 狂雨小说/排行榜 -

    -{/block} - -{block name="main"} -
    - - -
    -
    -

    日点击榜

    -
    -
    -
      - {foreach $arrDayRankNovel as $key => $vo} - {if $key == 0} - {include file="Public/novelListH" /} - {/if} - {if $key >= 1} - {include file="Public/novelListRank" /} - {/if} - - {/foreach} -
    -
    -
    - -
    -
    -

    周点击榜

    -
    -
    -
      - {foreach $arrWeekRankNovel as $key => $vo} - {if $key == 0} - {include file="Public/novelListH" /} - {/if} - {if $key >= 1} - {include file="Public/novelListRank" /} - {/if} - - {/foreach} -
    -
    -
    - -
    -
    -

    月点击榜

    -
    -
    -
      - {foreach $arrMoonRankNovel as $key => $vo} - {if $key == 0} - {include file="Public/novelListH" /} - {/if} - {if $key >= 1} - {include file="Public/novelListRank" /} - {/if} - - {/foreach} -
    -
    -
    - -
    -
    -

    总点击榜

    -
    -
    -
      - {foreach $arrTotalRankNovel as $key => $vo} - {if $key == 0} - {include file="Public/novelListH" /} - {/if} - {if $key >= 1} - {include file="Public/novelListRank" /} - {/if} - {/foreach} -
    -
    -
    - -
    -
    -

    新书榜

    -
    -
    -
      - {foreach $arrNewsNovelRankNovel as $key => $vo} - {if $key == 0} - {include file="Public/novelListH" /} - {/if} - {if $key >= 1} - {include file="Public/novelListRank" /} - {/if} - {/foreach} -
    -
    -
    - -
    -
    -

    完结榜

    -
    -
    -
      - {foreach $arrEdnNovelRankNovel as $key => $vo} - {if $key == 0} - {include file="Public/novelListH" /} - {/if} - {if $key >= 1} - {include file="Public/novelListRank" /} - {/if} - {/foreach} -
    -
    -
    -
    -{/block} - -{block name="customize"} {/block} \ No newline at end of file diff --git a/code/app/home/view/default/Novel/getSearchNovel.html b/code/app/home/view/default/Novel/getSearchNovel.html index c85ccd0..5f941ac 100644 --- a/code/app/home/view/default/Novel/getSearchNovel.html +++ b/code/app/home/view/default/Novel/getSearchNovel.html @@ -1,72 +1,74 @@ {extend name="baseH5" /} -{block name='nav-active-class'}home{/block} -{block name="title"}{/block} -{block name="head-js"}{/block} +{block name="title"}{$strTitle??''}{/block} +{block name="keywords"}{$strKeywords??''}{/block} +{block name="description"}{$strDescription??''}{/block} -{block name="logo-html"} -

    - 狂雨小说 -

    -{/block} +{block name='nav-active-class'}home{/block} +{block name="body-class"}novel_so novel_search_page{/block} +{block name='head-name'}{$DomainModel->d_name}{/block} +{block name='head-href'}/{/block} {block name="main"} - -
    -