111
parent
4d4074df21
commit
d1cd0c01f5
|
|
@ -719,8 +719,7 @@ font-size: 16px;
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*右侧客服*/
|
||||
.kefu{
|
||||
position:fixed;
|
||||
z-index:99999;
|
||||
|
|
@ -804,3 +803,210 @@ font-size: 16px;
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*新闻中心*/
|
||||
.new_container {
|
||||
background: #f6f8fa;
|
||||
|
||||
.banner {
|
||||
width: 100%;
|
||||
height: 320px;
|
||||
background: url("../img/newbanner.png") no-repeat top center;
|
||||
.banner_main {
|
||||
width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding-top: 135px;
|
||||
h2 {
|
||||
font-size: 60px;
|
||||
color: #ffffff;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
p {
|
||||
margin: 0;
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
.new_container {
|
||||
width: 100%;
|
||||
|
||||
.top {
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
background: #ffffff;
|
||||
|
||||
.wrap {
|
||||
width: 1400px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
|
||||
|
||||
.list {
|
||||
font-size: 16px;
|
||||
line-height: 60px;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
margin-right: 40px;
|
||||
a{
|
||||
color:#222222;
|
||||
text-decoration: none;
|
||||
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: #006aff;
|
||||
&:before {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
border-bottom: 3px solid #006aff;
|
||||
width: 100%;
|
||||
opacity: 0;
|
||||
}
|
||||
&:hover {
|
||||
color: #006aff;
|
||||
&:before {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.new_main{
|
||||
width: 1400px;
|
||||
margin: 20px auto 0;
|
||||
padding-bottom:20px;
|
||||
a{
|
||||
text-decoration: none;
|
||||
}
|
||||
.wrap{
|
||||
width: 100%;
|
||||
background: #ffffff;
|
||||
padding: 20px;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 20px;
|
||||
.item{
|
||||
display: flex;
|
||||
|
||||
.info{
|
||||
padding-left: 20px;
|
||||
flex:1;
|
||||
.title{
|
||||
font-size: 18px;
|
||||
color: #222222;
|
||||
a{
|
||||
color:#222222;}
|
||||
}
|
||||
.text{
|
||||
margin-top: 10px;
|
||||
a{
|
||||
color: #696969;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
.time{
|
||||
color: #999999;
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
span{
|
||||
padding-left: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&:hover{
|
||||
box-shadow: 0 8px 30px rgba(45, 104, 255, 0.15)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.new_container_detail {
|
||||
width: 100%;
|
||||
|
||||
.breadcrumb{
|
||||
width:1400px;
|
||||
margin:0 auto;
|
||||
background:none;
|
||||
padding:0;
|
||||
margin-top:10px;
|
||||
|
||||
.list-inline{
|
||||
margin:0 ! important;
|
||||
padding:0! important;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.new_main{
|
||||
width: 1400px;
|
||||
margin: 10px auto 20px;
|
||||
background: #ffffff;
|
||||
min-height: 600px;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
|
||||
padding: 20px 50px;
|
||||
border-top: 3px solid #1d78ff;
|
||||
|
||||
.title{
|
||||
width: 100%;
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
padding-bottom: 20px;
|
||||
|
||||
.time{
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
.main{
|
||||
padding: 20px 0;
|
||||
color: #666666;
|
||||
|
||||
p{
|
||||
text-indent: 2rem;
|
||||
line-height: 2;
|
||||
font-size: 14px;
|
||||
}
|
||||
img{
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
.bottom{
|
||||
width: 100%;
|
||||
.item{
|
||||
padding: 20px;
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
|
||||
margin-bottom: 20px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
.previous{
|
||||
font-size: 14px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.title{
|
||||
font-size: 14px;
|
||||
}
|
||||
.info{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
color: #666666;
|
||||
}
|
||||
&:hover{
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -12,66 +12,53 @@
|
|||
</head>
|
||||
<body>
|
||||
[#include 'inc_header.html'/]
|
||||
<div class="bg-gray-200">
|
||||
<div class="container">
|
||||
<nav class="row" aria-label="breadcrumb">
|
||||
<ol class="col list-inline my-2">
|
||||
<div class="new_container">
|
||||
<div class="banner">
|
||||
<div class="banner_main">
|
||||
<h2>新闻中心</h2>
|
||||
<p>安全第一 预防为主 综合治理</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="new_container">
|
||||
<div class="top">
|
||||
<div class="wrap">
|
||||
[#assign parent = channel.parent!channel/]
|
||||
<li class="list-inline-item"><a class="btn btn-sm [#if parent.id == channel.id]btn-primary[#else]btn-link[/#if]" href="${parent.url}">全部</a></li>
|
||||
<div class="list [#if parent.id == channel.id]active[#else][/#if]"><a href="${parent.url}">全部</a></div>
|
||||
[@ChannelList parentId=parent.id isNav='true'; list]
|
||||
[#list list as bean]
|
||||
<li class="list-inline-item"><a class="btn btn-sm [#if channel.id == bean.id]btn-primary[#else]btn-link[/#if]" href="${bean.url}">${bean.name}</a></li>
|
||||
<div class="list [#if channel.id == bean.id]active[#else][/#if]"><a href="${bean.url}">${bean.name}</a></div>
|
||||
[/#list]
|
||||
[/@ChannelList]
|
||||
</ol>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container mt-3">
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
<div>
|
||||
[#assign customsQueryMap={}/]
|
||||
[#list channel.articleModel.fieldList?filter(field->['radio','checkbox','select','multipleSelect']?seqContains(field.type)) as field]
|
||||
<div class="py-1 border-bottom">
|
||||
[#assign param=field.code+'Key'/]
|
||||
<a href="${addParam(channel.url, channel.dynamicUrl, param)}" class="btn btn-sm[#if !Params[param]??] btn-secondary[#else] btn-link text-reset[/#if]">全部${field.name}</a>
|
||||
[@DictList typeId=field.dictTypeId; list]
|
||||
[#list list as dict]
|
||||
<a href="${addParam(channel.url, channel.dynamicUrl, param, dict.value)}" class="btn btn-sm [#if Params[param]! == dict.value]btn-secondary[#else]btn-link text-reset[/#if]">${dict.name}</a>
|
||||
[/#list]
|
||||
[/@DictList]
|
||||
</div>
|
||||
[#assign customsQueryMap=customsQueryMap + {'ArrayEQ_@articleExt-mainsJson$'+param+(field.dataType != 'string')?string('_Int',''): Params[param]!}/]
|
||||
[/#list]
|
||||
</div>
|
||||
|
||||
<div class="new_main">
|
||||
[@ArticlePage channelId=channel.id isIncludeSubChannel="true" Q_=customsQueryMap orderBy=channel.orderDesc?string("sticky_desc,order_desc","sticky_desc,order_asc"); pagedList]
|
||||
<ul class="list-unstyled">
|
||||
[#list pagedList.content as bean]
|
||||
<li class="mt-3 media border-bottom position-relative pb-3">
|
||||
[#if bean.image??][@A bean=bean class="mr-3"]<img src="${bean.image}" class="rounded-sm cm-media-img" alt="${bean.title}">[/@A][/#if]
|
||||
<div class="media-body">
|
||||
<p class="mt-0 mb-1">[@A bean=bean class="cm-link text-decoration-none"/]</p>
|
||||
<p class="text-muted d-none d-sm-block mb-2">
|
||||
[@A bean=bean class="text-reset small text-decoration-none"]${substring(bean.description,60,'...')}[/@A]
|
||||
</p>
|
||||
<div class="wrap">
|
||||
<div class="item">
|
||||
[#if bean.image??][@A bean=bean class="mr-3"]<img src="${bean.image}" alt="${bean.title}" width="175" height="125">[/@A][/#if]
|
||||
<div class="info">
|
||||
<div class="title">[@A bean=bean class="cm-link text-decoration-none"/]</div>
|
||||
<div class="text">
|
||||
[@A bean=bean class="text-reset small text-decoration-none"]${substring(bean.description,150,'...')}[/@A]
|
||||
</div>
|
||||
<div class="small text-muted mt-3 clearfix">
|
||||
<div class="float-left">
|
||||
<span>[#list bean.channel.paths as c][@A bean=c/][#if c_has_next] > [/#if][/#list]</span>
|
||||
<i class="ml-2 far fa-eye"></i> ${bean.views}
|
||||
</div>
|
||||
<div class="float-right"><i class="ml-2 far fa-clock"></i> ${format(bean.publishDate, 'yyyy-MM-dd')}</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</div>
|
||||
</div>
|
||||
[/#list]
|
||||
</ul>
|
||||
[#include 'inc_page.html'/]
|
||||
[/@ArticlePage]
|
||||
</div>
|
||||
[#include 'inc_right.html'/]
|
||||
</div>
|
||||
</div>
|
||||
[#include 'inc_right1.html'/]
|
||||
[#include 'inc_footer.html'/]
|
||||
<script>axios.get('${api}/channel/view/${channel.id?c}');</script>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -104,9 +104,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- 核心产品-->
|
||||
<div class="product_container">
|
||||
<div class="product_main">
|
||||
|
|
|
|||
Loading…
Reference in New Issue