From b8de0788f1da5c1b48019000d4e0e662bdd24638 Mon Sep 17 00:00:00 2001 From: xuanchen <122383162@qq.com> Date: Tue, 12 Oct 2021 11:41:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/category/jianjie.blade.php | 19 +- resources/views/category/kxyj.blade.php | 512 +++++++++------------ resources/views/index/index.blade.php | 11 - resources/views/layouts/footer.blade.php | 24 +- resources/views/layouts/header.blade.php | 1 + 5 files changed, 255 insertions(+), 312 deletions(-) diff --git a/resources/views/category/jianjie.blade.php b/resources/views/category/jianjie.blade.php index dc64b68..299ff3d 100644 --- a/resources/views/category/jianjie.blade.php +++ b/resources/views/category/jianjie.blade.php @@ -198,9 +198,9 @@
{{ $advert->title }}
-{{--
--}} -{{-- 查看详情--}} -{{--
--}} + {{--
--}} + {{-- 查看详情--}} + {{--
--}} @@ -237,19 +237,6 @@ }); - $(document).ready(function () { - $('.Rightfixed-img-code').hover( - function () { - $('.Rightfixed-pop').css("display", "block"); - $('.Rightfixed-img').css("width", "300px"); - }, - function () { - $('.Rightfixed-pop').css("display", "none"); - $('.Rightfixed-img').css("width", "48px"); - } - ); - }); - // 图片放大 jQuery(document).ready(function ($) { $.LightBox({speed: 500}) diff --git a/resources/views/category/kxyj.blade.php b/resources/views/category/kxyj.blade.php index 00251a3..ff7fc3a 100644 --- a/resources/views/category/kxyj.blade.php +++ b/resources/views/category/kxyj.blade.php @@ -64,131 +64,78 @@
- -
-
- - @if (getArticlesBYCate(18,10)->isNotEmpty()) - @foreach (getArticlesBYCate(18,10) as $info) - @if($loop->iteration==1) -
-
-
- -
- {{ $info->title }} -
-
- {{ $info->description }} -
-
-
-
- @endif - @endforeach - @endif - - -
+ @if (getArticlesBYCate(18,10)->isNotEmpty()) + @foreach (getArticlesBYCate(18,10)->chunk(5) as $articles) +
- @if (getArticlesBYCate(18,10)->isNotEmpty()) - @foreach (getArticlesBYCate(18,10) as $info) - @if($loop->iteration>1 && $loop->iteration<6) -
-
- iteration==1) +
+
+
+ -
-
- {{ $info->title }} -
-
- {{ $info->description }} -
+
+ {{ $article->title }} +
+
+ {{ $article->description }}
- @endif - @endforeach - @endif -
-
-
-
- - -
-
- - @if (getArticlesBYCate(18,10)->isNotEmpty()) - @foreach (getArticlesBYCate(18,0) as $info) - @if($loop->iteration==6) -
-
-
- -
- {{ $info->title }} -
-
- {{ $info->description }} -
-
-
- @endif - @endforeach - @endif - - -
-
- @if (getArticlesBYCate(18,10)->isNotEmpty()) - @foreach (getArticlesBYCate(18,10) as $info) - @if($loop->iteration>6 && $loop->iteration<=10) -
-
- -
-
- {{ $info->title }} -
-
- {{ $info->description }} + @endif + @if($loop->iteration==2) +
+
+ @endif + + @if($loop->iteration>1) +
+
+ +
+
+ {{ $article->title }} +
+
+ {{ $article->description }} +
+
-
+ @endif + + @if($loop->last)
- @endif - @endforeach - @endif +
+ @endif + @endforeach
-
-
+ @endforeach + @endif
- +
+ - -
-
-
- - {{ getOneCategory(19,'title') }} + +
+
+
+ + {{ getOneCategory(19,'title') }} -
-
-
- @if(getCateChild(19)->isNotEmpty()) - @foreach(getCateChild(19) as $cate) -
-
-
- - {{ $cate->title }} - {{ $cate->alias }} -
-
- MORE+ -
-
-
- @endforeach - @endif
- - - -
-
-
- - {{ getOneCategory(26,'title') }} -
-
- -
-
-
-
- - -
-
-
-
概况
-
- {{ getOneCategory(26,'description') }} -
-
- 了解更多 -
-
-
-
- - -
-
动态
-
-
- @if (getArticlesBYCate(26,1)->isNotEmpty()) - @foreach (getArticlesBYCate(26,1) as $info) - @if($loop->iteration==1) -
-
- - -
-
- {{ $info->title }} -
-
- {{ $info->description }} -
-
- @endif - @endforeach - @endif - -
-
-
    - @if (getArticlesBYCate(26,7)->isNotEmpty()) - @foreach (getArticlesBYCate(26,7) as $info) -
  • -
    {{ $info->title }}
    -
    {{ $info->created_at->format('Y-m-d')}}
    -
  • - @endforeach - @endif -
