summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2020-03-30 14:48:26 +0800
committerBigCoke233 <hi@guhub.cn>2020-03-30 14:48:26 +0800
commit4891503edbfdca58d6766f172cdafa0750c0d3b7 (patch)
treeb60a8b254b527acc98049e41903b4fae28b37c4e
parent8361d160f621d44c335fde3dc49bc609c387b206 (diff)
🐈 Perf: 优化追番页面
- 在不满一页的情况下隐藏页面导航 - 日落模式下追番页面的遮罩颜色
-rw-r--r--assets/css/main/themes.css4
-rwxr-xr-xbangumi.php5
2 files changed, 6 insertions, 3 deletions
diff --git a/assets/css/main/themes.css b/assets/css/main/themes.css
index affe752..51945b6 100644
--- a/assets/css/main/themes.css
+++ b/assets/css/main/themes.css
@@ -363,7 +363,8 @@
}
.body-sepia .search,
.body-sepia .login,
-.body-sepia .mobile-menu {
+.body-sepia .mobile-menu,
+.body-sepia .bangumi-des {
background-color: rgba(248,241,228,0.98);
}
.body-sepia .search-form input {
@@ -399,3 +400,4 @@
.body-sepia .comment-content.bubble::before {
border-right-color: rgb(250,230,220)
}
+.body-sepia \ No newline at end of file
diff --git a/bangumi.php b/bangumi.php
index 437b687..689d2b7 100755
--- a/bangumi.php
+++ b/bangumi.php
@@ -146,7 +146,7 @@ if ($_GET['dbg'] == 'rawlist') {
else: ?>
<div style="margin-top:-30px;text-align:center;width:100%">
<h2><?php echo '追番数据获取失败'; ?></h2>
- <p><?php echo '请检查追番页面配置,若您不知道如何配置,请查阅'; ?><a href="https://www.notion.so/eltrac/c7c631e21b3345caa2a09bd2fb5dd4b2#f736ad8b1eb44cbfaca424efca3c76f0"><?php echo '说明文档'; ?></a></p>
+ <p><?php echo '请检查追番页面配置,以及是否安装 CURL 拓展,若您不知道如何配置,请查阅'; ?><a href="https://www.notion.so/eltrac/c7c631e21b3345caa2a09bd2fb5dd4b2#f736ad8b1eb44cbfaca424efca3c76f0"><?php echo '说明文档'; ?></a></p>
</div>
<?php endif; ?>
</div>
@@ -154,6 +154,7 @@ if ($_GET['dbg'] == 'rawlist') {
<br>
</div>
</div>
+ <?php if(!$error && $bgmdataraw['data']['total']>16): ?>
<div class="post-pagenav">
<?php if ($page != 1): ?><a class="post-pagenav-left" href="?page=<?php echo $page - 1; ?>"><i
class="iconfont icon-chevron-left"></i></a> <?php endif; ?>
@@ -162,7 +163,7 @@ if ($_GET['dbg'] == 'rawlist') {
class="iconfont icon-chevron-right"></i></a>
<?php endif; ?>
</div>
- <br>
+ <?php endif;?>
<?php $this->need('includes/comments.php');
?>
</main>