调整野蛮
This commit is contained in:
@@ -20,8 +20,15 @@ class ArticleController extends Controller
|
|||||||
// $parent = $category->parent;
|
// $parent = $category->parent;
|
||||||
// }
|
// }
|
||||||
// $advert = Advert::where('category_id',73)->first();
|
// $advert = Advert::where('category_id',73)->first();
|
||||||
|
$categories = $article->categories;
|
||||||
|
$parent = [];
|
||||||
|
|
||||||
return view('article.show', compact('article'));
|
foreach ($categories as $category) {
|
||||||
|
$top = getTopCate($category->id);
|
||||||
|
$parent[] = $top->id;
|
||||||
|
}
|
||||||
|
|
||||||
|
return view('article.show', compact('article', 'parent'));
|
||||||
// return view('article.show', compact('article', 'parent', 'category','advert'));
|
// return view('article.show', compact('article', 'parent', 'category','advert'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,10 +20,9 @@ class IndexController extends Controller
|
|||||||
//研究中心
|
//研究中心
|
||||||
$links = Link::get();
|
$links = Link::get();
|
||||||
|
|
||||||
$adverts = Advert::where('category_id', 72)->latest('sort')->get();
|
|
||||||
$lt_adverts = Advert::where('category_id', 175)->latest('sort')->get();
|
$lt_adverts = Advert::where('category_id', 175)->latest('sort')->get();
|
||||||
|
|
||||||
return view('index.index', compact('links', 'adverts', 'lt_adverts'));
|
return view('index.index', compact('links', 'lt_adverts'));
|
||||||
}
|
}
|
||||||
|
|
||||||
//通用获取文章
|
//通用获取文章
|
||||||
|
|||||||
@@ -22,7 +22,8 @@ class TestController extends Controller
|
|||||||
|
|
||||||
public function set_article_category()
|
public function set_article_category()
|
||||||
{
|
{
|
||||||
$articles = Article::whereHas('category')
|
$articles = Article::query()
|
||||||
|
->whereHas('category')
|
||||||
->chunk(200, function ($articles) {
|
->chunk(200, function ($articles) {
|
||||||
foreach ($articles as $article) {
|
foreach ($articles as $article) {
|
||||||
ArticleCategory::create([
|
ArticleCategory::create([
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ a {
|
|||||||
|
|
||||||
.white,
|
.white,
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #027eba;
|
color: green;
|
||||||
}
|
}
|
||||||
|
|
||||||
.clearfix {
|
.clearfix {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
min-width: 1200px;
|
min-width: 1200px;
|
||||||
background: #d6e8f4;
|
/*background: #d6e8f4;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
@@ -151,7 +151,7 @@ body {
|
|||||||
|
|
||||||
#navul li.navmoon a,
|
#navul li.navmoon a,
|
||||||
#navul li.active a {
|
#navul li.active a {
|
||||||
color: #ffba64;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navul li.navhome a:hover {
|
#navul li.navhome a:hover {
|
||||||
@@ -160,13 +160,17 @@ body {
|
|||||||
|
|
||||||
#navul li.navmoon ul {
|
#navul li.navmoon ul {
|
||||||
display: block;
|
display: block;
|
||||||
|
background-color: rgb(63, 155, 11);
|
||||||
|
border-top: 1px solid #f7f7f7;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navul li.navmoon ul li {
|
#navul li.navmoon ul li {
|
||||||
background: rgb(63, 155, 11);
|
/*background: rgb(63, 155, 11);*/
|
||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
border-top: 1px solid rgb(63, 155, 11);
|
width: 100%;
|
||||||
|
text-align: left;
|
||||||
|
border-top: solid 1px rgba(255,155,255,0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#navul li.navmoon ul a {
|
#navul li.navmoon ul a {
|
||||||
@@ -175,7 +179,7 @@ body {
|
|||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
width: 64px;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navul li.navmoon ul a:hover {
|
#navul li.navmoon ul a:hover {
|
||||||
@@ -339,7 +343,7 @@ body {
|
|||||||
|
|
||||||
.newslist {
|
.newslist {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 10px 12px;
|
margin: 12px 12px 0 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hotnews {
|
.hotnews {
|
||||||
@@ -385,6 +389,9 @@ body {
|
|||||||
padding: 0 80px 0 14px;
|
padding: 0 80px 0 14px;
|
||||||
background: url(../images/jiantou.png) 2px 15px no-repeat;
|
background: url(../images/jiantou.png) 2px 15px no-repeat;
|
||||||
}
|
}
|
||||||
|
.newslist li:hover a{
|
||||||
|
color: rgba(72,144,26,1);
|
||||||
|
}
|
||||||
|
|
||||||
.newslist li:last-child {
|
.newslist li:last-child {
|
||||||
border: none;
|
border: none;
|
||||||
@@ -520,12 +527,29 @@ body {
|
|||||||
|
|
||||||
.news-txt.col-3 {
|
.news-txt.col-3 {
|
||||||
width: 388px;
|
width: 388px;
|
||||||
height: 280px;
|
/*height: 280px;*/
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
|
.worker_title{
|
||||||
|
/*position: absolute;*/
|
||||||
|
/*top: 140px;*/
|
||||||
|
z-index: 100;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
padding:10px 10px;
|
||||||
|
/* color: #353535;*/
|
||||||
|
text-align: center;
|
||||||
|
overflow: hidden;
|
||||||
|
width: 100%;
|
||||||
|
display: inline-block;
|
||||||
|
/*font-weight: bold;*/
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.worker_title span{
|
||||||
|
font-size: 12px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
.news-txt.col-3.last {
|
.news-txt.col-3.last {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
@@ -861,8 +885,9 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.linkcon {
|
.linkcon {
|
||||||
height: 54px;
|
/*height: 54px;*/
|
||||||
margin: 10px;
|
/*margin: 10px;*/
|
||||||
|
padding:10px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -877,7 +902,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ft-menu {
|
.ft-menu {
|
||||||
height: 230px;
|
/*height: 230px;*/
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: linear-gradient(rgb(63, 155, 11), #3e8a1a);
|
background: linear-gradient(rgb(63, 155, 11), #3e8a1a);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -886,7 +911,7 @@ body {
|
|||||||
.menu {
|
.menu {
|
||||||
width: 1000px;
|
width: 1000px;
|
||||||
float: left;
|
float: left;
|
||||||
margin-top: 40px;
|
margin-top: 20px;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
@@ -940,7 +965,7 @@ body {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
margin-right: 70px;
|
margin-right: 70px;
|
||||||
margin-top: 80px;
|
margin-top: 12px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -952,6 +977,7 @@ body {
|
|||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
background: #1c5302;
|
background: #1c5302;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mg-t-b {
|
.mg-t-b {
|
||||||
@@ -1235,16 +1261,17 @@ body {
|
|||||||
|
|
||||||
.words11_zzgz_xfgz_content {
|
.words11_zzgz_xfgz_content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 270px;
|
/*height: 270px;*/
|
||||||
overflow: hidden;
|
/*overflow: hidden;*/
|
||||||
margin: 10px 0px;
|
margin: 10px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.words11_zzgz_xfgz_content .box {
|
.words11_zzgz_xfgz_content .box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
|
height: 314px;
|
||||||
}
|
}
|
||||||
|
/* 这是针对缺省样式 (必须的) */
|
||||||
.words11_zzgz_xfgz_content .box .focus {
|
.words11_zzgz_xfgz_content .box .focus {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -1313,25 +1340,25 @@ body {
|
|||||||
.news_list_content .sanjiao {
|
.news_list_content .sanjiao {
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
border-width: 10px;
|
border-width: 20px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: transparent transparent rgb(63, 155, 11) transparent;
|
border-color: transparent transparent rgb(63, 155, 11) transparent;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: -10px;
|
margin-left: -20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.news_list_content .sanjiao2 {
|
.news_list_content .sanjiao2 {
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
border-width: 10px;
|
border-width: 20px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: rgb(63, 155, 11) transparent transparent transparent;
|
border-color: rgb(63, 155, 11) transparent transparent transparent;
|
||||||
top: 0;
|
top: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: -10px;
|
margin-left: -20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.news_list_content .img {
|
.news_list_content .img {
|
||||||
@@ -1374,6 +1401,7 @@ body {
|
|||||||
|
|
||||||
|
|
||||||
.news_list_item:hover .txt .overflow4 {
|
.news_list_item:hover .txt .overflow4 {
|
||||||
|
overflow: hidden;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1449,11 +1477,77 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tem ul {
|
.tem ul {
|
||||||
width: calc(50% - 10px);
|
/*width: calc(50% - 10px);*/
|
||||||
float: left;
|
float: left;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
}
|
}
|
||||||
|
.banner_title{
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
background-color: rgba(255,255,255,0.5);
|
||||||
|
color: #353535;
|
||||||
|
font-size: 30px;
|
||||||
|
text-align: center;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
padding:10px 0;
|
||||||
|
}
|
||||||
|
.lt_adverts_c{
|
||||||
|
height: 64.7px;
|
||||||
|
width: 100%;
|
||||||
|
line-height: 64.7px;
|
||||||
|
text-align: center;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 30px;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
box-shadow: 0 0 10px rgba(2,2,2,0.5);
|
||||||
|
text-shadow: #fff 1px 0 0, #fff 0 1px 0, #fff -1px 0 0, #fff 0 -1px 0;
|
||||||
|
}
|
||||||
|
.news_list_content1{
|
||||||
|
width: 100%;
|
||||||
|
/*height: 400px;*/
|
||||||
|
background-color: #fff;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-item:center;
|
||||||
|
box-sizing:border-box;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
.news_list_item1{
|
||||||
|
flex:1;
|
||||||
|
width: 25%;
|
||||||
|
text-align: center;
|
||||||
|
/*background-color: pink;*/
|
||||||
|
border:solid 1px #f9f8f7;
|
||||||
|
font-size: 14px;
|
||||||
|
cursor:pointer;
|
||||||
|
/* padding:10px;*/
|
||||||
|
/*color: #353535;*/
|
||||||
|
}
|
||||||
|
.news_list_item1>div{
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
width: 100%;
|
||||||
|
height: 140px;
|
||||||
|
/*background-color: green;*/
|
||||||
|
}
|
||||||
|
.news_list_item1:hover{
|
||||||
|
border:solid 1px rgba(72,144,26,0.2);
|
||||||
|
}
|
||||||
|
.news_list_item1:hover span{
|
||||||
|
color: rgba(72,144,26,1)
|
||||||
|
}
|
||||||
|
.news_list_item1>span{
|
||||||
|
overflow: hidden;
|
||||||
|
width: 100%;
|
||||||
|
display: inline-block;
|
||||||
|
padding-top: 10px;
|
||||||
|
text-decoration: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
/*2020-10-15*/
|
/*2020-10-15*/
|
||||||
.naturalCont{display:table; height: 120px; text-align: center;}
|
.naturalCont{display:table; height: 120px; text-align: center;}
|
||||||
|
|||||||
@@ -10,10 +10,8 @@ $(function(){
|
|||||||
},function(){
|
},function(){
|
||||||
$(this).removeClass("navmoon")
|
$(this).removeClass("navmoon")
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
(function($){
|
(function($){
|
||||||
$.fn.capacityFixed = function(options) {
|
$.fn.capacityFixed = function(options) {
|
||||||
var opts = $.extend({},$.fn.capacityFixed.deflunt,options);
|
var opts = $.extend({},$.fn.capacityFixed.deflunt,options);
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{-- 新闻与通告--}}
|
||||||
<div class="news-txt" id="news">
|
<div class="news-txt" id="news">
|
||||||
<div class="news-title">
|
<div class="news-title">
|
||||||
<div class="news-name tab-nav j-tab-nav">
|
<div class="news-name tab-nav j-tab-nav">
|
||||||
@@ -35,16 +36,18 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="tab-con">
|
<div class="tab-con">
|
||||||
<div class="j-tab-con">
|
<div class="j-tab-con">
|
||||||
<div class="tab-con-item news-con" style="display: block;">
|
<div class="tab-con-item news-con" style="display: block;margin-top:20px!important;">
|
||||||
@if (getArticlesBYCate(53,6)->isNotEmpty())
|
@if (getArticlesBYCate(53,8)->isNotEmpty())
|
||||||
<div class="hotnews">
|
<div class="hotnews">
|
||||||
<h1>{{ getArticlesBYCate(53,6)->first()->title}}</h1>
|
<h1>
|
||||||
<div class="hotcon">
|
<a href="{{getArticlesBYCate(53,8)->first()->link}}">{{ getArticlesBYCate(53,8)->first()->title}}</a>
|
||||||
<a href="getArticlesBYCate(53,6)->first()->link">{{ getArticlesBYCate(53,6)->first()->description }} </a>
|
</h1>
|
||||||
</div>
|
<!-- <div class="hotcon">
|
||||||
|
<a href="getArticlesBYCate(53,8)->first()->link">{{ getArticlesBYCate(53,8)->first()->description }} </a>
|
||||||
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<ul class="newslist">
|
<ul class="newslist">
|
||||||
@foreach (getArticlesBYCate(53,6) as $info)
|
@foreach (getArticlesBYCate(53,8) as $info)
|
||||||
@if ($loop->iteration>1)
|
@if ($loop->iteration>1)
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ $info->link }}">{{ $info->title }}</a><span>{{ $info->created_at->format('Y-m-d') }}</span>
|
<a href="{{ $info->link }}">{{ $info->title }}</a><span>{{ $info->created_at->format('Y-m-d') }}</span>
|
||||||
@@ -53,18 +56,19 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-con-item news-con" style="display: none;">
|
<div class="tab-con-item news-con" style="display: none;">
|
||||||
@if (getArticlesBYCate(54,6)->isNotEmpty())
|
@if (getArticlesBYCate(54,8)->isNotEmpty())
|
||||||
<div class="hotnews">
|
<div class="hotnews">
|
||||||
<h1>{{ getArticlesBYCate(54,6)->first()->title}}</h1>
|
<h1>
|
||||||
<div class="hotcon">
|
<a href="{{getArticlesBYCate(54,8)->first()->link}}">{{ getArticlesBYCate(54,8)->first()->title}}</a>
|
||||||
<a href="getArticlesBYCate(54,6)->first()->link">{{ getArticlesBYCate(54,6)->first()->description }} </a>
|
</h1>
|
||||||
</div>
|
<!-- <div class="hotcon">
|
||||||
|
<a href="getArticlesBYCate(54,8)->first()->link">{{ getArticlesBYCate(54,7)->first()->description }} </a>
|
||||||
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<ul class="newslist">
|
<ul class="newslist">
|
||||||
@foreach (getArticlesBYCate(54,6) as $info)
|
@foreach (getArticlesBYCate(54,8) as $info)
|
||||||
@if ($loop->iteration>1)
|
@if ($loop->iteration>1)
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ $info->link }}">{{ $info->title }}</a><span>{{ $info->created_at->format('Y-m-d') }}</span>
|
<a href="{{ $info->link }}">{{ $info->title }}</a><span>{{ $info->created_at->format('Y-m-d') }}</span>
|
||||||
@@ -74,14 +78,13 @@
|
|||||||
</ul>
|
</ul>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 科学研究与特色品牌建设 开始 -->
|
<!-- 特色领域 开始 -->
|
||||||
<div class="" style="width: 100%;">
|
<div class="" style="width: 100%;">
|
||||||
<div class="words11_zzgz_xfgz_title">
|
<div class="words11_zzgz_xfgz_title">
|
||||||
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(17,'title') }}</font>
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(17,'title') }}</font>
|
||||||
@@ -100,7 +103,8 @@
|
|||||||
<div class="naturalCont-title">
|
<div class="naturalCont-title">
|
||||||
<div class="title">{{ $info->title }}</div>
|
<div class="title">{{ $info->title }}</div>
|
||||||
<!-- <div class="overflow4 "> {{ $info->description }}</div> -->
|
<!-- <div class="overflow4 "> {{ $info->description }}</div> -->
|
||||||
<div class="flexrow getMore">查看更多 <img src="/assets/index/images/right.png">
|
<div class="flexrow getMore overflow2">{{ $info->description1 ?? '' }}
|
||||||
|
<!-- <img src="/assets/index/images/right.png"> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -113,7 +117,8 @@
|
|||||||
<div class="naturalCont-title">
|
<div class="naturalCont-title">
|
||||||
<div class="title">{{ $info->title }}</div>
|
<div class="title">{{ $info->title }}</div>
|
||||||
<!-- <div class="overflow4 "> {{ $info->description }}</div> -->
|
<!-- <div class="overflow4 "> {{ $info->description }}</div> -->
|
||||||
<div class="flexrow getMore">查看更多 <img src="/assets/index/images/right.png">
|
<div class="flexrow getMore">{{ $info->description1 ?? ''}}
|
||||||
|
<!-- <img src="/assets/index/images/right.png"> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -127,10 +132,63 @@
|
|||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 特色领域 开始 -->
|
||||||
|
<div class="" style="width: 100%;">
|
||||||
|
<div class="words11_zzgz_xfgz_title">
|
||||||
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(17,'title') }}</font>
|
||||||
|
<span><a href="{{ getOneCategory(17,'link') }}">更多 >></a></span>
|
||||||
|
</div>
|
||||||
|
{{-- <div class="news_list_content flexrow jc_start">--}}
|
||||||
|
{{-- @if (getArticlesBYCate(17,8,'all')->isNotEmpty())--}}
|
||||||
|
{{-- @foreach (getArticlesBYCate(17,8,'all') as $info)--}}
|
||||||
|
{{-- @if ($loop->odd)--}}
|
||||||
|
{{-- <div class="news_list_item ">--}}
|
||||||
|
{{-- <div class="img" style="background-image:url({{ $info->cover_path }})">--}}
|
||||||
|
{{-- <div class="sanjiao pos_abs"></div>--}}
|
||||||
|
{{-- </div>--}}
|
||||||
|
{{-- <div class="txt flexcolumn jc_sb" data-href="{{ $info->link }}">--}}
|
||||||
|
{{-- <div class="naturalCont">--}}
|
||||||
|
{{-- <div class="naturalCont-title">--}}
|
||||||
|
{{-- <div class="title">{{ $info->title }}</div>--}}
|
||||||
|
{{-- <div class="flexrow getMore overflow2">{{ $info->description1 ?? '' }}--}}
|
||||||
|
{{-- </div>--}}
|
||||||
|
{{-- </div>--}}
|
||||||
|
{{-- </div>--}}
|
||||||
|
{{-- </div>--}}
|
||||||
|
{{-- </div>--}}
|
||||||
|
{{-- @else--}}
|
||||||
|
{{-- <div class="news_list_item">--}}
|
||||||
|
{{-- <div class="txt flexcolumn jc_sb" data-href="{{ $info->link }}">--}}
|
||||||
|
{{-- <div class="naturalCont">--}}
|
||||||
|
{{-- <div class="naturalCont-title">--}}
|
||||||
|
{{-- <div class="title">{{ $info->title }}</div>--}}
|
||||||
|
{{-- <div class="flexrow getMore">{{ $info->description1 ?? ''}}--}}
|
||||||
|
{{-- </div>--}}
|
||||||
|
{{-- </div>--}}
|
||||||
|
{{-- </div>--}}
|
||||||
|
{{-- </div>--}}
|
||||||
|
{{-- <div class="img" style="background-image:url({{ $info->cover_path }})">--}}
|
||||||
|
{{-- <div class="sanjiao2 pos_abs"></div>--}}
|
||||||
|
{{-- </div>--}}
|
||||||
|
{{-- </div>--}}
|
||||||
|
{{-- @endif--}}
|
||||||
|
{{-- @endforeach--}}
|
||||||
|
{{-- @endif--}}
|
||||||
|
{{-- </div>--}}
|
||||||
|
<div class="news_list_content1">
|
||||||
|
@if (getArticlesBYCate(17,8,'all')->isNotEmpty())
|
||||||
|
@foreach (getArticlesBYCate(17,8,'all') as $info)
|
||||||
|
<div class="news_list_item1" data-href="{{ $info->link }}">
|
||||||
|
<div style="background-image:url({{ $info->cover_path }})"></div>
|
||||||
|
<span>{{ $info->title }}</span>
|
||||||
|
</div>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- 创新团队 开始 -->
|
<!-- 创新团队 开始 -->
|
||||||
<div class="words11">
|
<div class="words11">
|
||||||
<div class="words11_zzgz_xfgz" style="width: 580px">
|
<div class="words11_zzgz_xfgz" style="width: 250px">
|
||||||
<div class="words11_zzgz_xfgz_title">
|
<div class="words11_zzgz_xfgz_title">
|
||||||
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(43,'title') }}</font>
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(43,'title') }}</font>
|
||||||
<span><a href="{{ getOneCategory(43,'link') }}">更多 >></a></span>
|
<span><a href="{{ getOneCategory(43,'link') }}">更多 >></a></span>
|
||||||
@@ -138,76 +196,157 @@
|
|||||||
<div class="words11_zzgz_xfgz_content">
|
<div class="words11_zzgz_xfgz_content">
|
||||||
@if (getArticlesBYCate(43,6,'all')->isNotEmpty())
|
@if (getArticlesBYCate(43,6,'all')->isNotEmpty())
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="focus" style="width: 100%; height: 160px; margin: 0 0 10px">
|
|
||||||
@foreach (getArticlesBYCate(43,6,'all') as $article)
|
|
||||||
@if ($loop->iteration<=2)
|
|
||||||
<img data-href="{{ $article->link }}" src="{{ $article->cover_path }}" style="width: calc(50% - 5px); height: 100%; margin-right: 5px">
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
<div class="tem">
|
<div class="tem">
|
||||||
<ul>
|
<ul>
|
||||||
@foreach (getArticlesBYCate(43,6,'all') as $article)
|
@foreach (getArticlesBYCate(43,12,'all') as $article)
|
||||||
@if ($loop->iteration<=3)
|
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ $article->link }}">
|
<a href="{{ $article->link }}">
|
||||||
<img src="/assets/index/images/icon.png">{{ $article->title }}
|
<img src="/assets/index/images/icon.png">{{ $article->title }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
<ul>
|
|
||||||
@foreach (getArticlesBYCate(43,6,'all') as $article)
|
|
||||||
@if ($loop->iteration >3)
|
|
||||||
<li>
|
|
||||||
<a href="{{ $article->link }}">
|
|
||||||
<img src="/assets/index/images/icon.png">{{ $article->title }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
@endif
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="words11_zzgz_xfgz" style="margin-left: 15px;">
|
{{--科技平台--}}
|
||||||
|
<div class="words11_zzgz_xfgz" style="margin-left: 15px;width:640px">
|
||||||
<div class="words11_zzgz_xfgz_title">
|
<div class="words11_zzgz_xfgz_title">
|
||||||
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(18,'title') }}</font><span><a>更多 >></a></span>
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(18,'title') }}</font><span><a>更多 >></a></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="news-con">
|
<div class="news-con">
|
||||||
@if (getArticlesBYCate(18,4)->isNotEmpty())
|
@if (getArticlesBYCate(18,8)->isNotEmpty())
|
||||||
<div class="focus" data-herf="{{ getArticlesBYCate(18,4)->first()->link }}">
|
<div class="swiper-container1" style='margin-top:10px;'>
|
||||||
<img src="{{ getArticlesBYCate(18,4)->first()->cover_path}}">
|
<div class="swiper-wrapper">
|
||||||
<p>{{ getArticlesBYCate(18,4)->first()->title}}</p>
|
@foreach (getArticlesBYCate(18,8) as $info)
|
||||||
|
<div class="swiper-slide " style='height:314px;background:url({{ $info->cover_path}}) no-repeat;background-size:cover;cursor:pointer;'>
|
||||||
|
<a href="{{ $info->link }}" class="banner_title">
|
||||||
|
<span>{{ $info->title }}</span>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
<div class="swiper-scrollbar" style='position:relative;top:0;'></div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{-- 政府决策服务--}}
|
||||||
|
<div class="words11_zzgz_xfgz" style="margin-left: 15px;width: 250px">
|
||||||
|
<div class="words11_zzgz_xfgz" style="width: 250px">
|
||||||
|
<div class="words11_zzgz_xfgz_title">
|
||||||
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(8,'title')}}</font>
|
||||||
|
<span><a href="{{ getOneCategory(8,'link') }}">更多 >></a></span>
|
||||||
|
</div>
|
||||||
|
<div class="words11_zzgz_xfgz_content">
|
||||||
|
@if (getArticlesBYCate(8,6,'all')->isNotEmpty())
|
||||||
|
<div class="box">
|
||||||
|
<div class="tem">
|
||||||
|
<ul>
|
||||||
|
@foreach (getArticlesBYCate(8,12) as $info)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">
|
||||||
|
<img src="/assets/index/images/icon.png">{{ $info->title }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 省级领军人才梯队-->
|
||||||
|
<div class="col-box">
|
||||||
|
<div class="news-txt col-3 " style="width: 246px">
|
||||||
|
<div class="news-title">
|
||||||
|
<div class="news-name tab-nav j-tab-nav">
|
||||||
|
<a href="javascript:void(0);" class="current">{{ getOneCategory(127,'title')}}<i></i></a>
|
||||||
|
</div>
|
||||||
|
<a href="{{ getOneCategory(127,'link') }}" class="more">更多 >></a>
|
||||||
|
</div>
|
||||||
|
<div class="news-con">
|
||||||
|
<div class="j-tab-con">
|
||||||
|
<div class="tab-con-item news-con" style="display: block;">
|
||||||
|
@if (getArticlesBYCate(127,3)->isNotEmpty())
|
||||||
<ul class="newslist">
|
<ul class="newslist">
|
||||||
@foreach (getArticlesBYCate(18,4) as $info)
|
@foreach (getArticlesBYCate(127,3) as $info)
|
||||||
@if ($loop->iteration>1)
|
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ $info->link }}">{{ $info->title }}</a>
|
<a href="{{ $info->link }}">{{ $info->title }}</a>
|
||||||
</li>
|
</li>
|
||||||
@endif
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{--院级领军人才梯队--}}
|
||||||
|
<div class="news-title">
|
||||||
|
<div class="news-name tab-nav j-tab-nav">
|
||||||
|
<a href="javascript:void(0);" class="current">{{ getOneCategory(176,'title')}}<i></i></a>
|
||||||
|
</div>
|
||||||
|
<a href="{{ getOneCategory(176,'link')}}" class="more">更多 >></a>
|
||||||
|
</div>
|
||||||
|
<div class="news-con">
|
||||||
|
<div class="j-tab-con">
|
||||||
|
<div class="tab-con-item news-con" style="display: block;">
|
||||||
|
@if (getArticlesBYCate(176,3)->isNotEmpty())
|
||||||
|
<ul class="newslist">
|
||||||
|
@foreach (getArticlesBYCate(176,3) as $info)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">{{ $info->title }}</a>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="words11_zzgz_xfgz" style="margin-left: 15px;width: 200px">
|
{{-- 专家学者--}}
|
||||||
<div class="words11_zzgz_xfgz_title">
|
|
||||||
<font style="border-bottom: 2px solid #4c951c;">论坛</font>
|
<div class="news-txt col-3" style="width:640px">
|
||||||
|
<div class="news-title">
|
||||||
|
<div class="name">{{ getOneCategory(74,'title') }}<i></i></div>
|
||||||
|
<a href="{{ getOneCategory(74,'link') }}" class="more">更多 >></a>
|
||||||
|
</div>
|
||||||
|
<div class="news-con">
|
||||||
|
@if (getArticlesBYCate(74,5)->isNotEmpty())
|
||||||
|
<div class="swiper-container2" style='margin-top:10px;'>
|
||||||
|
<div class="swiper-wrapper">
|
||||||
|
@foreach (getArticlesBYCate(74,5) as $info)
|
||||||
|
<div class="swiper-slide " style='position:relative;'>
|
||||||
|
<div style='height:248px;background:url({{ $info->cover_path}}) no-repeat;background-size:cover;cursor:pointer;'></div>
|
||||||
|
<a href="{{ $article->link }}" class="worker_title">
|
||||||
|
{{ $info->title }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
<div class="swiper-scrollbar" style='position:relative;top:0;'></div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="news-txt col-3 last" style="width: 250px">
|
||||||
|
<div class="news-title">
|
||||||
|
<div class="name">论坛<i></i></div>
|
||||||
|
{{-- <a href="{{ getOneCategory(8,'link') }}" class="more">更多 >></a>--}}
|
||||||
</div>
|
</div>
|
||||||
<div class="poster">
|
<div class="poster">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
@if ($lt_adverts->isNotEmpty())
|
@if ($lt_adverts->isNotEmpty())
|
||||||
<ul>
|
<ul>
|
||||||
@foreach ($lt_adverts as $advert)
|
@foreach ($lt_adverts as $advert)
|
||||||
<li data-herf="{{ $advert->url }}">
|
<li data-herf="{{ $advert->url }}" class="lt_adverts_c" style="background-image:url({{ $advert->cover_path }});">
|
||||||
<img src="{{ $advert->cover_path }}">
|
<!-- <img src="{{ $advert->cover_path }}"/> -->
|
||||||
|
{{ $advert->title }}
|
||||||
</li>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
@@ -215,86 +354,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<!-- 领军人才-->
|
|
||||||
<div class="col-box">
|
|
||||||
<div class="news-txt col-3">
|
|
||||||
<div class="news-title">
|
|
||||||
<div class="name">{{ getOneCategory(127,'title') }}<i></i></div>
|
|
||||||
<a href="{{ getOneCategory(127,'link') }}" class="more">更多 >></a>
|
|
||||||
</div>
|
|
||||||
<div class="news-con">
|
|
||||||
@if (getArticlesBYCate(127,4)->isNotEmpty())
|
|
||||||
<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>
|
|
||||||
<ul class="newslist">
|
|
||||||
@foreach (getArticlesBYCate(127,4) as $info)
|
|
||||||
@if ($loop->iteration>1)
|
|
||||||
<li>
|
|
||||||
<a href="{{ $info->link }}">{{ $info->title }}</a>
|
|
||||||
</li>
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
@endif
|
|
||||||
</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>
|
|
||||||
</div>
|
|
||||||
<div class="news-con">
|
|
||||||
|
|
||||||
@if (getArticlesBYCate(8,4)->isNotEmpty())
|
|
||||||
<div class="focus" data-herf="{{ getArticlesBYCate(8,4)->first()->link }}">
|
|
||||||
<img src="{{ getArticlesBYCate(8,4)->first()->cover_path}}">
|
|
||||||
<p>{{ getArticlesBYCate(8,4)->first()->title}}</p>
|
|
||||||
</div>
|
|
||||||
<ul class="newslist">
|
|
||||||
@foreach (getArticlesBYCate(8,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 class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 友情链接 -->
|
<!-- 友情链接 -->
|
||||||
<div class="col-2-r">
|
<div class="col-2-r">
|
||||||
<div class="linksbox" id="link">
|
<div class="linksbox" id="link">
|
||||||
@@ -364,6 +426,29 @@
|
|||||||
animation: 'fadein',
|
animation: 'fadein',
|
||||||
auto: false
|
auto: false
|
||||||
});
|
});
|
||||||
|
$("#leaders").rTabs({
|
||||||
|
bind: 'hover',
|
||||||
|
animation: 'fadein',
|
||||||
|
auto: false
|
||||||
|
});
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var mySwiper = new Swiper('.swiper-container1', {
|
||||||
|
loop: true,
|
||||||
|
autoplay: 5000,//可选选项,自动滑动
|
||||||
|
autoplayDisableOnInteraction: false,
|
||||||
|
scrollbar: '.swiper-scrollbar',
|
||||||
|
// slidesPerView : 3,
|
||||||
|
// centeredSlides : true,
|
||||||
|
})
|
||||||
|
var mySwiper = new Swiper('.swiper-container2', {
|
||||||
|
loop: true,
|
||||||
|
autoplay: 5000,//可选选项,自动滑动
|
||||||
|
slidesPerView: 3,
|
||||||
|
centeredSlides: true,
|
||||||
|
scrollbar: '.swiper-scrollbar',
|
||||||
|
autoplayDisableOnInteraction: false
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
@endpush
|
@endpush
|
||||||
|
|||||||
363
resources/views/index/index(beifen2).blade.php
Normal file
363
resources/views/index/index(beifen2).blade.php
Normal file
@@ -0,0 +1,363 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
|
||||||
|
@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">
|
||||||
|
<!--轮播图 新闻动态 -->
|
||||||
|
<div class="news-notice">
|
||||||
|
<div class="indnews">
|
||||||
|
<div class="news-pic">
|
||||||
|
<div id="newspic" class="slideBox">
|
||||||
|
<ul class="items">
|
||||||
|
@if ($adverts->isNotEmpty())
|
||||||
|
@foreach ($adverts as $advert)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $advert->url }}" title="{{ $advert->title }}"><img src="{{ $advert->cover_path }}"></a>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="news-txt" id="news">
|
||||||
|
<div class="news-title">
|
||||||
|
<div class="news-name tab-nav j-tab-nav">
|
||||||
|
<a href="javascript:void(0);" class="current">{{ getOneCategory(53,'title') }}<i></i></a>
|
||||||
|
<a href="javascript:void(0);" class="">{{ getOneCategory(54,'title') }}<i></i></a>
|
||||||
|
</div>
|
||||||
|
<a href="#" class="more">更多 >></a>
|
||||||
|
</div>
|
||||||
|
<div class="tab-con">
|
||||||
|
<div class="j-tab-con">
|
||||||
|
<div class="tab-con-item news-con" style="display: block;">
|
||||||
|
@if (getArticlesBYCate(53,6)->isNotEmpty())
|
||||||
|
<div class="hotnews">
|
||||||
|
<h1>{{ getArticlesBYCate(53,6)->first()->title}}</h1>
|
||||||
|
<div class="hotcon">
|
||||||
|
<a href="getArticlesBYCate(53,6)->first()->link">{{ getArticlesBYCate(53,6)->first()->description }} </a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ul class="newslist">
|
||||||
|
@foreach (getArticlesBYCate(53,6) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">{{ $info->title }}</a><span>{{ $info->created_at->format('Y-m-d') }}</span>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
<div class="tab-con-item news-con" style="display: none;">
|
||||||
|
@if (getArticlesBYCate(54,6)->isNotEmpty())
|
||||||
|
<div class="hotnews">
|
||||||
|
<h1>{{ getArticlesBYCate(54,6)->first()->title}}</h1>
|
||||||
|
<div class="hotcon">
|
||||||
|
<a href="getArticlesBYCate(54,6)->first()->link">{{ getArticlesBYCate(54,6)->first()->description }} </a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ul class="newslist">
|
||||||
|
@foreach (getArticlesBYCate(54,6) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">{{ $info->title }}</a><span>{{ $info->created_at->format('Y-m-d') }}</span>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="clearfix"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 科学研究与特色品牌建设 开始 -->
|
||||||
|
<div class="" style="width: 100%;">
|
||||||
|
<div class="words11_zzgz_xfgz_title">
|
||||||
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(17,'title') }}</font>
|
||||||
|
<span><a href="{{ getOneCategory(17,'link') }}">更多 >></a></span>
|
||||||
|
</div>
|
||||||
|
<div class="news_list_content flexrow jc_start">
|
||||||
|
@if (getArticlesBYCate(17,8,'all')->isNotEmpty())
|
||||||
|
@foreach (getArticlesBYCate(17,8,'all') as $info)
|
||||||
|
@if ($loop->odd)
|
||||||
|
<div class="news_list_item ">
|
||||||
|
<div class="img" style="background-image:url({{ $info->cover_path }})">
|
||||||
|
<div class="sanjiao pos_abs"></div>
|
||||||
|
</div>
|
||||||
|
<div class="txt flexcolumn jc_sb" data-href="{{ $info->link }}">
|
||||||
|
<div class="naturalCont">
|
||||||
|
<div class="naturalCont-title">
|
||||||
|
<div class="title">{{ $info->title }}</div>
|
||||||
|
<!-- <div class="overflow4 "> {{ $info->description }}</div> -->
|
||||||
|
<div class="flexrow getMore overflow2">{{ $info->description1 ?? '' }}
|
||||||
|
<!-- <img src="/assets/index/images/right.png"> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@else
|
||||||
|
<div class="news_list_item">
|
||||||
|
<div class="txt flexcolumn jc_sb" data-href="{{ $info->link }}">
|
||||||
|
<div class="naturalCont">
|
||||||
|
<div class="naturalCont-title">
|
||||||
|
<div class="title">{{ $info->title }}</div>
|
||||||
|
<!-- <div class="overflow4 "> {{ $info->description }}</div> -->
|
||||||
|
<div class="flexrow getMore">{{ $info->description1 ?? ''}}
|
||||||
|
<!-- <img src="/assets/index/images/right.png"> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="img" style="background-image:url({{ $info->cover_path }})">
|
||||||
|
<div class="sanjiao2 pos_abs"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 创新团队 开始 -->
|
||||||
|
<div class="words11">
|
||||||
|
<div class="words11_zzgz_xfgz" style="width: 250px">
|
||||||
|
<div class="words11_zzgz_xfgz_title">
|
||||||
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(43,'title') }}</font>
|
||||||
|
<span><a href="{{ getOneCategory(43,'link') }}">更多 >></a></span>
|
||||||
|
</div>
|
||||||
|
<div class="words11_zzgz_xfgz_content">
|
||||||
|
@if (getArticlesBYCate(43,6,'all')->isNotEmpty())
|
||||||
|
<div class="box">
|
||||||
|
<div class="tem">
|
||||||
|
<ul>
|
||||||
|
@foreach (getArticlesBYCate(43,12,'all') as $article)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $article->link }}">
|
||||||
|
<img src="/assets/index/images/icon.png">{{ $article->title }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="words11_zzgz_xfgz" style="margin-left: 15px;width:640px">
|
||||||
|
<div class="words11_zzgz_xfgz_title">
|
||||||
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(18,'title') }}</font><span><a>更多 >></a></span>
|
||||||
|
</div>
|
||||||
|
<div class="news-con">
|
||||||
|
@if (getArticlesBYCate(18,8)->isNotEmpty())
|
||||||
|
<div class="swiper-container1" style='margin-top:10px;'>
|
||||||
|
<div class="swiper-wrapper">
|
||||||
|
@foreach (getArticlesBYCate(18,8) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<div class="swiper-slide " style='height:314px;background:url({{ $info->cover_path}}) no-repeat;background-size:cover;cursor:pointer;'>
|
||||||
|
<a href="{{ $info->link }}" class="banner_title">
|
||||||
|
<span>{{ $info->title }}</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
<div class="swiper-pagination"></div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="words11_zzgz_xfgz" style="margin-left: 15px;width: 250px">
|
||||||
|
<div class="words11_zzgz_xfgz" style="width: 250px">
|
||||||
|
<div class="words11_zzgz_xfgz_title">
|
||||||
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(8,'title')}}</font>
|
||||||
|
<span><a href="{{ getOneCategory(43,'link') }}">更多 >></a></span>
|
||||||
|
</div>
|
||||||
|
<div class="words11_zzgz_xfgz_content">
|
||||||
|
@if (getArticlesBYCate(43,6,'all')->isNotEmpty())
|
||||||
|
<div class="box">
|
||||||
|
<div class="tem">
|
||||||
|
<ul>
|
||||||
|
@foreach (getArticlesBYCate(8,12) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}"> <img src="/assets/index/images/icon.png">{{ $info->title }}</a>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 领军人才-->
|
||||||
|
<div class="col-box">
|
||||||
|
<div class="news-txt col-3" style="width: 248px">
|
||||||
|
<div class="news-title">
|
||||||
|
<div class="name">{{ getOneCategory(127,'title') }}<i></i></div>
|
||||||
|
<a href="{{ getOneCategory(127,'link') }}" class="more">更多 >></a>
|
||||||
|
</div>
|
||||||
|
<div class="news-con">
|
||||||
|
@if (getArticlesBYCate(127,4)->isNotEmpty())
|
||||||
|
<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>
|
||||||
|
<ul class="newslist">
|
||||||
|
@foreach (getArticlesBYCate(127,4) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">{{ $info->title }}</a>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="news-txt col-3" style="width:636px">
|
||||||
|
<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" style="width: 250px">
|
||||||
|
<div class="news-title">
|
||||||
|
<div class="name">{{ getOneCategory(8,'title') }}<i></i></div>
|
||||||
|
<a href="{{ getOneCategory(8,'link') }}" class="more">更多 >></a>
|
||||||
|
</div>
|
||||||
|
<div class="news-con">
|
||||||
|
@if (getArticlesBYCate(8,4)->isNotEmpty())
|
||||||
|
<!-- <div class="focus" data-herf="{{ getArticlesBYCate(8,4)->first()->link }}">
|
||||||
|
<img src="{{ getArticlesBYCate(8,4)->first()->cover_path}}">
|
||||||
|
<p>{{ getArticlesBYCate(8,4)->first()->title}}</p>
|
||||||
|
</div> -->
|
||||||
|
<ul class="newslist">
|
||||||
|
@foreach (getArticlesBYCate(8,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>
|
||||||
|
<!-- 友情链接 -->
|
||||||
|
<div class="col-2-r">
|
||||||
|
<div class="linksbox" id="link">
|
||||||
|
<div class="txtlisttit linktit"><span>友情链接</span>
|
||||||
|
</div>
|
||||||
|
<div class="listcon tab-con">
|
||||||
|
<div class="j-tab-con">
|
||||||
|
<div class="tab-con-item linkcon" style="display: block;">
|
||||||
|
<ul class="linkslist">
|
||||||
|
@if ($links->isNotEmpty())
|
||||||
|
@foreach ($links as $link)
|
||||||
|
<li><a href="{{ $link->url }}" target="_blank">{{ $link->title }}</a></li>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</ul>
|
||||||
|
<div class="clearfix"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@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/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.1,//滚动持续时间,单位:秒
|
||||||
|
easing: 'linear',//swing,linear//滚动特效
|
||||||
|
delay: 5,//滚动延迟时间,单位:秒
|
||||||
|
hideClickBar: false,//不自动隐藏点选按键
|
||||||
|
clickBarRadius: 10
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function () {
|
||||||
|
$("#link").rTabs({
|
||||||
|
bind: 'hover',
|
||||||
|
animation: 'fadein',
|
||||||
|
auto: false
|
||||||
|
});
|
||||||
|
$("#news").rTabs({
|
||||||
|
bind: 'hover',
|
||||||
|
animation: 'fadein',
|
||||||
|
auto: false
|
||||||
|
});
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var mySwiper = new Swiper('.swiper-container1', {
|
||||||
|
loop : true,
|
||||||
|
autoplay: 2000,//可选选项,自动滑动
|
||||||
|
// slidesPerView : 3,
|
||||||
|
// centeredSlides : true,
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
412
resources/views/index/index(beifen3).blade.php
Normal file
412
resources/views/index/index(beifen3).blade.php
Normal file
@@ -0,0 +1,412 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
|
||||||
|
@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">
|
||||||
|
<!--轮播图 新闻动态 -->
|
||||||
|
<div class="news-notice">
|
||||||
|
<div class="indnews">
|
||||||
|
<div class="news-pic">
|
||||||
|
<div id="newspic" class="slideBox">
|
||||||
|
<ul class="items">
|
||||||
|
@if ($adverts->isNotEmpty())
|
||||||
|
@foreach ($adverts as $advert)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $advert->url }}" title="{{ $advert->title }}"><img src="{{ $advert->cover_path }}"></a>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="news-txt" id="news">
|
||||||
|
<div class="news-title">
|
||||||
|
<div class="news-name tab-nav j-tab-nav">
|
||||||
|
<a href="javascript:void(0);" class="current">{{ getOneCategory(53,'title') }}<i></i></a>
|
||||||
|
<a href="javascript:void(0);" class="">{{ getOneCategory(54,'title') }}<i></i></a>
|
||||||
|
</div>
|
||||||
|
<a href="#" class="more">更多 >></a>
|
||||||
|
</div>
|
||||||
|
<div class="tab-con">
|
||||||
|
<div class="j-tab-con">
|
||||||
|
<div class="tab-con-item news-con" style="display: block;">
|
||||||
|
@if (getArticlesBYCate(53,8)->isNotEmpty())
|
||||||
|
<div class="hotnews">
|
||||||
|
<h1><a href="{{getArticlesBYCate(53,8)->first()->link}}">{{ getArticlesBYCate(53,8)->first()->title}}</a></h1>
|
||||||
|
<!-- <div class="hotcon">
|
||||||
|
<a href="getArticlesBYCate(53,8)->first()->link">{{ getArticlesBYCate(53,8)->first()->description }} </a>
|
||||||
|
</div> -->
|
||||||
|
</div>
|
||||||
|
<ul class="newslist">
|
||||||
|
@foreach (getArticlesBYCate(53,8) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">{{ $info->title }}</a><span>{{ $info->created_at->format('Y-m-d') }}</span>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
<div class="tab-con-item news-con" style="display: none;">
|
||||||
|
@if (getArticlesBYCate(54,8)->isNotEmpty())
|
||||||
|
<div class="hotnews">
|
||||||
|
<h1> <a href="{{getArticlesBYCate(54,8)->first()->link}}">{{ getArticlesBYCate(54,8)->first()->title}}</a></h1>
|
||||||
|
<!-- <div class="hotcon">
|
||||||
|
<a href="getArticlesBYCate(54,8)->first()->link">{{ getArticlesBYCate(54,7)->first()->description }} </a>
|
||||||
|
</div> -->
|
||||||
|
</div>
|
||||||
|
<ul class="newslist">
|
||||||
|
@foreach (getArticlesBYCate(54,8) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">{{ $info->title }}</a><span>{{ $info->created_at->format('Y-m-d') }}</span>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="clearfix"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 科学研究与特色品牌建设 开始 -->
|
||||||
|
<div class="" style="width: 100%;">
|
||||||
|
<div class="words11_zzgz_xfgz_title">
|
||||||
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(17,'title') }}</font>
|
||||||
|
<span><a href="{{ getOneCategory(17,'link') }}">更多 >></a></span>
|
||||||
|
</div>
|
||||||
|
<div class="news_list_content flexrow jc_start">
|
||||||
|
@if (getArticlesBYCate(17,8,'all')->isNotEmpty())
|
||||||
|
@foreach (getArticlesBYCate(17,8,'all') as $info)
|
||||||
|
@if ($loop->odd)
|
||||||
|
<div class="news_list_item ">
|
||||||
|
<div class="img" style="background-image:url({{ $info->cover_path }})">
|
||||||
|
<div class="sanjiao pos_abs"></div>
|
||||||
|
</div>
|
||||||
|
<div class="txt flexcolumn jc_sb" data-href="{{ $info->link }}">
|
||||||
|
<div class="naturalCont">
|
||||||
|
<div class="naturalCont-title">
|
||||||
|
<div class="title">{{ $info->title }}</div>
|
||||||
|
<!-- <div class="overflow4 "> {{ $info->description }}</div> -->
|
||||||
|
<div class="flexrow getMore overflow2">{{ $info->description1 ?? '' }}
|
||||||
|
<!-- <img src="/assets/index/images/right.png"> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@else
|
||||||
|
<div class="news_list_item">
|
||||||
|
<div class="txt flexcolumn jc_sb" data-href="{{ $info->link }}">
|
||||||
|
<div class="naturalCont">
|
||||||
|
<div class="naturalCont-title">
|
||||||
|
<div class="title">{{ $info->title }}</div>
|
||||||
|
<!-- <div class="overflow4 "> {{ $info->description }}</div> -->
|
||||||
|
<div class="flexrow getMore">{{ $info->description1 ?? ''}}
|
||||||
|
<!-- <img src="/assets/index/images/right.png"> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="img" style="background-image:url({{ $info->cover_path }})">
|
||||||
|
<div class="sanjiao2 pos_abs"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 创新团队 开始 -->
|
||||||
|
<div class="words11">
|
||||||
|
<div class="words11_zzgz_xfgz" style="width: 250px">
|
||||||
|
<div class="words11_zzgz_xfgz_title">
|
||||||
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(43,'title') }}</font>
|
||||||
|
<span><a href="{{ getOneCategory(43,'link') }}">更多 >></a></span>
|
||||||
|
</div>
|
||||||
|
<div class="words11_zzgz_xfgz_content">
|
||||||
|
@if (getArticlesBYCate(43,6,'all')->isNotEmpty())
|
||||||
|
<div class="box">
|
||||||
|
<div class="tem">
|
||||||
|
<ul>
|
||||||
|
@foreach (getArticlesBYCate(43,12,'all') as $article)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $article->link }}">
|
||||||
|
<img src="/assets/index/images/icon.png">{{ $article->title }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="words11_zzgz_xfgz" style="margin-left: 15px;width:640px">
|
||||||
|
<div class="words11_zzgz_xfgz_title">
|
||||||
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(18,'title') }}</font><span><a>更多 >></a></span>
|
||||||
|
</div>
|
||||||
|
<div class="news-con">
|
||||||
|
@if (getArticlesBYCate(18,8)->isNotEmpty())
|
||||||
|
<div class="swiper-container1" style='margin-top:10px;'>
|
||||||
|
<div class="swiper-wrapper">
|
||||||
|
@foreach (getArticlesBYCate(18,8) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<div class="swiper-slide " style='height:314px;background:url({{ $info->cover_path}}) no-repeat;background-size:cover;cursor:pointer;'>
|
||||||
|
<a href="{{ $info->link }}" class="banner_title">
|
||||||
|
<span>{{ $info->title }}</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
<div class="swiper-pagination"></div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="words11_zzgz_xfgz" style="margin-left: 15px;width: 250px">
|
||||||
|
<div class="words11_zzgz_xfgz" style="width: 250px">
|
||||||
|
<div class="words11_zzgz_xfgz_title">
|
||||||
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(8,'title')}}</font>
|
||||||
|
<span><a href="{{ getOneCategory(43,'link') }}">更多 >></a></span>
|
||||||
|
</div>
|
||||||
|
<div class="words11_zzgz_xfgz_content">
|
||||||
|
@if (getArticlesBYCate(43,6,'all')->isNotEmpty())
|
||||||
|
<div class="box">
|
||||||
|
<div class="tem">
|
||||||
|
<ul>
|
||||||
|
@foreach (getArticlesBYCate(8,12) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}"> <img src="/assets/index/images/icon.png">{{ $info->title }}</a>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 领军人才-->
|
||||||
|
<div class="col-box">
|
||||||
|
<div class="news-txt col-3 " style="width: 246px">
|
||||||
|
<div class="news-title">
|
||||||
|
<div class="news-name tab-nav j-tab-nav">
|
||||||
|
<a href="javascript:void(0);" class="current">省级领军人才梯队<i></i></a>
|
||||||
|
</div>
|
||||||
|
<a href="#" class="more">更多 >></a>
|
||||||
|
</div>
|
||||||
|
<div class="news-con">
|
||||||
|
<div class="j-tab-con">
|
||||||
|
<div class="tab-con-item news-con" style="display: block;">
|
||||||
|
@if (getArticlesBYCate(127,4)->isNotEmpty())
|
||||||
|
<ul class="newslist">
|
||||||
|
<!-- @foreach (getArticlesBYCate(127,4) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">{{ $info->title }}</a>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach -->
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">生态学科</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">植物学科</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">园林植物学</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="news-title">
|
||||||
|
<div class="news-name tab-nav j-tab-nav">
|
||||||
|
<a href="javascript:void(0);" class="current">院级领军人才梯队<i></i></a>
|
||||||
|
</div>
|
||||||
|
<a href="#" class="more">更多 >></a>
|
||||||
|
</div>
|
||||||
|
<div class="news-con">
|
||||||
|
<div class="j-tab-con">
|
||||||
|
<div class="tab-con-item news-con" style="display: block;">
|
||||||
|
@if (getArticlesBYCate(127,4)->isNotEmpty())
|
||||||
|
<ul class="newslist">
|
||||||
|
<!-- @foreach (getArticlesBYCate(127,4) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">{{ $info->title }}</a>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach -->
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">野生动物保护与利用学科</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">区域地理学</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">火山学科</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="news-txt col-3" style="width:640px">
|
||||||
|
<div class="news-title">
|
||||||
|
<div class="name">{{ getOneCategory(74,'title') }}<i></i></div>
|
||||||
|
<a href="{{ getOneCategory(74,'link') }}" class="more">更多 >></a>
|
||||||
|
</div>
|
||||||
|
<div class="news-con">
|
||||||
|
@if (getArticlesBYCate(74,5)->isNotEmpty())
|
||||||
|
<div class="swiper-container2" style='margin-top:10px;'>
|
||||||
|
<div class="swiper-wrapper">
|
||||||
|
@foreach (getArticlesBYCate(74,5) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<div class="swiper-slide " style='position:relative;' >
|
||||||
|
<div style='height:248px;background:url({{ $info->cover_path}}) no-repeat;background-size:cover;cursor:pointer;'></div>
|
||||||
|
<a href="{{ $article->link }}" class="worker_title">
|
||||||
|
{{ $info->title }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
<div class="swiper-pagination"></div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="news-txt col-3 last" style="width: 250px">
|
||||||
|
<div class="news-title">
|
||||||
|
<div class="name">论坛<i></i></div>
|
||||||
|
<a href="{{ getOneCategory(8,'link') }}" class="more">更多 >></a>
|
||||||
|
</div>
|
||||||
|
<div class="poster">
|
||||||
|
<div class="box">
|
||||||
|
@if ($lt_adverts->isNotEmpty())
|
||||||
|
<ul>
|
||||||
|
@foreach ($lt_adverts as $advert)
|
||||||
|
<li data-herf="{{ $advert->url }}" class="lt_adverts_c" style="background-image:url({{ $advert->cover_path }});">
|
||||||
|
<!-- <img src="{{ $advert->cover_path }}"/> -->
|
||||||
|
{{ $advert->title }}
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="clearfix"></div>
|
||||||
|
</div>
|
||||||
|
<!-- 友情链接 -->
|
||||||
|
<div class="col-2-r">
|
||||||
|
<div class="linksbox" id="link">
|
||||||
|
<div class="txtlisttit linktit"><span>友情链接</span>
|
||||||
|
</div>
|
||||||
|
<div class="listcon tab-con">
|
||||||
|
<div class="j-tab-con">
|
||||||
|
<div class="tab-con-item linkcon" style="display: block;">
|
||||||
|
<ul class="linkslist">
|
||||||
|
@if ($links->isNotEmpty())
|
||||||
|
@foreach ($links as $link)
|
||||||
|
<li><a href="{{ $link->url }}" target="_blank">{{ $link->title }}</a></li>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</ul>
|
||||||
|
<div class="clearfix"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@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/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.1,//滚动持续时间,单位:秒
|
||||||
|
easing: 'linear',//swing,linear//滚动特效
|
||||||
|
delay: 5,//滚动延迟时间,单位:秒
|
||||||
|
hideClickBar: false,//不自动隐藏点选按键
|
||||||
|
clickBarRadius: 10
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function () {
|
||||||
|
$("#link").rTabs({
|
||||||
|
bind: 'hover',
|
||||||
|
animation: 'fadein',
|
||||||
|
auto: false
|
||||||
|
});
|
||||||
|
$("#news").rTabs({
|
||||||
|
bind: 'hover',
|
||||||
|
animation: 'fadein',
|
||||||
|
auto: false
|
||||||
|
});
|
||||||
|
$("#leaders").rTabs({
|
||||||
|
bind: 'hover',
|
||||||
|
animation: 'fadein',
|
||||||
|
auto: false
|
||||||
|
});
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var mySwiper = new Swiper('.swiper-container1', {
|
||||||
|
loop : true,
|
||||||
|
autoplay: 2000,//可选选项,自动滑动
|
||||||
|
// slidesPerView : 3,
|
||||||
|
// centeredSlides : true,
|
||||||
|
})
|
||||||
|
var mySwiper = new Swiper('.swiper-container2', {
|
||||||
|
loop : true,
|
||||||
|
autoplay: 2000,//可选选项,自动滑动
|
||||||
|
slidesPerView : 3,
|
||||||
|
centeredSlides : true,
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
377
resources/views/index/index(beifne ).blade.php
Normal file
377
resources/views/index/index(beifne ).blade.php
Normal file
@@ -0,0 +1,377 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
|
||||||
|
@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">
|
||||||
|
<!--轮播图 新闻动态 -->
|
||||||
|
<div class="news-notice">
|
||||||
|
<div class="indnews">
|
||||||
|
<div class="news-pic">
|
||||||
|
<div id="newspic" class="slideBox">
|
||||||
|
<ul class="items">
|
||||||
|
@if ($adverts->isNotEmpty())
|
||||||
|
@foreach ($adverts as $advert)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $advert->url }}" title="{{ $advert->title }}"><img src="{{ $advert->cover_path }}"></a>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="news-txt" id="news">
|
||||||
|
<div class="news-title">
|
||||||
|
<div class="news-name tab-nav j-tab-nav">
|
||||||
|
<a href="javascript:void(0);" class="current">{{ getOneCategory(53,'title') }}<i></i></a>
|
||||||
|
<a href="javascript:void(0);" class="">{{ getOneCategory(54,'title') }}<i></i></a>
|
||||||
|
</div>
|
||||||
|
<a href="#" class="more">更多 >></a>
|
||||||
|
</div>
|
||||||
|
<div class="tab-con">
|
||||||
|
<div class="j-tab-con">
|
||||||
|
<div class="tab-con-item news-con" style="display: block;">
|
||||||
|
@if (getArticlesBYCate(53,6)->isNotEmpty())
|
||||||
|
<div class="hotnews">
|
||||||
|
<h1>{{ getArticlesBYCate(53,6)->first()->title}}</h1>
|
||||||
|
<div class="hotcon">
|
||||||
|
<a href="getArticlesBYCate(53,6)->first()->link">{{ getArticlesBYCate(53,6)->first()->description }} </a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ul class="newslist">
|
||||||
|
@foreach (getArticlesBYCate(53,6) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">{{ $info->title }}</a><span>{{ $info->created_at->format('Y-m-d') }}</span>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
<div class="tab-con-item news-con" style="display: none;">
|
||||||
|
@if (getArticlesBYCate(54,6)->isNotEmpty())
|
||||||
|
<div class="hotnews">
|
||||||
|
<h1>{{ getArticlesBYCate(54,6)->first()->title}}</h1>
|
||||||
|
<div class="hotcon">
|
||||||
|
<a href="getArticlesBYCate(54,6)->first()->link">{{ getArticlesBYCate(54,6)->first()->description }} </a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ul class="newslist">
|
||||||
|
@foreach (getArticlesBYCate(54,6) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">{{ $info->title }}</a><span>{{ $info->created_at->format('Y-m-d') }}</span>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="clearfix"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 科学研究与特色品牌建设 开始 -->
|
||||||
|
<div class="" style="width: 100%;">
|
||||||
|
<div class="words11_zzgz_xfgz_title">
|
||||||
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(17,'title') }}</font>
|
||||||
|
<span><a href="{{ getOneCategory(17,'link') }}">更多 >></a></span>
|
||||||
|
</div>
|
||||||
|
<div class="news_list_content flexrow jc_start">
|
||||||
|
@if (getArticlesBYCate(17,8,'all')->isNotEmpty())
|
||||||
|
@foreach (getArticlesBYCate(17,8,'all') as $info)
|
||||||
|
@if ($loop->odd)
|
||||||
|
<div class="news_list_item ">
|
||||||
|
<div class="img" style="background-image:url({{ $info->cover_path }})">
|
||||||
|
<div class="sanjiao pos_abs"></div>
|
||||||
|
</div>
|
||||||
|
<div class="txt flexcolumn jc_sb" data-href="{{ $info->link }}">
|
||||||
|
<div class="naturalCont">
|
||||||
|
<div class="naturalCont-title">
|
||||||
|
<div class="title">{{ $info->title }}</div>
|
||||||
|
<!-- <div class="overflow4 "> {{ $info->description }}</div> -->
|
||||||
|
<div class="flexrow getMore overflow2">{{ $info->description1 ?? '' }}
|
||||||
|
<!-- <img src="/assets/index/images/right.png"> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@else
|
||||||
|
<div class="news_list_item">
|
||||||
|
<div class="txt flexcolumn jc_sb" data-href="{{ $info->link }}">
|
||||||
|
<div class="naturalCont">
|
||||||
|
<div class="naturalCont-title">
|
||||||
|
<div class="title">{{ $info->title }}</div>
|
||||||
|
<!-- <div class="overflow4 "> {{ $info->description }}</div> -->
|
||||||
|
<div class="flexrow getMore">{{ $info->description1 ?? ''}}
|
||||||
|
<!-- <img src="/assets/index/images/right.png"> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="img" style="background-image:url({{ $info->cover_path }})">
|
||||||
|
<div class="sanjiao2 pos_abs"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 创新团队 开始 -->
|
||||||
|
<div class="words11">
|
||||||
|
<div class="words11_zzgz_xfgz" style="width: 580px">
|
||||||
|
<div class="words11_zzgz_xfgz_title">
|
||||||
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(43,'title') }}</font>
|
||||||
|
<span><a href="{{ getOneCategory(43,'link') }}">更多 >></a></span>
|
||||||
|
</div>
|
||||||
|
<div class="words11_zzgz_xfgz_content">
|
||||||
|
@if (getArticlesBYCate(43,6,'all')->isNotEmpty())
|
||||||
|
<div class="box">
|
||||||
|
<div class="focus" style="width: 100%; height: 146px; margin: 0 0 10px">
|
||||||
|
@foreach (getArticlesBYCate(43,6,'all') as $article)
|
||||||
|
@if ($loop->iteration<=2)
|
||||||
|
<img data-href="{{ $article->link }}" src="{{ $article->cover_path }}" style="width: calc(50% - 5px); height: 100%; margin-right: 5px">
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
<div class="tem">
|
||||||
|
<ul>
|
||||||
|
@foreach (getArticlesBYCate(43,6,'all') as $article)
|
||||||
|
@if ($loop->iteration<=3)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $article->link }}">
|
||||||
|
<img src="/assets/index/images/icon.png">{{ $article->title }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
@foreach (getArticlesBYCate(43,6,'all') as $article)
|
||||||
|
@if ($loop->iteration >3)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $article->link }}">
|
||||||
|
<img src="/assets/index/images/icon.png">{{ $article->title }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="focus" style="width: 100%; height: 146px; margin: 0 0 10px">
|
||||||
|
@foreach (getArticlesBYCate(43,6,'all') as $article)
|
||||||
|
@if ($loop->iteration<=2)
|
||||||
|
<img data-href="{{ $article->link }}" src="{{ $article->cover_path }}" style="width: calc(50% - 5px); height: 100%; margin-right: 5px">
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="words11_zzgz_xfgz" style="margin-left: 15px;">
|
||||||
|
<div class="words11_zzgz_xfgz_title">
|
||||||
|
<font style="border-bottom: 2px solid #4c951c;">{{ getOneCategory(18,'title') }}</font><span><a>更多 >></a></span>
|
||||||
|
</div>
|
||||||
|
<div class="news-con">
|
||||||
|
@if (getArticlesBYCate(18,9)->isNotEmpty())
|
||||||
|
<div class="focus" data-herf="{{ getArticlesBYCate(18,9)->first()->link }}">
|
||||||
|
<img src="{{ getArticlesBYCate(18,9)->first()->cover_path}}">
|
||||||
|
<p>{{ getArticlesBYCate(18,9)->first()->title}}</p>
|
||||||
|
</div>
|
||||||
|
<ul class="newslist">
|
||||||
|
@foreach (getArticlesBYCate(18,9) 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">
|
||||||
|
<font style="border-bottom: 2px solid #4c951c;">论坛</font>
|
||||||
|
</div>
|
||||||
|
<div class="poster">
|
||||||
|
<div class="box">
|
||||||
|
@if ($lt_adverts->isNotEmpty())
|
||||||
|
<ul>
|
||||||
|
@foreach ($lt_adverts as $advert)
|
||||||
|
<li data-herf="{{ $advert->url }}">
|
||||||
|
<img src="{{ $advert->cover_path }}">
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 领军人才-->
|
||||||
|
<div class="col-box">
|
||||||
|
<div class="news-txt col-3">
|
||||||
|
<div class="news-title">
|
||||||
|
<div class="name">{{ getOneCategory(127,'title') }}<i></i></div>
|
||||||
|
<a href="{{ getOneCategory(127,'link') }}" class="more">更多 >></a>
|
||||||
|
</div>
|
||||||
|
<div class="news-con">
|
||||||
|
@if (getArticlesBYCate(127,4)->isNotEmpty())
|
||||||
|
<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>
|
||||||
|
<ul class="newslist">
|
||||||
|
@foreach (getArticlesBYCate(127,4) as $info)
|
||||||
|
@if ($loop->iteration>1)
|
||||||
|
<li>
|
||||||
|
<a href="{{ $info->link }}">{{ $info->title }}</a>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@endif
|
||||||
|
</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>
|
||||||
|
</div>
|
||||||
|
<div class="news-con">
|
||||||
|
|
||||||
|
@if (getArticlesBYCate(8,4)->isNotEmpty())
|
||||||
|
<div class="focus" data-herf="{{ getArticlesBYCate(8,4)->first()->link }}">
|
||||||
|
<img src="{{ getArticlesBYCate(8,4)->first()->cover_path}}">
|
||||||
|
<p>{{ getArticlesBYCate(8,4)->first()->title}}</p>
|
||||||
|
</div>
|
||||||
|
<ul class="newslist">
|
||||||
|
@foreach (getArticlesBYCate(8,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>
|
||||||
|
<!-- 友情链接 -->
|
||||||
|
<div class="col-2-r">
|
||||||
|
<div class="linksbox" id="link">
|
||||||
|
<div class="txtlisttit linktit"><span>友情链接</span>
|
||||||
|
</div>
|
||||||
|
<div class="listcon tab-con">
|
||||||
|
<div class="j-tab-con">
|
||||||
|
<div class="tab-con-item linkcon" style="display: block;">
|
||||||
|
<ul class="linkslist">
|
||||||
|
@if ($links->isNotEmpty())
|
||||||
|
@foreach ($links as $link)
|
||||||
|
<li><a href="{{ $link->url }}" target="_blank">{{ $link->title }}</a></li>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</ul>
|
||||||
|
<div class="clearfix"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@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/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.1,//滚动持续时间,单位:秒
|
||||||
|
easing: 'linear',//swing,linear//滚动特效
|
||||||
|
delay: 5,//滚动延迟时间,单位:秒
|
||||||
|
hideClickBar: false,//不自动隐藏点选按键
|
||||||
|
clickBarRadius: 10
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function () {
|
||||||
|
$("#link").rTabs({
|
||||||
|
bind: 'hover',
|
||||||
|
animation: 'fadein',
|
||||||
|
auto: false
|
||||||
|
});
|
||||||
|
$("#news").rTabs({
|
||||||
|
bind: 'hover',
|
||||||
|
animation: 'fadein',
|
||||||
|
auto: false
|
||||||
|
});
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
@@ -24,6 +24,18 @@
|
|||||||
<script type="text/javascript" src="{{ asset('assets/index/js/nav.js') }}"></script>
|
<script type="text/javascript" src="{{ asset('assets/index/js/nav.js') }}"></script>
|
||||||
<script type="text/javascript" src="{{ asset('assets/index/js/Tabs.js') }}"></script>
|
<script type="text/javascript" src="{{ asset('assets/index/js/Tabs.js') }}"></script>
|
||||||
<script type="text/javascript" src="{{ asset('assets/index/js/cjango.js') }}"></script>
|
<script type="text/javascript" src="{{ asset('assets/index/js/cjango.js') }}"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
document.oncontextmenu = function () {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
document.onkeydown = function () {
|
||||||
|
if (window.event && window.event.keyCode === 123) {
|
||||||
|
event.keyCode = 0;
|
||||||
|
event.returnValue = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
@stack('script')
|
@stack('script')
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -10,18 +10,16 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<dd class="last" style="margin-top: 20px">
|
<dd class="last" style="margin-top: 10px">
|
||||||
<p>地址:黑龙江省哈尔滨市香坊区哈平路103号</p>
|
<p>地址:黑龙江省哈尔滨市香坊区哈平路103号</p>
|
||||||
<p>邮件:kxyzys@126.com</p>
|
<p>邮件:kxyzys@126.com 邮编:150040</p>
|
||||||
<p>电话:086-451-86664613</p>
|
<p>电话:086-451-86664613 传真:086-451-86664613</p>
|
||||||
<p>传真:086-451-86664613</p>
|
|
||||||
<p>邮编:150040</p>
|
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ewm">
|
<div class="ewm">
|
||||||
<img src="/assets/index/images/blue.png"/>
|
<script type="text/javascript">document.write(unescape("%3Cspan id='_ideConac' %3E%3C/span%3E%3Cscript src='https://dcs.conac.cn/js/10/000/0000/40685465/CA100000000406854650003.js' type='text/javascript'%3E%3C/script%3E"));</script>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -13,13 +13,29 @@
|
|||||||
<div class="nav">
|
<div class="nav">
|
||||||
<ul class="" id="navul">
|
<ul class="" id="navul">
|
||||||
<li @if (!isset($parent)) class="active" @endif><a href="/">首页</a></li>
|
<li @if (!isset($parent)) class="active" @endif><a href="/">首页</a></li>
|
||||||
|
@php
|
||||||
|
$top_ids =[];
|
||||||
|
if (isset($parent)) {
|
||||||
|
if (!is_array($parent)) {
|
||||||
|
$top_ids = [$parent->id];
|
||||||
|
}else{
|
||||||
|
$top_ids = $parent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@endphp
|
||||||
|
|
||||||
@foreach ($all_categorys as $cate)
|
@foreach ($all_categorys as $cate)
|
||||||
<li @if (isset($parent) && $cate->id==$parent->id) class="active" @endif>
|
<li @if (in_array($cate->id,$top_ids)) class="active" @endif>
|
||||||
<a href="{{ $cate->link }}">{{ $cate->title }}</a>
|
<a href="{{ $cate->link }}">{{ $cate->title }}</a>
|
||||||
@if ($cate->childrens->isNotEmpty())
|
@if ($cate->childrens->isNotEmpty())
|
||||||
<ul>
|
<ul>
|
||||||
@foreach ($cate->childrens as $children)
|
@foreach ($cate->childrens as $children)
|
||||||
<li><a href="{{ $children->link }}" title="{{ $children->title }}">{{ $children->title }}</a></li>
|
<li>
|
||||||
|
<a href="{{ $children->link }}" title="{{ $children->title }}">{{ $children->title }}</a>
|
||||||
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
Reference in New Issue
Block a user