调整
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
@section('title', '首页')
|
||||
|
||||
@section('css')
|
||||
<link href="{{ asset('assets/index/css/swiper.min.css') }}" rel="stylesheet" type="text/css"/>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="container container_col">
|
||||
<!--轮播图 新闻动态 -->
|
||||
@@ -92,21 +96,27 @@
|
||||
<div class="sanjiao pos_abs"></div>
|
||||
</div>
|
||||
<div class="txt flexcolumn jc_sb" data-href="{{ $info->link }}">
|
||||
<div>
|
||||
<div class="title overflow1">{{ $info->title }}</div>
|
||||
<div class="overflow4 "> {{ $info->description }}</div>
|
||||
<div class="naturalCont">
|
||||
<div class="naturalCont-title">
|
||||
<div class="title">{{ $info->title }}</div>
|
||||
<!-- <div class="overflow4 "> {{ $info->description }}</div> -->
|
||||
<div class="flexrow getMore">查看更多 <img src="/assets/index/images/right.png">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flexrow getMore">查看更多 <img src="/assets/index/images/right.png"></div>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="news_list_item ">
|
||||
<div class="news_list_item">
|
||||
<div class="txt flexcolumn jc_sb" data-href="{{ $info->link }}">
|
||||
<div>
|
||||
<div class="title overflow1">{{ $info->title }}</div>
|
||||
<div class="overflow4 "> {{ $info->description }}</div>
|
||||
<div class="naturalCont">
|
||||
<div class="naturalCont-title">
|
||||
<div class="title">{{ $info->title }}</div>
|
||||
<!-- <div class="overflow4 "> {{ $info->description }}</div> -->
|
||||
<div class="flexrow getMore">查看更多 <img src="/assets/index/images/right.png">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flexrow getMore">查看更多 <img src="/assets/index/images/right.png"></div>
|
||||
</div>
|
||||
<div class="img" style="background-image:url({{ $info->cover_path }})">
|
||||
<div class="sanjiao2 pos_abs"></div>
|
||||
@@ -166,27 +176,26 @@
|
||||
</div>
|
||||
<div class="words11_zzgz_xfgz" style="margin-left: 15px;">
|
||||
<div class="words11_zzgz_xfgz_title">
|
||||
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(74,'title') }}</font><span><a href="{{ getOneCategory(74,'link') }}">更多 >></a></span>
|
||||
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(18,'title') }}</font><span><a>更多 >></a></span>
|
||||
</div>
|
||||
<div class="words11_jcfc_content">
|
||||
<div class="box">
|
||||
<div class="focus"><img src="/assets/index/images/name_04.jpg"></div>
|
||||
<div class="left" onclick="lb_jcfc('-')"></div>
|
||||
<div class="midd">
|
||||
@if (getArticlesBYCate(74,5)->isNotEmpty())
|
||||
<ul>
|
||||
@foreach (getArticlesBYCate(74,5) as $article)
|
||||
<li>
|
||||
<a href="javascript:void(0);"><img style="border: 2px solid #4c951c;" src="{{ $article->cover_path }}"></a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
|
||||
<div class="news-con">
|
||||
@if (getArticlesBYCate(18,4)->isNotEmpty())
|
||||
<div class="focus" data-herf="{{ getArticlesBYCate(18,4)->first()->link }}">
|
||||
<img src="{{ getArticlesBYCate(18,4)->first()->cover_path}}">
|
||||
<p>{{ getArticlesBYCate(18,4)->first()->title}}</p>
|
||||
</div>
|
||||
<div class="right" onclick="lb_jcfc('+')"></div>
|
||||
</div>
|
||||
<ul class="newslist">
|
||||
@foreach (getArticlesBYCate(18,4) as $info)
|
||||
@if ($loop->iteration>1)
|
||||
<li>
|
||||
<a href="{{ $info->link }}">{{ $info->title }}</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="words11_zzgz_xfgz" style="margin-left: 15px;width: 200px">
|
||||
<div class="words11_zzgz_xfgz_title">
|
||||
@@ -216,7 +225,7 @@
|
||||
</div>
|
||||
<div class="news-con">
|
||||
@if (getArticlesBYCate(127,4)->isNotEmpty())
|
||||
<div class="focus" data-herf="{{ getArticlesBYCate(127,4)->first()->link }}">
|
||||
<div class="focus" data-href="{{ getArticlesBYCate(127,4)->first()->link }}">
|
||||
<img src="{{ getArticlesBYCate(127,4)->first()->cover_path}}">
|
||||
<p>{{ getArticlesBYCate(127,4)->first()->title}}</p>
|
||||
</div>
|
||||
@@ -233,6 +242,34 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="news-txt col-3">
|
||||
<div class="news-title">
|
||||
<div class="name">{{ getOneCategory(74,'title') }}<i></i></div>
|
||||
<a href="{{ getOneCategory(74,'link') }}" class="more">更多 >></a>
|
||||
</div>
|
||||
<div class="dtlCont-banner">
|
||||
<div class="swiper-container gallery-top">
|
||||
<div class="swiper-wrapper">
|
||||
@if (getArticlesBYCate(74,5)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(74,5) as $article)
|
||||
<div data-href="{{ $article->link }}" class="swiper-slide" style="background-image:url({{ $article->cover_path }})"></div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="swiper-container gallery-thumbs">
|
||||
<div class="swiper-wrapper">
|
||||
@if (getArticlesBYCate(74,5)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(74,5) as $article)
|
||||
<div class="swiper-slide" style="background-image:url({{ $article->cover_path }})">
|
||||
<span class="swiper-name">{{ $article->title }}</span>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news-txt col-3 last">
|
||||
<div class="news-title">
|
||||
<div class="name">{{ getOneCategory(8,'title') }}<i></i></div>
|
||||
<a href="{{ getOneCategory(8,'link') }}" class="more">更多 >></a>
|
||||
@@ -256,29 +293,6 @@
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="news-txt col-3 last">
|
||||
<div class="news-title">
|
||||
<div class="name">{{ getOneCategory(18,'title') }}<i></i></div>
|
||||
<a href="#" class="more">更多 >></a>
|
||||
</div>
|
||||
<div class="news-con">
|
||||
@if (getArticlesBYCate(18,4)->isNotEmpty())
|
||||
<div class="focus" data-herf="{{ getArticlesBYCate(18,4)->first()->link }}">
|
||||
<img src="{{ getArticlesBYCate(18,4)->first()->cover_path}}">
|
||||
<p>{{ getArticlesBYCate(18,4)->first()->title}}</p>
|
||||
</div>
|
||||
<ul class="newslist">
|
||||
@foreach (getArticlesBYCate(18,4) as $info)
|
||||
@if ($loop->iteration>1)
|
||||
<li>
|
||||
<a href="{{ $info->link }}">{{ $info->title }}</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<!-- 友情链接 -->
|
||||
@@ -306,12 +320,30 @@
|
||||
@endsection
|
||||
|
||||
@push('script')
|
||||
<script type="text/javascript" src="{{ asset('assets/index/js/lb_jcfc.js') }}"></script>
|
||||
|
||||
<!-- <script type="text/javascript" src="{{ asset('assets/index/js/lb_jcfc.js') }}"></script> -->
|
||||
<script type="text/javascript" src="{{ asset('assets/index/js/swiper.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
// 轮播
|
||||
var galleryTop = new Swiper('.gallery-top', {
|
||||
spaceBetween: 10,
|
||||
loop: true,
|
||||
loopedSlides: 5,
|
||||
});
|
||||
var galleryThumbs = new Swiper('.gallery-thumbs', {
|
||||
spaceBetween: 10,
|
||||
slidesPerView: 5,
|
||||
touchRatio: 0.2,
|
||||
loop: true,
|
||||
loopedSlides: 5,
|
||||
slideToClickedSlide: true
|
||||
});
|
||||
galleryTop.params.control = galleryThumbs;
|
||||
galleryThumbs.params.control = galleryTop;
|
||||
</script>
|
||||
<script>
|
||||
jQuery(function ($) {
|
||||
$('#newspic').slideBox({
|
||||
duration: 0.3,//滚动持续时间,单位:秒
|
||||
duration: 0.1,//滚动持续时间,单位:秒
|
||||
easing: 'linear',//swing,linear//滚动特效
|
||||
delay: 5,//滚动延迟时间,单位:秒
|
||||
hideClickBar: false,//不自动隐藏点选按键
|
||||
|
||||
Reference in New Issue
Block a user