debug
This commit is contained in:
@@ -22,7 +22,7 @@ $arrRoutes = [
|
|||||||
// H5/PC 端前缀
|
// H5/PC 端前缀
|
||||||
'prefixes' => [
|
'prefixes' => [
|
||||||
'pc' => ['/pc', '/web', '/desktop', '/index', '/shouye', '/zhuomian'],
|
'pc' => ['/pc', '/web', '/desktop', '/index', '/shouye', '/zhuomian'],
|
||||||
'h5' => '',
|
'h5' => ['','/nindex'],
|
||||||
],
|
],
|
||||||
|
|
||||||
// 通用路径别名
|
// 通用路径别名
|
||||||
@@ -191,6 +191,8 @@ $arrRoutes = [
|
|||||||
'history' => ['/history', '/reading-history', '/read-record', '/lishi', '/yuedu-lishi', '/browse-past'],
|
'history' => ['/history', '/reading-history', '/read-record', '/lishi', '/yuedu-lishi', '/browse-past'],
|
||||||
// 首页
|
// 首页
|
||||||
'index' => ['/'],
|
'index' => ['/'],
|
||||||
|
// 首页 - 如果info_id 》 0
|
||||||
|
'nindex' => ['/nindex'],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
@@ -392,6 +394,17 @@ foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'nindex':
|
||||||
|
// 首页
|
||||||
|
$strView = 'pc/index.html';
|
||||||
|
if ($platform == 'h5') {
|
||||||
|
$strView = 'index/index.html';
|
||||||
|
}
|
||||||
|
Route::get($strRoute, function () use ($strView) {
|
||||||
|
return view($strView);
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,12 @@ $Novel.n_id{extend name="baseH5" /}
|
|||||||
|
|
||||||
{block name="head"}
|
{block name="head"}
|
||||||
|
|
||||||
|
{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="0" /}
|
||||||
|
{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" /}
|
{site:grm page_code="h5_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,12 @@
|
|||||||
|
|
||||||
{block name="head"}
|
{block name="head"}
|
||||||
|
|
||||||
|
{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="0" /}
|
||||||
|
{else}
|
||||||
|
{novel:info n_id="$DomainModel->info_id" n_key="arrNovel" n_forge_id="0" /}
|
||||||
|
{/if}
|
||||||
|
|
||||||
{site:grm page_code="pc_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
|
{site:grm page_code="pc_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
|
||||||
<!-- 社交媒体标签 -->
|
<!-- 社交媒体标签 -->
|
||||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
||||||
|
|||||||
@@ -31,9 +31,13 @@
|
|||||||
|
|
||||||
<div class="nav">
|
<div class="nav">
|
||||||
<ul>
|
<ul>
|
||||||
<!-- <li><a href="/">首 页</a></li>
|
{if $DomainModel->info_id > 0}
|
||||||
<li><a href="/nindex">小说首页</a></li> -->
|
|
||||||
<li><a href="/">首 页</a></li>
|
<li><a href="/">首 页</a></li>
|
||||||
|
<li><a href="/nindex/">小说首页</a></li>
|
||||||
|
{else}
|
||||||
|
<li><a href="/">首 页</a></li>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<li><a href="{$strCategoryIndexUrlTemp}">小说分类</a></li>
|
<li><a href="{$strCategoryIndexUrlTemp}">小说分类</a></li>
|
||||||
<li><a href="{$strHistoryUrlTemp}">阅读记录</a></li>
|
<li><a href="{$strHistoryUrlTemp}">阅读记录</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -57,7 +61,7 @@
|
|||||||
<div class="rec-focus" style="font-size:12px;">
|
<div class="rec-focus" style="font-size:12px;">
|
||||||
{site:forgelist count="30" d_key="d_key" d_val="ForgeNovel" cache_life="86400"}
|
{site:forgelist count="30" d_key="d_key" d_val="ForgeNovel" cache_life="86400"}
|
||||||
<a
|
<a
|
||||||
href='{$strPcPath}{site:nnurl n_id="$ForgeNovel.n_id" n_py="$ForgeNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>
|
href='{site:nnurl n_id="$ForgeNovel.n_id" n_py="$ForgeNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>
|
||||||
{$ForgeNovel.n_forge_title}
|
{$ForgeNovel.n_forge_title}
|
||||||
</a>
|
</a>
|
||||||
{/site:forgelist}
|
{/site:forgelist}
|
||||||
@@ -70,8 +74,13 @@
|
|||||||
<p style="font-size: 12px;text-align: center;"> </p>
|
<p style="font-size: 12px;text-align: center;"> </p>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/">网站首页</a></li>
|
{if $DomainModel->info_id > 0}
|
||||||
<li><a href="{$strCategoryIndexUrlTemp}">小说分类</a></li>
|
<li><a href="/">首 页</a></li>
|
||||||
|
<li><a href="/nindex/">小说首页</a></li>
|
||||||
|
{else}
|
||||||
|
<li><a href="/">首 页</a></li>
|
||||||
|
{/if}
|
||||||
|
<li><a href="{$strCategoryIndexUrlTemp}">分类</a></li>
|
||||||
<li><a href="/sitemap_index.xml">XML地图</a></li>
|
<li><a href="/sitemap_index.xml">XML地图</a></li>
|
||||||
<li><a href="{$strHistoryUrlTemp}">阅读记录</a></li>
|
<li><a href="{$strHistoryUrlTemp}">阅读记录</a></li>
|
||||||
|
|
||||||
|
|||||||
@@ -45,10 +45,15 @@
|
|||||||
class="btn-tosearch" form="novel_search" value="submit">搜索</button></form>
|
class="btn-tosearch" form="novel_search" value="submit">搜索</button></form>
|
||||||
</div>
|
</div>
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
|
{if $DomainModel->info_id > 0}
|
||||||
|
<li><a href="{$strPcPath}/">首 页</a></li>
|
||||||
|
<li><a href="{$strPcPath}/nindex/">小说首页</a></li>
|
||||||
|
{else}
|
||||||
|
<li><a href="{$strPcPath}/">首 页</a></li>
|
||||||
|
{/if}
|
||||||
<!-- <li><a href="/">首 页</a></li>
|
<!-- <li><a href="/">首 页</a></li>
|
||||||
<li><a href="/nindex">小说首页</a></li> -->
|
<li><a href="/nindex">小说首页</a></li> -->
|
||||||
<li><a href="{$strPcPath}/">首 页</a></li>
|
<!-- <li><a href="{$strPcPath}/">首 页</a></li> -->
|
||||||
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
|
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
|
||||||
<li><a href='{$strPcPath}{site:nflurl category="$strCategoryPinyin" status="all" order="all" page="1"/}'>{$strCategoryName}</a></li>
|
<li><a href='{$strPcPath}{site:nflurl category="$strCategoryPinyin" status="all" order="all" page="1"/}'>{$strCategoryName}</a></li>
|
||||||
{/novel:category}
|
{/novel:category}
|
||||||
|
|||||||
@@ -63,9 +63,20 @@
|
|||||||
<div class="menu-mask"></div>
|
<div class="menu-mask"></div>
|
||||||
<div class="menu-panel">
|
<div class="menu-panel">
|
||||||
<div class="menu-list">
|
<div class="menu-list">
|
||||||
|
{if $DomainModel->info_id > 0}
|
||||||
<a href="/">
|
<a href="/">
|
||||||
<span>首页</span>
|
<span>首页</span>
|
||||||
</a>
|
</a>
|
||||||
|
<a href="/nindex/">
|
||||||
|
<span>小说首页</span>
|
||||||
|
</a>
|
||||||
|
{else}
|
||||||
|
<a href="/">
|
||||||
|
<span>首页</span>
|
||||||
|
</a>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
|
||||||
<a href="{$strNanUrlTemp}">
|
<a href="{$strNanUrlTemp}">
|
||||||
<span>男生</span>
|
<span>男生</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -32,9 +32,19 @@
|
|||||||
<div class="headWrap">
|
<div class="headWrap">
|
||||||
{block name="logo-html"}{/block}
|
{block name="logo-html"}{/block}
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
|
{if $DomainModel->info_id > 0}
|
||||||
|
<li class=' {if $strPageCode == "info"}on{/if} '>
|
||||||
|
<a href="{$strPcPath}/" target="_self" title="首页">首页</a>
|
||||||
|
</li>
|
||||||
|
<li class=' {if $strPageCode == "home"}on{/if} '>
|
||||||
|
<a href="{$strPcPath}/nindex/" target="_self" title="首页">小说首页</a>
|
||||||
|
</li>
|
||||||
|
{else}
|
||||||
<li class=' {if $strPageCode == "home"}on{/if} '>
|
<li class=' {if $strPageCode == "home"}on{/if} '>
|
||||||
<a href="{$strPcPath}/" target="_self" title="首页">首页</a>
|
<a href="{$strPcPath}/" target="_self" title="首页">首页</a>
|
||||||
</li>
|
</li>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<li class=' {if $strPageCode == "man"}on{/if} '>
|
<li class=' {if $strPageCode == "man"}on{/if} '>
|
||||||
<a href="{$strPcPath}{$strNanUrlTemp}" target="_self" title="男生">男生</a>
|
<a href="{$strPcPath}{$strNanUrlTemp}" target="_self" title="男生">男生</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -6,7 +6,11 @@
|
|||||||
|
|
||||||
{block name="head"}
|
{block name="head"}
|
||||||
|
|
||||||
|
{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="0" /}
|
||||||
|
{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" /}
|
{site:grm page_code="h5_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,11 @@
|
|||||||
|
|
||||||
{block name="head"}
|
{block name="head"}
|
||||||
|
|
||||||
|
{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="0" /}
|
||||||
|
{else}
|
||||||
|
{novel:info n_id="$DomainModel->info_id" n_key="arrNovel" n_forge_id="0" /}
|
||||||
|
{/if}
|
||||||
{site:grm page_code="pc_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
|
{site:grm page_code="pc_novel_info" diff="$arrNovel.n_id" num="120" g_key="arrGrm" /}
|
||||||
<!-- 社交媒体标签 -->
|
<!-- 社交媒体标签 -->
|
||||||
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
||||||
@@ -78,6 +82,10 @@
|
|||||||
</h2>
|
</h2>
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
|
{block name="strPageCode"}
|
||||||
|
<?php $strPageCode = 'info'; ?>
|
||||||
|
{/block}
|
||||||
|
|
||||||
{block name="main"}
|
{block name="main"}
|
||||||
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
|
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="links">
|
<div class="links">
|
||||||
|
{if $DomainModel->info_id > 0}
|
||||||
<a href="/">首页</a>
|
<a href="/">首页</a>
|
||||||
|
<a href="/nindex/">小说首页
|
||||||
|
</a>
|
||||||
|
{else}
|
||||||
|
<a href="/">首页</a>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<a href="{$strNanUrlTemp}">男生</a>
|
<a href="{$strNanUrlTemp}">男生</a>
|
||||||
<a href="{$strNvUrlTemp}">女生</a>
|
<a href="{$strNvUrlTemp}">女生</a>
|
||||||
<a href="{$strCategoryIndexUrlTemp}">书库</a>
|
<a href="{$strCategoryIndexUrlTemp}">书库</a>
|
||||||
|
|||||||
@@ -187,13 +187,13 @@ class SiteContext
|
|||||||
public function getHomeView(string $strPlatform): string
|
public function getHomeView(string $strPlatform): string
|
||||||
{
|
{
|
||||||
if ($strPlatform == 'h5') {
|
if ($strPlatform == 'h5') {
|
||||||
if ($this->DomainModel->n_id > 0) {
|
if ($this->DomainModel->info_id > 0) {
|
||||||
$strView = 'novel/getNovelInfo.html';
|
$strView = 'novel/getNovelInfo.html';
|
||||||
} else {
|
} else {
|
||||||
$strView = 'index/index.html';
|
$strView = 'index/index.html';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($this->DomainModel->n_id > 0) {
|
if ($this->DomainModel->info_id > 0) {
|
||||||
$strView = 'pc/getNovelInfo.html';
|
$strView = 'pc/getNovelInfo.html';
|
||||||
} else {
|
} else {
|
||||||
$strView = 'pc/index.html';
|
$strView = 'pc/index.html';
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ s{background: url(../images/iconC.png) no-repeat;}
|
|||||||
/*导航 */
|
/*导航 */
|
||||||
.headWrap .nav{float: left; margin: 24px 0 0 20px;}
|
.headWrap .nav{float: left; margin: 24px 0 0 20px;}
|
||||||
.headWrap .nav li{float: left; margin: 0 2px;}
|
.headWrap .nav li{float: left; margin: 0 2px;}
|
||||||
.headWrap .nav li a{width: 55px; height: 32px; line-height: 32px; text-align: center; font-size: 16px; color: #6a6a6a; border-radius: 4px;}
|
.headWrap .nav li a{ width: auto;
|
||||||
|
padding: 0 0.5rem; height: 32px; line-height: 32px; text-align: center; font-size: 16px; color: #6a6a6a; border-radius: 4px;}
|
||||||
.headWrap .nav li a:hover{color: #f26552;}
|
.headWrap .nav li a:hover{color: #f26552;}
|
||||||
.headWrap .nav .on a{background: #f26552; color: #fff;}
|
.headWrap .nav .on a{background: #f26552; color: #fff;}
|
||||||
.headWrap .nav .on a:hover{color: #fff; }
|
.headWrap .nav .on a:hover{color: #fff; }
|
||||||
|
|||||||
@@ -285,8 +285,8 @@ aria {
|
|||||||
-ms-flex: 1;
|
-ms-flex: 1;
|
||||||
-webkit-flex: 1;
|
-webkit-flex: 1;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: .5rem 0;
|
padding: .4rem 0;
|
||||||
font-size: 1rem;
|
font-size: 0.8rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #888888;
|
color: #888888;
|
||||||
}
|
}
|
||||||
@@ -2145,7 +2145,7 @@ aria {
|
|||||||
.menu-list a {
|
.menu-list a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0.3125rem 0.625rem;
|
padding: 0.3125rem 0.625rem;
|
||||||
width: 2.75rem;
|
width: auto;
|
||||||
height: 1.75rem;
|
height: 1.75rem;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user