From d1cd0c01f57d5a96ffeffcc4f1215683a8c12623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=B4=AA=E9=9C=9E?= Date: Thu, 12 Mar 2026 11:18:53 +0800 Subject: [PATCH] 111 --- .../templates/1/default/_files/css/main.css | 214 +++++++++++++++++- .../webapp/templates/1/default/channel.html | 95 ++++---- .../webapp/templates/1/default/index.html | 3 - 3 files changed, 251 insertions(+), 61 deletions(-) diff --git a/src/main/webapp/templates/1/default/_files/css/main.css b/src/main/webapp/templates/1/default/_files/css/main.css index 3af1888..b91d3bb 100644 --- a/src/main/webapp/templates/1/default/_files/css/main.css +++ b/src/main/webapp/templates/1/default/_files/css/main.css @@ -719,9 +719,8 @@ font-size: 16px; } } - - - .kefu{ +/*右侧客服*/ + .kefu{ position:fixed; z-index:99999; top:30%; @@ -803,4 +802,211 @@ font-size: 16px; } } } - } \ No newline at end of file + } + +/*新闻中心*/ +.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); + } + } + } + } + + } +} \ No newline at end of file diff --git a/src/main/webapp/templates/1/default/channel.html b/src/main/webapp/templates/1/default/channel.html index cf547ae..a94405e 100644 --- a/src/main/webapp/templates/1/default/channel.html +++ b/src/main/webapp/templates/1/default/channel.html @@ -12,66 +12,53 @@ [#include 'inc_header.html'/] -
-
- +
+ -
-
-
-
- [#assign customsQueryMap={}/] - [#list channel.articleModel.fieldList?filter(field->['radio','checkbox','select','multipleSelect']?seqContains(field.type)) as field] -
- [#assign param=field.code+'Key'/] - 全部${field.name} - [@DictList typeId=field.dictTypeId; list] - [#list list as dict] - ${dict.name} - [/#list] - [/@DictList] -
- [#assign customsQueryMap=customsQueryMap + {'ArrayEQ_@articleExt-mainsJson$'+param+(field.dataType != 'string')?string('_Int',''): Params[param]!}/] - [/#list] -
- [@ArticlePage channelId=channel.id isIncludeSubChannel="true" Q_=customsQueryMap orderBy=channel.orderDesc?string("sticky_desc,order_desc","sticky_desc,order_asc"); pagedList] -
    - [#list pagedList.content as bean] -
  • - [#if bean.image??][@A bean=bean class="mr-3"]${bean.title}[/@A][/#if] -
    -

    [@A bean=bean class="cm-link text-decoration-none"/]

    -

    - [@A bean=bean class="text-reset small text-decoration-none"]${substring(bean.description,60,'...')}[/@A] -

    -
    -
    - [#list bean.channel.paths as c][@A bean=c/][#if c_has_next] > [/#if][/#list] - ${bean.views} +
    +
    +
    + [#assign parent = channel.parent!channel/] + + [@ChannelList parentId=parent.id isNav='true'; list] + [#list list as bean] + + [/#list] + [/@ChannelList] +
    +
    + +
    + [@ArticlePage channelId=channel.id isIncludeSubChannel="true" Q_=customsQueryMap orderBy=channel.orderDesc?string("sticky_desc,order_desc","sticky_desc,order_asc"); pagedList] + [#list pagedList.content as bean] +
    +
    + [#if bean.image??][@A bean=bean class="mr-3"]${bean.title}[/@A][/#if] +
    +
    [@A bean=bean class="cm-link text-decoration-none"/]
    +
    + [@A bean=bean class="text-reset small text-decoration-none"]${substring(bean.description,150,'...')}[/@A] +
    +
    +
    + ${bean.views} +
    +
    ${format(bean.publishDate, 'yyyy-MM-dd')}
    +
    -
    ${format(bean.publishDate, 'yyyy-MM-dd')}
    -
  • - [/#list] -
- [#include 'inc_page.html'/] - [/@ArticlePage] + [/#list] + [#include 'inc_page.html'/] + [/@ArticlePage] +
+
- [#include 'inc_right.html'/] -
-
+[#include 'inc_right1.html'/] [#include 'inc_footer.html'/] diff --git a/src/main/webapp/templates/1/default/index.html b/src/main/webapp/templates/1/default/index.html index a61409b..ddda331 100644 --- a/src/main/webapp/templates/1/default/index.html +++ b/src/main/webapp/templates/1/default/index.html @@ -104,9 +104,6 @@
- - -