更新
This commit is contained in:
@@ -416,7 +416,7 @@ body {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.indexImg-pagination, .indexNews-pagination {
|
||||
.indexImg-pagination, .indexNews-pagination, .indexGg-pagination {
|
||||
text-align: right !important;
|
||||
padding-right: 20px!important;
|
||||
bottom: 16px!important;
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
@endforeach
|
||||
@endif
|
||||
<ul class="srRrends-list">
|
||||
@if (getArticlesBYCate(79,2)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(79,2) as $info)
|
||||
@if (getArticlesBYCate(79,3)->isNotEmpty())
|
||||
@foreach (getArticlesBYCate(79,3) as $info)
|
||||
<li data-href="{{ $info->link }}" class="publicHover">
|
||||
|
||||
<div class="srRrends-list-cont">
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<div class="row">
|
||||
@if ($ysxw->isNotEmpty())
|
||||
<div class="col-md-6 col-xs-12">
|
||||
<div class="swiper-container indexBig">
|
||||
<div class="swiper-container newNdexBig indexBig">
|
||||
<div class="swiper-wrapper">
|
||||
@foreach ($ysxw as $info)
|
||||
<div class="swiper-slide">
|
||||
@@ -73,7 +73,7 @@
|
||||
<div class="row">
|
||||
@if (getArticlesBYCate(67,7)->isNotEmpty())
|
||||
<div class="col-md-6 col-xs-12">
|
||||
<div class="swiper-container indexNew">
|
||||
<div class="swiper-container newGgBig indexBig">
|
||||
<div class="swiper-wrapper">
|
||||
@foreach (getArticlesBYCate(67,5) as $info)
|
||||
<div class="swiper-slide">
|
||||
@@ -87,7 +87,7 @@
|
||||
@endforeach
|
||||
</div>
|
||||
<!-- Add Pagination -->
|
||||
<div class="swiper-pagination indexImg-pagination indexNew-pagination"></div>
|
||||
<div class="swiper-pagination indexGg-pagination"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-xs-12">
|
||||
@@ -420,8 +420,7 @@
|
||||
<div class="col-xs-12 col-md-3"
|
||||
@if($cate->url && $cate->type=='link')
|
||||
data-href="{{ $cate->url }}"
|
||||
@endif
|
||||
/>
|
||||
@endif >
|
||||
<div class="modularEight-label"
|
||||
style="background-image: url({{ $cate->cover_url }});">
|
||||
<div class="modularEight-title">{{ $cate->title }}</div>
|
||||
@@ -432,31 +431,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('script')
|
||||
<script type="text/javascript" src="{{ asset('assets/index/js/swiper.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
// 新闻轮播
|
||||
var banner = new Swiper('.indexBig', {
|
||||
pagination: '.indexImg-pagination',
|
||||
paginationClickable: true,
|
||||
spaceBetween: 30,
|
||||
centeredSlides: true,
|
||||
autoplay: 6000,
|
||||
autoplayDisableOnInteraction: false
|
||||
});
|
||||
|
||||
// 公告轮播
|
||||
var banner = new Swiper('.indexNew', {
|
||||
pagination: '.indexNew-pagination',
|
||||
paginationClickable: true,
|
||||
spaceBetween: 30,
|
||||
centeredSlides: true,
|
||||
autoplay: 6000,
|
||||
autoplayDisableOnInteraction: false
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
$('.new_list').click(function () {
|
||||
@@ -464,7 +444,29 @@
|
||||
|
||||
$('.new_list_more').attr('data-href', link)
|
||||
});
|
||||
|
||||
// 新闻轮播
|
||||
var banner = new Swiper('.newNdexBig', {
|
||||
pagination: '.indexImg-pagination',
|
||||
paginationClickable: true,
|
||||
spaceBetween: 30,
|
||||
centeredSlides: true,
|
||||
autoplay: 5000,
|
||||
autoplayDisableOnInteraction: false
|
||||
});
|
||||
});
|
||||
|
||||
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||
if(e.currentTarget.id === 'relationTab-02'){
|
||||
// 公告轮播
|
||||
var swiper = new Swiper('.newGgBig', {
|
||||
pagination: 'indexGg-pagination',
|
||||
paginationClickable: true,
|
||||
centeredSlides: true,
|
||||
autoplay: 5000,
|
||||
autoplayDisableOnInteraction: false
|
||||
});
|
||||
}
|
||||
})
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<div class="banner">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-xs-12">
|
||||
<div class="swiper-container indexBig">
|
||||
<div class="swiper-container indexTopBig indexBig">
|
||||
<div class="swiper-wrapper">
|
||||
@foreach (getAdvertsByCate(34,3) as $info)
|
||||
<div class="swiper-slide">
|
||||
@@ -88,13 +88,13 @@
|
||||
<script type="text/javascript" src="{{ asset('assets/index/js/swiper.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
// 新闻轮播
|
||||
var banner = new Swiper('.indexBig', {
|
||||
pagination: '.indexImg-pagination',
|
||||
var banner = new Swiper('.indexTopBig', {
|
||||
paginationClickable: true,
|
||||
spaceBetween: 30,
|
||||
centeredSlides: true,
|
||||
autoplay: 3000,
|
||||
autoplayDisableOnInteraction: false
|
||||
autoplay: 5000,
|
||||
autoplayDisableOnInteraction: false,
|
||||
loop: true
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
Reference in New Issue
Block a user