二次改版
This commit is contained in:
@@ -4,294 +4,305 @@
|
||||
|
||||
@section('content')
|
||||
|
||||
<!-- 第一模板 -->
|
||||
<div class="idxOne ce-morgin-tb">
|
||||
<div class="contant idxOneCont">
|
||||
<div class="contant-left">
|
||||
<div class="idxTitle">
|
||||
<div class="idxTitle-name">
|
||||
{{ getOneCategory(7,'title') }}
|
||||
<span> {{ getOneCategory(7,'description') }}</span>
|
||||
<!-- 公告 -->
|
||||
<div class="notice">
|
||||
<div class="container">
|
||||
<div class="col-md-12">
|
||||
<div class="swiper-container notice-container">
|
||||
<div class="notice-title">
|
||||
<img src="{{ asset('assets/index/images/notice.png') }}"/>
|
||||
</div>
|
||||
<div class="idxTitle-more" data-href="{{ getOneCategory(7,'link') }}">
|
||||
查看更多<img src="/assets/index/images/idxRow.png">
|
||||
</div>
|
||||
</div>
|
||||
<div class="oneCont-top">
|
||||
@if (getArticlesBYCate(7,5)->isNotEmpty())
|
||||
<div class="ce-img oneCont-top-img">
|
||||
<span style="background-image: url({{ getArticlesBYCate(7,5)->first()->cover_path }});"></span>
|
||||
</div>
|
||||
<div class="oneCont-top-cont" data-href="{{ getArticlesBYCate(7,5)->first()->link }}">
|
||||
<div class="ce-nowrap oneCont-top-title">
|
||||
{{ getArticlesBYCate(7,5)->first()->title }}
|
||||
</div>
|
||||
<div class="ce-nowrap-multi oneCont-top-text">
|
||||
{{ getArticlesBYCate(7,5)->first()->description }}
|
||||
</div>
|
||||
<div class="oneCont-top-time">
|
||||
<span>{{ getArticlesBYCate(7,5)->first()->created_at->format('Y-m-d') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="oneCont-ul">
|
||||
@foreach (getArticlesBYCate(7,5) as $article)
|
||||
@if ($loop->iteration>1)
|
||||
<li data-href="{{ $article->link }}">
|
||||
<p class="ce-nowrap">{{ $article->title }}</p>
|
||||
<span>{{ $article->created_at->format('Y-m-d') }}</span>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="contant-right">
|
||||
<div class="idxTitle">
|
||||
<div class="idxTitle-name">
|
||||
{{ getOneCategory(6,'title') }}
|
||||
</div>
|
||||
<div class="idxTitle-more" data-href="{{ getOneCategory(6,'link') }}">
|
||||
查看更多<img src="/assets/index/images/idxRow.png">
|
||||
</div>
|
||||
</div>
|
||||
<ul class="contant-right-list">
|
||||
@if (getArticlesBYCate(6,5)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(6,5) as $article)
|
||||
<li data-href="{{ $article->link }}">
|
||||
<p class="ce-nowrap">{{ $article->title }}</p>
|
||||
<span>{{ $article->created_at->format('Y-m-d') }}</span>
|
||||
</li>
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 第一模板 -->
|
||||
|
||||
<!-- 通图 轮播图 start -->
|
||||
<div class="tong_banner">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="swiper-container tong_banner1 contant">
|
||||
<div class="swiper-wrapper">
|
||||
<div class=" idx_banner swiper-slide">
|
||||
<img src="/assets/index/images/banner_1.png" alt="节约能源图片">
|
||||
</div>
|
||||
<div class=" idx_banner swiper-slide">
|
||||
<img src="/assets/index/images/banner_2.png" alt="节约能源图片">
|
||||
</div>
|
||||
</div>
|
||||
<div class="swiper-pagination swiper-pagination-dian"></div>
|
||||
</div>
|
||||
<!-- 通图 轮播图 end -->
|
||||
|
||||
|
||||
<!-- 第二模板 -->
|
||||
@if (getArticlesBYCate(24,4)->isNotEmpty())
|
||||
|
||||
<div class="idxTwo ce-morgin-tb">
|
||||
<div class="contant">
|
||||
<div class="idxTitle">
|
||||
<div class="idxTitle-name">
|
||||
{{ getOneCategory(24,'title') }}<span> {{ getOneCategory(24,'description') }}</span>
|
||||
</div>
|
||||
<div class="idxTitle-more" data-href="{{ getOneCategory(24,'link') }}">
|
||||
查看更多<img src="/assets/index/images/idxRow.png">
|
||||
</div>
|
||||
</div>
|
||||
<ul class="newTwo-list">
|
||||
@foreach (getArticlesAndCoverBYCate(24,6) as $article)
|
||||
<li data-href="{{ $article->link }}">
|
||||
<div class="ce-img newTwo-list-img">
|
||||
<span style="background-image: url({{ $article->cover_path }});"></span>
|
||||
</div>
|
||||
<div class="newTwo-list-cont">
|
||||
<div class="ce-nowrap newTwo-list-title">{{ $article->title }}</div>
|
||||
<div class="ce-nowrap newTwo-list-text">{{ $article->created_at->format('Y-m-d') }}</div>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- end 第二模板 -->
|
||||
|
||||
<!-- 通图 start -->
|
||||
<div class="contant banner_3">
|
||||
<img src="/assets/index/images/banner_3.png" alt="节约能源图片">
|
||||
</div>
|
||||
<!-- 通图 end -->
|
||||
|
||||
|
||||
<!-- 第三模板 -->
|
||||
<div class="idxThree">
|
||||
<div class="contant">
|
||||
<div class="threeCont">
|
||||
<div class="idxThree-title">
|
||||
<div class="idxThree-title-name">
|
||||
<div class="idxThree-title-icon">
|
||||
<img src="/assets/index/images/title_icon_00.png">
|
||||
{{ getOneCategory(20,'title') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="idxThree-title-more" data-href="{{ getOneCategory(20,'link') }}">
|
||||
更多 +
|
||||
</div>
|
||||
</div>
|
||||
@if (getArticlesBYCate(20,5)->isNotEmpty())
|
||||
<div class="threeCont-top" data-href="{{ getArticlesBYCate(20,5)->first()->link }}">
|
||||
<div class="ce-img threeCont-top-img">
|
||||
<span style="background-image: url({{ getArticlesBYCate(20,5)->first()->cover_path }});"></span>
|
||||
</div>
|
||||
<div class="threeCont-top-cont">
|
||||
<div class="ce-nowrap threeCont-top-title">{{ getArticlesBYCate(20,5)->first()->title }}</div>
|
||||
<div class="ce-nowrap-multi threeCont-top-text">
|
||||
{{ getArticlesBYCate(20,5)->first()->description }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<ul class="threeCont-list">
|
||||
@if (getArticlesBYCate(20,5)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(20,5) as $article)
|
||||
@if ($loop->iteration>1)
|
||||
<li data-href="{{ $article->link }}">
|
||||
<p>{{ $article->title }}</p>
|
||||
<span>{{ $article->created_at->format('Y-m-d') }}</span>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="threeCont">
|
||||
<div class="idxThree-title">
|
||||
<div class="idxThree-title-name">
|
||||
<div class="idxThree-title-icon">
|
||||
<img src="/assets/index/images/title_icon_01.png">
|
||||
{{ getOneCategory(21,'title') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="idxThree-title-more" data-href="{{ getOneCategory(21,'link') }}">
|
||||
更多 +
|
||||
</div>
|
||||
</div>
|
||||
@if (getArticlesBYCate(21,5)->isNotEmpty())
|
||||
<div class="threeCont-top" data-href="{{ getArticlesBYCate(21,5)->first()->link }}">
|
||||
<div class="ce-img threeCont-top-img">
|
||||
<span style="background-image: url({{ getArticlesBYCate(21,5)->first()->cover_path }});"></span>
|
||||
</div>
|
||||
<div class="threeCont-top-cont">
|
||||
<div class="ce-nowrap threeCont-top-title">{{ getArticlesBYCate(21,5)->first()->title }}</div>
|
||||
<div class="ce-nowrap-multi threeCont-top-text">
|
||||
{{ getArticlesBYCate(21,5)->first()->description }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<ul class="threeCont-list">
|
||||
@if (getArticlesBYCate(21,5)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(21,5) as $article)
|
||||
@if ($loop->iteration>1)
|
||||
<li data-href="{{ $article->link }}">
|
||||
<p>{{ $article->title }}</p>
|
||||
<span>{{ $article->created_at->format('Y-m-d') }}</span>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 第三模板 -->
|
||||
|
||||
<!-- 第四模板 -->
|
||||
@if (getArticlesBYCate(8,4)->isNotEmpty())
|
||||
|
||||
<div class="idxFour ce-morgin-tb">
|
||||
<div class="contant">
|
||||
<div class="idxTitle">
|
||||
<div class="idxTitle-name">
|
||||
{{ getOneCategory(8,'title') }}<span>/ {{ getOneCategory(8,'description') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="idxFourSwiper">
|
||||
<!-- Swiper -->
|
||||
<div class="swiper-container idxFour-container">
|
||||
<div class="swiper-wrapper">
|
||||
|
||||
@foreach (getArticlesBYCate(8,4) as $article)
|
||||
<div class="swiper-slide idxFour-slide">
|
||||
<div class="ce-img idxFour-img">
|
||||
<span style="background-image: url({{ $article->cover_path }});"></span>
|
||||
</div>
|
||||
<div class="idxFour-cont">
|
||||
<div class="ce-nowrap idxFour-title">
|
||||
{{ $article->title }}
|
||||
<div class="swiper-wrapper">
|
||||
@if($notices->isNotEmpty())
|
||||
@foreach($notices as $notice)
|
||||
<div class="swiper-slide">
|
||||
<a href="{{ $notice->link }}" class="notice-cont">
|
||||
<div class="noticeLeft">
|
||||
<div class="nowrap notice-name">{{ $notice->title }}</div>
|
||||
<div class="nowrap notice-text">
|
||||
{{ $notice->description }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="ce-nowrap-multi idxFour-text">
|
||||
{{ $article->description }}
|
||||
<div class="noticeRight">
|
||||
<div class="notice-year">{{ $notice->created_at->format('Y年m月') }}</div>
|
||||
<div class="notice-date">
|
||||
<span>{{ $notice->created_at->format('d') }}</span> 日
|
||||
</div>
|
||||
</div>
|
||||
<div class="idxFour-more" data-href="{{ $article->link }}">
|
||||
查看详情
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<!-- Add Arrows -->
|
||||
<div class="idxFour-Arrows">
|
||||
<div class="swiper-button-next">></div>
|
||||
<div class="swiper-button-prev"><</div>
|
||||
<!-- Add Pagination -->
|
||||
<div class="swiper-pagination notice-pagination"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 公告 -->
|
||||
|
||||
<!-- 新闻动态 + 媒体报道 -->
|
||||
<div class="container">
|
||||
<div class="col-md-9">
|
||||
<div class="news">
|
||||
<div class="newsLeft">
|
||||
<div class="swiper-container news-container">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="newsLeft">
|
||||
<div class="swiper-container news-container">
|
||||
<div class="swiper-wrapper">
|
||||
@if($nyydtimg->isNotEmpty())
|
||||
@foreach($nyydtimg as $img)
|
||||
<div class="swiper-slide">
|
||||
<a href="{{ $img->link }}" class="ce-img newsLeft-img">
|
||||
<span style="background-image: url({{ $img->cover_url }});">
|
||||
<div class="nowrap newsLeft-name">{{ $img->title }}</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
<!-- Add Pagination -->
|
||||
<div class="swiper-pagination news-pagination"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Add Pagination -->
|
||||
<div class="swiper-pagination news-pagination"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="newsRight">
|
||||
<div class="newsRight-title"
|
||||
style="background-image: url({{ asset('assets/index/images/indexTitle.png') }});">{{ $nyydtCate->title }}</div>
|
||||
<ul class="newsRight-list">
|
||||
@if($nyydt->isNotEmpty())
|
||||
@foreach($nyydt as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<div class="nowrap newsRight-name">{{ $article->title }}</div>
|
||||
<div class="newsRight-time">{{ $article->created_at->format('m-d') }}</div>
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="media">
|
||||
<div class="media-title">
|
||||
<span style="background-image: url({{ asset('assets/index/images/indexTitle.png') }});">{{ $mtbdCate->title }}</span>
|
||||
<a href="{{ $mtbdCate->link }}" class="media-more">更多
|
||||
<img src="{{ asset('assets/index/images/circleArrow.png') }}" alt="查看更多">
|
||||
</a>
|
||||
</div>
|
||||
<div class="media-list">
|
||||
<div class="swiper-container media-container">
|
||||
<div class="swiper-wrapper">
|
||||
@if($mtbdArticles->isNotEmpty())
|
||||
@foreach($mtbdArticles as $article)
|
||||
<div class="swiper-slide">
|
||||
<a href="{{ $article->link }}">
|
||||
<div class="ce-img media-img">
|
||||
<span style="background-image: url({{ $article->cover_url }});"></span>
|
||||
</div>
|
||||
<div class="nowrap media-name">
|
||||
<div class="nowrap">{{ $article->title }}</div>
|
||||
<span>{{ $article->created_at->format('m-d')}}</span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
<!-- Add Arrows -->
|
||||
<div class="swiper-button-next media-button-next"></div>
|
||||
<div class="swiper-button-prev media-button-prev"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<!-- end 新闻动态 + 媒体报道 -->
|
||||
|
||||
<!-- end 第四模板 -->
|
||||
<!-- 横幅 -->
|
||||
<div class="container">
|
||||
<div class="col-md-12">
|
||||
<div class="ce-img banner">
|
||||
<span style="background-image: url({{ $advert?$advert->cover_url:'' }});"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 横幅 -->
|
||||
|
||||
@endsection
|
||||
<!-- 党政建设 + 学习园地 -->
|
||||
<div class="container">
|
||||
<div class="col-md-6">
|
||||
<div class="indexModular">
|
||||
<div class="modular-title">
|
||||
<div class="modular-name">
|
||||
<img src="{{ asset('assets/index/images/indexIcon_00.png') }}"> {{ $dzjsCate->title }}
|
||||
</div>
|
||||
<a href="{{ $dzjsCate->link }}" class="modular-more">更多<span>+</span></a>
|
||||
</div>
|
||||
<div class="modular-list">
|
||||
<a href="{{ $dzjsimg->link }}" class="modularLeft">
|
||||
<div class="ce-img modularLeft-img">
|
||||
<span style="background-image: url({{ $dzjsimg->cover_url }});"></span>
|
||||
</div>
|
||||
<div class="modularLeft-text">
|
||||
<div class="ellipsis modularLeft-name">{{ $dzjsimg->title }}</div>
|
||||
<div class="nowrap modularLeft-time">{{ $dzjsimg->created_at->format('m-d') }}</div>
|
||||
</div>
|
||||
</a>
|
||||
<ul class="modularRight">
|
||||
@if($dzjsArticles->isNotEmpty())
|
||||
@foreach($dzjsArticles as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<div class="nowrap modularRight-name">{{ $article->title }}</div>
|
||||
<div class="nowrap modularRight-time">{{ $article->created_at->format('m-d') }}</div>
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="indexModular">
|
||||
<div class="modular-title">
|
||||
<div class="modular-name">
|
||||
<img src="{{ asset('assets/index/images/indexIcon_01.png') }}"> {{ $xxydCate->title }}
|
||||
</div>
|
||||
<a href="{{ $xxydCate->link }}" class="modular-more">更多<span>+</span></a>
|
||||
</div>
|
||||
<div class="modular-list">
|
||||
<a href="{{ $xxydimg->link }}" class="modularLeft">
|
||||
<div class="ce-img modularLeft-img">
|
||||
<span style="background-image: url({{ $xxydimg->cover_url }});"></span>
|
||||
</div>
|
||||
<div class="modularLeft-text">
|
||||
<div class="ellipsis modularLeft-name">{{ $xxydimg->title }}</div>
|
||||
<div class="nowrap modularLeft-time">{{ $xxydimg->created_at->format('m-d') }}</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
@push('script')
|
||||
<!-- Swiper JS -->
|
||||
<script>
|
||||
// banner轮播
|
||||
var banner = new Swiper('.idxBanner', {
|
||||
pagination: '.swiper-pagination-white'
|
||||
});
|
||||
<ul class="modularRight">
|
||||
@if($xxydArticles->isNotEmpty())
|
||||
@foreach($xxydArticles as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<div class="nowrap modularRight-name">{{ $article->title }}</div>
|
||||
<div class="nowrap modularRight-time">{{ $article->created_at->format('m-d') }}</div>
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 党政建设 + 学习园地 -->
|
||||
|
||||
var tong_banner = new Swiper('.tong_banner', {})
|
||||
<!-- tab + 预决算公告 -->
|
||||
<div class="Tab">
|
||||
<div class="container">
|
||||
<div class="col-md-12">
|
||||
<div class="indexTab">
|
||||
<ul id="myTabs" class="indexTab-ul" role="tablist"
|
||||
style="background-image: url({{ asset('assets/index/image/ranksIcon/ranksTitle_img.png') }});">
|
||||
|
||||
// 轮播
|
||||
var idxFour = new Swiper('.idxFour-container', {
|
||||
nextButton: '.swiper-button-next',
|
||||
prevButton: '.swiper-button-prev',
|
||||
slidesPerView: 3,
|
||||
paginationClickable: true,
|
||||
spaceBetween: 30,
|
||||
});
|
||||
@if($categorys->isNotEmpty())
|
||||
@foreach($categorys as $category)
|
||||
<li role="presentation" @if($loop->iteration==1) class="active" @endif>
|
||||
<a href="#indexTab0{{$loop->iteration}}" id="indexTab-0{{$loop->iteration}}"
|
||||
role="tab"
|
||||
data-toggle="tab">
|
||||
<span>{{ $category->title }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
<div id="myTabContent" class="tab-content ranksSubject-cont">
|
||||
@if($categorys->isNotEmpty())
|
||||
@foreach($categorys as $category)
|
||||
@if($category->articles->isNotEmpty())
|
||||
<div role="tabpanel" class="tab-pane fade @if($loop->iteration==1) active @endif in"
|
||||
id="indexTab0{{$loop->iteration}}">
|
||||
<div class="TabCont">
|
||||
@if($category->imgArticle)
|
||||
<a href="{{ $category->imgArticle->link }}"
|
||||
class="TabCont-top">
|
||||
<div class="ce-img TabCont-top-img">
|
||||
<span style="background-image: url({{ $category->imgArticle->cover_url }});"></span>
|
||||
</div>
|
||||
<div class="TabCont-top-tips">
|
||||
<div class="nowrap TabCont-top-title">
|
||||
{{ $category->imgArticle->title }}
|
||||
</div>
|
||||
<div class="ellipsis TabCont-top-text">
|
||||
{{ $category->imgArticle->description }}
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
var tong_banner1 = new Swiper('.tong_banner1', {
|
||||
pagination: '.swiper-pagination',
|
||||
paginationClickable: true,
|
||||
loop: true,
|
||||
autoplay: 4000,
|
||||
});
|
||||
</script>
|
||||
<ul class="TabCont-list">
|
||||
@foreach($category->articleLists as $article)
|
||||
<li>
|
||||
<a href="{{ $article->link }}">
|
||||
<div class="nowrap TabCont-list-name">
|
||||
{{ $article->title }}
|
||||
</div>
|
||||
<div class="TabCont-list-time">{{ $article->created_at->format('m-d') }}</div>
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end tab + 预决算公告 -->
|
||||
@endsection
|
||||
|
||||
@endpush
|
||||
@push('script')
|
||||
<script>
|
||||
// 公告列表
|
||||
var noticeSwiper = new Swiper('.notice-container', {
|
||||
pagination: '.notice-pagination',
|
||||
autoplay: 6000,
|
||||
loop: true,
|
||||
speed: 1000,
|
||||
spaceBetween: 30
|
||||
});
|
||||
|
||||
// 新闻动态
|
||||
var noticeSwiper = new Swiper('.news-container', {
|
||||
pagination: '.news-pagination',
|
||||
autoplay: 5000,
|
||||
loop: true,
|
||||
speed: 1000
|
||||
});
|
||||
|
||||
// 媒体报道
|
||||
var mediaSwiper = new Swiper('.media-container', {
|
||||
nextButton: '.media-button-next',
|
||||
prevButton: '.media-button-prev',
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
36
resources/views/index/search.blade.php
Normal file
36
resources/views/index/search.blade.php
Normal file
@@ -0,0 +1,36 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', '搜索结果')
|
||||
|
||||
|
||||
@section('content')
|
||||
<!-- 内容 -->
|
||||
<div class="second">
|
||||
<div class="container">
|
||||
<!-- 列表页 -->
|
||||
<div class="noGraph">
|
||||
@if ($articles->isNotEmpty())
|
||||
<ul class="studyList">
|
||||
@foreach ($articles as $relation)
|
||||
<li>
|
||||
<a href="{{ $relation->link }}">
|
||||
<div class="nowrap studyList-name">{{ $relation->title }}</div>
|
||||
<div class="studyList-time">{{ $relation->created_at->format('Y-m-d') }}</div>
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<!-- 分页 -->
|
||||
<div class="pageUl">
|
||||
@if ($articles->isNotEmpty())
|
||||
{{ $articles->links('layouts.pagination') }}
|
||||
@endif
|
||||
</div>
|
||||
@else
|
||||
@include('layouts.empty')
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end 内容 -->
|
||||
@endsection
|
||||
Reference in New Issue
Block a user