From 41ed17d0fec9e2421310806cbe5751586425035f Mon Sep 17 00:00:00 2001 From: xuanchen <122383162@qq.com> Date: Tue, 11 Jan 2022 10:51:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/category/djwh.blade.php | 39 +++++++++++++++ resources/views/category/videos.blade.php | 59 ++++++++++++++++++++--- resources/views/category/ysxw.blade.php | 46 ++++++++++++++++++ resources/views/layouts/footer.blade.php | 6 +-- 4 files changed, 140 insertions(+), 10 deletions(-) create mode 100644 resources/views/category/ysxw.blade.php diff --git a/resources/views/category/djwh.blade.php b/resources/views/category/djwh.blade.php index 31913ca..ccb21f0 100644 --- a/resources/views/category/djwh.blade.php +++ b/resources/views/category/djwh.blade.php @@ -14,6 +14,45 @@
+ +
+
+ {{ getOneCategory(79,'title') }} +
更多>>
+
+ +
+ @if (getHasCoverArticlesByCate(79,1)->isNotEmpty()) + @foreach (getHasCoverArticlesByCate(79,1) as $info) +
+ + +
+ {{ $info->title }} +
+
+ @endforeach + @endif +
    + @if (getArticlesBYCate(79,2)->isNotEmpty()) + @foreach (getArticlesBYCate(79,2) as $info) +
  • + +
    +
    +
    + {{ $info->title }} +
    +
    +
    +
  • + @endforeach + @endif +
+
+
+ +
diff --git a/resources/views/category/videos.blade.php b/resources/views/category/videos.blade.php index 2d838c7..ff9c848 100644 --- a/resources/views/category/videos.blade.php +++ b/resources/views/category/videos.blade.php @@ -2,6 +2,10 @@ @section('title', $parent->title) +@section('css') + +@endsection + @section('content') @include('category.navigation') @@ -11,11 +15,49 @@
@include('category.left') + -
-
-
党建风采
-
+
+
党建风采
+
+ + @if ($articles->isNotEmpty()) +
+
+
+ @foreach ($articles as $article) +
+
+
+ + +
+
+

{{ $article->title }}

+
+
+
+ @endforeach +
+
+
+ @if ($articles->isNotEmpty()) + {{ $articles->links('layouts.pagination') }} + @endif +
+
+ @else +
+
+ + 抱歉,暂无内容 +
+
+ @endif + + +
@endsection + +@push('script') + +@endpush diff --git a/resources/views/category/ysxw.blade.php b/resources/views/category/ysxw.blade.php new file mode 100644 index 0000000..26c1a12 --- /dev/null +++ b/resources/views/category/ysxw.blade.php @@ -0,0 +1,46 @@ +@extends('layouts.app') + +@section('title', '院所新闻') + +@section('content') + + + @include('category.navigation') + + +
+
+ + @include('category.left') + + @if ($articles->isNotEmpty()) +
+
    + @foreach ($articles as $article) +
  • +
    +
    {{ $article->created_at->format('Y-m-d') }}
    {{ $article->title }} +
    +
    + {{ $article->description }} +
    +
  • + @endforeach +
+
+ @if ($articles->isNotEmpty()) + {{ $articles->links('layouts.pagination') }} + @endif +
+
+ @else +
+
+ + 抱歉,暂无内容 +
+
+ @endif +
+
+@endsection diff --git a/resources/views/layouts/footer.blade.php b/resources/views/layouts/footer.blade.php index 6abd853..e589144 100644 --- a/resources/views/layouts/footer.blade.php +++ b/resources/views/layouts/footer.blade.php @@ -30,12 +30,12 @@ 地址:{{ config('address') }}