This commit is contained in:
make
2025-04-08 21:33:55 +08:00
parent 114b95ed1f
commit 211e4b3851
5 changed files with 9 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
<li>
{$arrGRM[$key+[start]]|raw}
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel->og_novel_book_name ?? ''}" class="book_cov">
<img class="lazyload_book_cover lazyload-img"
src="/static/img/default.jpg" data-src="{$Novel->n_cover_path ?? ''}"

View File

@@ -34,7 +34,7 @@
<ul id="mod_index_lb_nv_pic">
{volist name="arrRecommendSerializationNovel" id="Novel" key="key"}
{if $key < 6}
{site:grm domain="$DomainModel->d_domain" code="kuangyu-pc-index" line="37" diff="$key" start="1" end="1" index="$key+10" type="2" /}
{$arrGRM[$key]|raw}
{include file="Pc/Public/swiperListImg" /}
{/if}
{/volist}
@@ -51,6 +51,7 @@
{volist name="arrRecommendSerializationNovel" id="Novel" key="key"}
{if $key == 1}
<h3>
{$arrGRM[1]|raw}
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}'
title="{$Novel.og_novel_book_name ?? ''}"
class="zdz">
@@ -65,11 +66,13 @@
<div class="md">
{volist name="arrRecommendSerializationNovel" id="Novel" key="key"}
{if $key > 5 && $key < 10}
{$arrGRM[$key+5]|raw}
{include file="Pc/Public/hostListImg" /}
{/if}
{/volist}
{volist name="arrRecommendSerializationNovel" id="Novel" key="key"}
{if $key > 9 }
{$arrGRM[$key+9]|raw}
{include file="Pc/Public/hostListText" /}
{/if}
{/volist}
@@ -85,10 +88,8 @@
</div>
<ul class="f2_list" mod="hot_tj">
{volist name="arrRecommendEndNovel" id="Novel" key="key"}
{include file="Pc/Public/endNovelList" /}
{include file="Pc/Public/endNovelList" start="13" /}
{/volist}
</ul>
</div>

View File

@@ -28,7 +28,6 @@
</head>
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">
{site:grm domain="$DomainModel->d_domain" code="kuangyu-index" line="31" diff="0" start="10" end="30" type="2" /}
<div class="header">
{block name="logo-html"}{/block}
@@ -119,7 +118,6 @@
<!-- 站点统计 -->
{$DomainModel->d_statis|raw}
{site:grm domain="$DomainModel->d_domain" code="kuangyu-index" line="122" diff="0" start="10" end="30" type="2" /}
</body>
</html>

View File

@@ -24,7 +24,6 @@
</head>
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">
{site:grm domain="$DomainModel->d_domain" code="kuangyu-pc-index" line="27" diff="0" start="10" end="30" index="1" type="2" /}
<!--公共头部 开始-->
<div class="header">
<div class="headWrap">
@@ -94,7 +93,6 @@
{$DomainModel->d_statis|raw}
{site:grm domain="$DomainModel->d_domain" code="kuangyu-pc-index" line="27" diff="0" start="10" end="30" index="1" type="2" /}
</body>

View File

@@ -214,7 +214,8 @@ class GanRaoMaModel extends MongoModel
$arrGrmCode = [];
while ($intNum-- > 0) {
$arrGrmCode[] = self::generateRandomCustomizeHtml(mt_rand(1, 3), mt_rand(4, 10));
// $arrGrmCode[] = self::generateRandomCustomizeHtml(mt_rand(1, 3), mt_rand(3, 6));
$arrGrmCode[] = self::generateRandomCustomizeHtml(1, 1);
}
$arrData = $arrFilter;