-
-
-
-
- - - -
-
-
- - {{ getOneCategory(27,'title') }} -
-
- 查看更多  > -
-
-
- @if (getArticlesBYCate(27,4)->isNotEmpty()) - @foreach (getArticlesBYCate(27,4) as $info) -
-
-
- -
-
-
{{ $info->title }}
-
{{ $info->created_at->format('Y-m-d') }}
-
-
-
- @endforeach - @endif -
-
- - - -
-
-
- - {{ getOneCategory(28,'title') }} -
-
-
-
-
-
-
-
{{ getOneCategory(29,'title') }}
-
- 查看更多>> + @if(getCateChild(19)->isNotEmpty()) + @foreach(getCateChild(19) as $cate) +
+
+
+ + {{ $cate->title }} + {{ $cate->alias }} +
+
+ MORE+ +
-
-
- @if(getVideoByCate(29)) - - - @endif + @endforeach + @endif +
+
+ -
-
- {{ getVideoByCate(29,'title') }} -
+ +
+
+
+ + {{ getOneCategory(26,'title') }} +
+
+ +
+
+
+
+ + +
+
+
+
概况
+
+ {{ getOneCategory(26,'description') }} +
+
+ 了解更多
-
-
-
- {{ getOneCategory(30,'title') }} -
-
    +
- @if (getArticlesBYCate(30,2)->isNotEmpty()) - @foreach (getArticlesBYCate(30,2) as $info) -
  • -
    + +
    +
    动态
    +
    +
    + @if (getArticlesBYCate(26,1)->isNotEmpty()) + @foreach (getArticlesBYCate(26,1) as $info) + @if($loop->iteration==1) +
    +
    -
    {{ $info->title }}
    +
    + {{ $info->title }} +
    +
    + {{ $info->description }} +
    +
    + @endif + @endforeach + @endif + +
    +
    +
      + @if (getArticlesBYCate(26,7)->isNotEmpty()) + @foreach (getArticlesBYCate(26,7) as $info) +
    • +
      {{ $info->title }}
      +
      {{ $info->created_at->format('Y-m-d')}}
    • @endforeach @endif
    -
    - 查看更多> +
    +
    +
    +
    + + + +
    +
    +
    + + {{ getOneCategory(27,'title') }} +
    +
    + 查看更多  > +
    +
    +
    + @if (getArticlesBYCate(27,4)->isNotEmpty()) + @foreach (getArticlesBYCate(27,4) as $info) +
    +
    +
    + +
    +
    +
    {{ $info->title }}
    +
    {{ $info->created_at->format('Y-m-d') }}
    +
    +
    + @endforeach + @endif +
    +
    + + + +
    +
    +
    + + {{ getOneCategory(28,'title') }} +
    +
    +
    + +
    +
    +
    +
    +
    {{ getOneCategory(29,'title') }}
    +
    + 查看更多>> +
    +
    +
    +
    + @if(getVideoByCate(29)) + + + @endif + +
    +
    + {{ getVideoByCate(29,'title') }} +
    +
    +
    +
    +
    +
    +
    + {{ getOneCategory(30,'title') }} +
    +
      + + @if (getArticlesBYCate(30,2)->isNotEmpty()) + @foreach (getArticlesBYCate(30,2) as $info) +
    • +
      + + +
      +
      {{ $info->title }}
      +
    • + @endforeach + @endif +
    +
    + 查看更多>
  • +
    @endsection diff --git a/resources/views/index/index.blade.php b/resources/views/index/index.blade.php index 1e3149d..e180de6 100644 --- a/resources/views/index/index.blade.php +++ b/resources/views/index/index.blade.php @@ -401,17 +401,6 @@ @push('script') -
    + {{--
    --}} + {{-- --}} + {{--
    --}}
    @@ -53,3 +53,21 @@
    + +@push('script') + +@endpush diff --git a/resources/views/layouts/header.blade.php b/resources/views/layouts/header.blade.php index 835379a..ead8b7e 100644 --- a/resources/views/layouts/header.blade.php +++ b/resources/views/layouts/header.blade.php @@ -69,3 +69,4 @@
    +