[更新] 修改首页
This commit is contained in:
@@ -1719,3 +1719,38 @@ img {
|
||||
.laytool-ul li:hover .wechat-code {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.newCont-ul:last-child {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.newCont-ul:last-child::after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
left: -20px;
|
||||
top: 0;
|
||||
width: 1px;
|
||||
height: 100%;
|
||||
background: #f1f1f1;
|
||||
}
|
||||
|
||||
.newCont {
|
||||
width: 650px;
|
||||
float: left;
|
||||
margin-left: 20px;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.newCont-ul {
|
||||
width: calc(50% - 20px);
|
||||
margin-left: 20px
|
||||
}
|
||||
|
||||
.newCont-ul a {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.newCont-ul>div {
|
||||
font-size: 18px;
|
||||
margin-bottom: 10px
|
||||
}
|
||||
|
||||
@@ -84,19 +84,40 @@
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
@if (getArtilesByCates(10)->isNotEmpty())
|
||||
<ul class="index-mian-news-ul">
|
||||
@foreach (getArtilesByCates(10) as $info)
|
||||
<li>
|
||||
<a href="{{ $info->link }}" class="nowrap">
|
||||
<i class="fa fa-chevron-circle-right"></i>
|
||||
{{ $info->title }}
|
||||
{{-- <span>{{ $info->created_at->format('Y-m-d') }}</span>--}}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
<div class="newCont">
|
||||
@if (getArtilesByCates(14)->isNotEmpty())
|
||||
<div class="newCont-ul">
|
||||
<div style="font-weight: 600">{{ getOneCategory(14,'title') }}</div>
|
||||
<ul class="index-mian-news-ul">
|
||||
@foreach (getArtilesByCates(14,6) as $info)
|
||||
<li>
|
||||
<a href="{{ $info->link }}" class="nowrap">
|
||||
<i class="fa fa-chevron-circle-right"></i>
|
||||
{{ $info->title }}
|
||||
{{--<span>{{ $info->created_at->format('Y-m-d') }}</span>--}}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
@if (getArtilesByCates(11)->isNotEmpty())
|
||||
<div class="newCont-ul">
|
||||
<div style="font-weight: 600">{{ getOneCategory(11,'title') }}</div>
|
||||
<ul class="index-mian-news-ul">
|
||||
@foreach (getArtilesByCates(11,6) as $info)
|
||||
<li>
|
||||
<a href="{{ $info->link }}" class="nowrap">
|
||||
<i class="fa fa-chevron-circle-right"></i>
|
||||
{{ $info->title }}
|
||||
{{--<span>{{ $info->created_at->format('Y-m-d') }}</span>--}}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 科技成果 -->
|
||||
|
||||
Reference in New Issue
Block a user