From 4a1615a1ecd6401bdb978153fcd494496bbf8316 Mon Sep 17 00:00:00 2001 From: xuanchen <122383162@qq.com> Date: Mon, 6 Mar 2023 08:37:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E4=BB=BD=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/category/kjpt.blade.php | 47 +++++++++++-------------- resources/views/index/index.blade.php | 4 +-- resources/views/layouts/app.blade.php | 1 + 3 files changed, 23 insertions(+), 29 deletions(-) diff --git a/resources/views/category/kjpt.blade.php b/resources/views/category/kjpt.blade.php index 37bc2ad..16a5a8f 100644 --- a/resources/views/category/kjpt.blade.php +++ b/resources/views/category/kjpt.blade.php @@ -22,35 +22,28 @@
-
-
- @if (getArticlesBYCate(55,5)->isNotEmpty()) - @foreach (getArticlesBYCate(55,5) as $info) - @if($loop->iteration<5) -
-
-
- - -
-
- {{ $info->title }} -
-
-
- @endif - @endforeach - @endif -
-
- @if (getArticlesBYCate(55,5)->isNotEmpty()) - @foreach (getArticlesBYCate(55,5) as $info) + @if (getArticlesBYCate(55,6)->isNotEmpty()) + @foreach (getArticlesBYCate(55,6) as $info) +
+
+
+ + +
+
+ {{ $info->title }} +
+
+
+ @endforeach + @endif +
@@ -60,7 +53,7 @@
@endif @endforeach - @endif + @endif --> diff --git a/resources/views/index/index.blade.php b/resources/views/index/index.blade.php index fd7549c..2e2a9ec 100644 --- a/resources/views/index/index.blade.php +++ b/resources/views/index/index.blade.php @@ -110,7 +110,7 @@ -
+
@@ -240,7 +240,7 @@
-
+