diff --git a/code/app/home/controller/Index.php b/code/app/home/controller/Index.php index fc524d4..c37f5aa 100644 --- a/code/app/home/controller/Index.php +++ b/code/app/home/controller/Index.php @@ -74,8 +74,10 @@ class Index extends BaseController // 推荐等级为9的连载的 随机15个小说 $arrRecommendSerializationNovel = $NovelModel->getHighLevelNovelOnCache($Request->DomainModel->d_domain, 13); + # TODO 没有数据展示 // echo "
";
         // var_dump($arrRecommendSerializationNovel);
+        // exit;
 
         // 推荐等级为9的完结的 随机12个小说
         $arrRecommendEndNovel = $NovelModel->getFinishedNovelOnCache($Request->DomainModel->d_domain, 12);
diff --git a/code/app/home/controller/Novel.php b/code/app/home/controller/Novel.php
index 4bb5641..33ad8fa 100644
--- a/code/app/home/controller/Novel.php
+++ b/code/app/home/controller/Novel.php
@@ -159,8 +159,12 @@ class Novel extends BaseController
             'strStatus' => $strStatus,
             'intPage' => $intPage,
             'intTotalPage' => $arrPage['pages'],
-            'arrCategory' => array_combine(array_values(CategoryModel::$arrCategoryPinYin), array_values(CategoryModel::$arrCategory)),
+            // TODO  返回所有分类了,应该只返回对应 性别的分类,暂时按下面的返回了,你看看要咋处理
+            // 'arrCategory' => array_combine(array_values(CategoryModel::$arrCategoryPinYin), array_values(CategoryModel::$arrCategory)),
+            'arrCategoryAll' => CategoryModel::$arrCategoryAll,
+
             'arrPaginator' => $arrPaginator,
+            
         ]);
 
         return View::fetch($strTemplate);
