[更新] 修改首页

This commit is contained in:
2021-03-17 15:53:24 +08:00
parent a58ed43f97
commit 10f551ee19
2 changed files with 69 additions and 13 deletions

View File

@@ -1719,3 +1719,38 @@ img {
.laytool-ul li:hover .wechat-code { .laytool-ul li:hover .wechat-code {
display: block; 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
}

View File

@@ -84,19 +84,40 @@
</a> </a>
@endif @endif
</div> </div>
@if (getArtilesByCates(10)->isNotEmpty()) <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"> <ul class="index-mian-news-ul">
@foreach (getArtilesByCates(10) as $info) @foreach (getArtilesByCates(14,6) as $info)
<li> <li>
<a href="{{ $info->link }}" class="nowrap"> <a href="{{ $info->link }}" class="nowrap">
<i class="fa fa-chevron-circle-right"></i> <i class="fa fa-chevron-circle-right"></i>
{{ $info->title }} {{ $info->title }}
{{-- <span>{{ $info->created_at->format('Y-m-d') }}</span>--}} {{--<span>{{ $info->created_at->format('Y-m-d') }}</span>--}}
</a> </a>
</li> </li>
@endforeach @endforeach
</ul> </ul>
</div>
@endif @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> </div>
<!-- 科技成果 --> <!-- 科技成果 -->