@@ -323,7 +327,7 @@ class Novel extends BaseController
      */
     public function getKanNovelInfo(Request $Request)
     {
-
+        // TODO 这个页面数据没有处理
         $intNId = $Request->param('n_id');
 
         $boolIsMobile = $Request->param('boolIsMobile');
@@ -336,16 +340,20 @@ class Novel extends BaseController
         // 分品拼音
         $arrNovel['category_pinyin'] = CategoryModel::getPinYinByZh($arrNovel['og_novel_category']);
 
+
         // 最后章节
         $ChapterModel = new ChapterModel;
         $arrLatestChapter = $ChapterModel->getLatestChapter($intNId);
 
+        $strFocus = '';
         // 要点
-        $strFocus =  strip_tags($arrLatestChapter['content']);
-        $intCount = mb_strlen($strFocus);
-        if ($intCount > 300) {
-            $intPos = mt_rand(0, $intCount - 300);
-            $strFocus = mb_substr($strFocus, $intPos, 300);
+        if ($arrLatestChapter) {
+            $strFocus =  strip_tags($arrLatestChapter['content']);
+            $intCount = mb_strlen($strFocus);
+            if ($intCount > 300) {
+                $intPos = mt_rand(0, $intCount - 300);
+                $strFocus = mb_substr($strFocus, $intPos, 300);
+            }
         }
 
         // 最近五个章节
@@ -364,7 +372,6 @@ class Novel extends BaseController
         $arrRelateveNovel = $NovelModel->getNovel(['n_id' => [
             '$in' => $arrRelateveNId,
         ]], 10);
-
         // echo '
';
         // var_dump($arrNovel);exit;
 
@@ -620,7 +627,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 = 10;
+        $intLimit = 100;
         $intLifeTime = 12 * 3600;
 
         if ($strOrder == 'zheng') {
@@ -638,29 +645,16 @@ class Novel extends BaseController
 
         $strBaseUrl = sprintf('/pc/xiaoshuo/%s-%s/mulu/%s/{page}', $arrNovel['og_novel_pin_yin'], $intNId, $strOrder);
         $arrPaginator = CusteomPage02::generate($intPage,  $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum);
-        // echo '
';
-
-        // print_r($arrPage);
-        // exit;
-        // 章节目录
-        $arrChapter = [
-            ['c_sort_num' => 1, 'name' => '第1章', 'created_at' => '作者1'],
-            ['c_sort_num' => 1, 'name' => '第2章', 'created_at' => '作者1'],
-            ['c_sort_num' => 1, 'name' => '第3章', 'created_at' => '作者1'],
-            ['c_sort_num' => 1, 'name' => '第4章', 'created_at' => '作者1'],
-            ['c_sort_num' => 1, 'name' => '第5章', 'created_at' => '作者1'],
-            ['c_sort_num' => 1, 'name' => '第6章', 'created_at' => '作者1'],
-
-        ];
-
+    
         View::assign([
             'arrNovel' => $arrNovel,
             'arrPage' => $arrPage,
-            'arrChapter' => $arrChapter,
+            'arrPaginator' => $arrPaginator,
             'intNovelId' => $intNovelId,
             'intPage' => $intPage,
             'strOrder' => $strOrder,
             'strPageCode' => 'chapters',
+            'intLimit' => $intLimit,
         ]);
         if ($boolIsMobile) {
             return View::fetch();
@@ -679,7 +673,7 @@ class Novel extends BaseController
     {
         $boolIsMobile = $Request->param('boolIsMobile');
 
-        $strKeywords = (string)$Request->get('q');
+        $strKeywords = (string)$Request->get('keyword');
         $intPage = (int)$Request->get('page', 1);
         $intLimit = 20;
 
@@ -705,27 +699,18 @@ class Novel extends BaseController
 
         $intButtomNum = 10;
 
-        $strBaseUrl = sprintf('/pc/search.html?q=%s&page={page}', $strKeywords);
+        $strBaseUrl = sprintf('/search.html?keyword=%s&page={page}', $strKeywords);
         $arrPaginator = CusteomPage02::generate($intPage,  $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum);
 
-        // 模拟数据
-        $arrSearchNovel = [
-            ['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'],
-        ];
-
         View::assign([
+            'arrPage' => $arrPage,
+            'arrPaginator' => $arrPaginator,
             'strKeywords' => $strKeywords,
             'intPage' => $intPage,
-            'arrSearchNovel' => $arrSearchNovel,
+            'intTotalPage' => $arrPage['pages'],
             'strPageCode' => 'search'
         ]);
+        // echo $strKeywords;exit;
         if ($boolIsMobile) {
             return View::fetch();
         } else {
diff --git a/code/app/home/view/kuangyu/Novel/getKanNovelInfo.html b/code/app/home/view/kuangyu/Novel/getKanNovelInfo.html
new file mode 100644
index 0000000..c56823d
--- /dev/null
+++ b/code/app/home/view/kuangyu/Novel/getKanNovelInfo.html
@@ -0,0 +1,152 @@
+{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"}
+
+ + + +
+
+
+
+ {$Novel->og_novel_book_name ?? ''}封面 + + 已完结 +
+
+

{$arrNovel['og_novel_book_name']}

+

+ 分类:{$arrNovel.og_novel_category} + 作者:{$arrNovel.og_novel_author} + + 阅读:{$arrNovelClicks.total} +

+
+
+
+ +
+
+
+

+ {$arrNovel.n_page_description} +

+
+
+
+
+ + +
+
+
+

最新要点

+
+
+
+

+ {$strFocus} +

+

相邻推荐: + {volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"} + {$ForgeNovel.n_forge_title} + {/volist} +

+
+
+ + +
+
+ + +
+
+

目录

+
+
+
    + {volist name="arrChapter" id="Chapter" key="key"} +
  • + {$Chapter.name} +
  • + {/volist} + +
+ +
+
+ +
+
+

同类作品

+
+
+
    + {foreach $arrRelateveNovel as $Novel} + {include file="Public/novelListS" /} + {/foreach} +
+
+
+
+ + + +{/block} + +{block name="customize"} + + +{/block} + +{block name="footer-js"} + +{/block} \ No newline at end of file diff --git a/code/app/home/view/kuangyu/Novel/getLibrary.html b/code/app/home/view/kuangyu/Novel/getLibrary.html index 8a3231b..9d7d5be 100644 --- a/code/app/home/view/kuangyu/Novel/getLibrary.html +++ b/code/app/home/view/kuangyu/Novel/getLibrary.html @@ -43,11 +43,17 @@
  • 全部
  • - {foreach $arrCategory as $key=>$vo } -
  • - {$vo} -
  • - {/foreach} + {eq name="strGender" value="nansheng-xiaoshuo"} + {foreach $arrCategoryAll.man as $key=>$vo } +
  • {$vo}
  • + {/foreach} + {else} + {foreach $arrCategoryAll.women as $key=>$vo } +
  • {$vo}
  • + {/foreach} + {/eq} + +
    diff --git a/code/app/home/view/kuangyu/Novel/getNovelInfo.html b/code/app/home/view/kuangyu/Novel/getNovelInfo.html index c56823d..3b20763 100644 --- a/code/app/home/view/kuangyu/Novel/getNovelInfo.html +++ b/code/app/home/view/kuangyu/Novel/getNovelInfo.html @@ -128,7 +128,16 @@
    diff --git a/code/app/home/view/kuangyu/Novel/getSearchNovel.html b/code/app/home/view/kuangyu/Novel/getSearchNovel.html index c85ccd0..5407b72 100644 --- a/code/app/home/view/kuangyu/Novel/getSearchNovel.html +++ b/code/app/home/view/kuangyu/Novel/getSearchNovel.html @@ -15,56 +15,41 @@
    {/block} diff --git a/code/app/home/view/kuangyu/Pc/Public/allChapterPage.html b/code/app/home/view/kuangyu/Pc/Public/allChapterPage.html new file mode 100644 index 0000000..148d487 --- /dev/null +++ b/code/app/home/view/kuangyu/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/kuangyu/Pc/getLibrary.html b/code/app/home/view/kuangyu/Pc/getLibrary.html index d4167d8..542d5b3 100644 --- a/code/app/home/view/kuangyu/Pc/getLibrary.html +++ b/code/app/home/view/kuangyu/Pc/getLibrary.html @@ -42,9 +42,16 @@
    • 全部
    • - {foreach $arrCategory as $key=>$vo } + {eq name="strGender" value="nansheng-xiaoshuo"} + {foreach $arrCategoryAll.man as $key=>$vo }
    • {$vo}
    • {/foreach} + {else} + {foreach $arrCategoryAll.women as $key=>$vo } +
    • {$vo}
    • + {/foreach} + {/eq} +
    diff --git a/code/app/home/view/kuangyu/Pc/getNovelChannel.html b/code/app/home/view/kuangyu/Pc/getNovelChannel.html index 6b5b831..74234f3 100644 --- a/code/app/home/view/kuangyu/Pc/getNovelChannel.html +++ b/code/app/home/view/kuangyu/Pc/getNovelChannel.html @@ -54,7 +54,6 @@ {volist name="arrRecommendSerializationNovel" id="Novel" key="key"} {include file="Pc/Public/endNovelList" /} {/volist} -
    diff --git a/code/app/home/view/kuangyu/Pc/getNovelChapterAll.html b/code/app/home/view/kuangyu/Pc/getNovelChapterAll.html index 16da508..1b71bf7 100644 --- a/code/app/home/view/kuangyu/Pc/getNovelChapterAll.html +++ b/code/app/home/view/kuangyu/Pc/getNovelChapterAll.html @@ -46,15 +46,10 @@
    章节列表
    -
    上一页下一页 -
    + + + {include file="Pc/Public/allChapterPage" /} +
      {foreach $arrPage.data as $Chapter} @@ -65,15 +60,8 @@
    -
    上一页下一页 -
    + + {include file="Pc/Public/allChapterPage" /}
    diff --git a/code/app/home/view/kuangyu/Pc/getNovelInfo.html b/code/app/home/view/kuangyu/Pc/getNovelInfo.html index ba29176..8ab3fbb 100644 --- a/code/app/home/view/kuangyu/Pc/getNovelInfo.html +++ b/code/app/home/view/kuangyu/Pc/getNovelInfo.html @@ -75,8 +75,10 @@
    + {if !empty($arrChapter)} 立即阅读 目录 + {/if}
    +
    -
    - +
    搜索“{$strKeywords}”相关结果共有 {$arrPage.total} 部小说
    +
    + {if empty($arrPage.data)} +

    没有相关数据

    + {else}
      - {foreach $arrSearchNovel as $key=>$Novel} -
    • - - 1秒1技能点,你说我凡阶天赋修炼慢? - -
      -

      - 11技能点,你说我凡阶天赋修炼慢? -

      -

      - 作者:青城老鬼 - 分类: - 状态:已完结 - 总字数:38.00万字+ -

      -

      - 标签: - -

      -

      最近更新:第190章 武破虚空,新的开始

      -

      深海中潜藏的巨兽掀起灭世海啸!山间凶兽朝着钢铁巨城露出凶猛的獠牙。 即将参加高考的武道学生徐天觉醒深红系统。却没想觉醒日被未婚妻强行退婚,面对众人诋毁,未婚妻的鄙视。 - 地阶天赋又如何,深红,给我加点! - 本站提示:各位书友要是觉得《1秒1技能点,你说我凡阶天赋修炼慢?》还不错的话请不要忘记向您QQ群和微博里的朋友推荐哦!

      -
      -
      - 更新时间:2025-03-20 23:57 - 立即阅读 -
      -
    • - {/foreach}
    + {foreach $arrPage.data as $key=>$Novel} + {include file="Pc/Public/shuKuNovelList" /} + {/foreach} + + {/if}
    +
      + {volist name="arrPaginator" id="vo" key="k"} + {switch $vo.label} + {case value="上一页"} + {if $intPage == 1} +
    • «
    • + {else} +
    • «
    • + {/if} + {/case} + {case value="下一页"} + {if $intPage >= $intTotalPage} +
    • »
    • + {else} +
    • »
    • + {/if} + {/case} + {case value="..."} +
    • ...
    • + {/case} + {default /} + {if preg_match('/^\d+$/', $vo.label)} +
    • + {$vo.label} +
    • + {/if} + {/switch} + {/volist} +
    diff --git a/code/app/home/view/kuangyu/Public/footer.html b/code/app/home/view/kuangyu/Public/footer.html index c5dc2da..99d1063 100644 --- a/code/app/home/view/kuangyu/Public/footer.html +++ b/code/app/home/view/kuangyu/Public/footer.html @@ -10,14 +10,14 @@ 友情连接: XML地图 网站地图 - seo关联词 - seo关联词 - seo关联词 - seo关联词 - seo关联词 - seo关联词 - seo关联词 - seo关联词 + kan小说 + kan小说 + kan小说 + kan小说 + kan小说 + kan小说 + kan小说 + kan小说
    diff --git a/code/app/home/view/kuangyu/basePc.html b/code/app/home/view/kuangyu/basePc.html index 863c233..9da533b 100644 --- a/code/app/home/view/kuangyu/basePc.html +++ b/code/app/home/view/kuangyu/basePc.html @@ -20,7 +20,7 @@

    - + 狂雨小说

    @@ -47,7 +47,7 @@