This commit is contained in:
2021-03-24 09:51:17 +08:00
commit ae1ba1d4e9
719 changed files with 171752 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,750 @@
@charset "UTF-8";
html, body {
padding: 0;
margin: 0;
font-size: 14px;
font-family: "微软雅黑";
color: #333;
}
a {
color: #333;
}
a:hover {
color: #203175;
}
a, a:hover {
text-decoration: none;
}
p, h1, h2, h3, h4 {
margin: 0;
}
ul {
list-style: none;
padding: 0;
margin: 0;
}
img {
vertical-align: top;
}
/* 文字裁剪 */
.nowrap {
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.nowrap-multi {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
/* 禁止响应式 */
.container {
width: 1190px;
margin: 0 auto;
}
/* 首页 */
.mian {
background-color: #eff0f4;
}
.mian-title {
border-bottom: solid 1px #e6e6e6;
padding: 10px 0;
margin-bottom: 20px;
position: relative;
}
.mian-title b {
font-size: 18px;
padding: 0 10px;
position: relative;
}
.mian-title b::before {
content: "";
position: absolute;
bottom: -11px;
left: 0;
right: 0;
height: 3px;
background-color: #203175;
}
.mian-title span {
color: gray;
font-size: 14px;
font-weight: normal;
}
.mian-title-more {
position: absolute;
right: 0;
line-height: 25px;
color: gray;
padding: 0 15px;
}
.mian-title-more i {
margin-left: 5px;
font-size: 18px;
}
/* 广告条 */
.index-ad {
width: 100%;
margin-top: 30px;
}
.index-ad img {
width: 100%;
}
/* tool */
.tool {
background-color: #eff0f4;
height: 40px;
line-height: 40px;
}
.tool a {
color: gray;
margin-left: 20px;
transition: color .4s;
}
.tool a i {
margin-right: 3px;
}
.tool a:hover {
color: #203175;
}
.search {
margin-top: 5px;
width: 20%;
display: flex;
float: right;
}
.search input {
float: left;
flex: 4;
height: 30px;
outline: none;
border: 1px solid #203175;
box-sizing: border-box;
padding: 0 10px;
}
.search button {
float: right;
flex: 1;
height: 30px;
background-color: #203175;
color: white;
border-style: none;
outline: none;
}
/* 导航 */
.header {
padding: 10px 0;
position: relative;
}
.header-logo {
height: 68px;
width: 395px;
vertical-align: top;
}
.header nav {
position: absolute;
padding-left: 20px;
top: 10px;
right: 0;
display: flex;
justify-content: flex-end;
}
.header nav a {
display: inline-block;
color: #203175;
width: 90px;
line-height: 68px;
text-align: center;
position: relative;
transition: all .4s;
position: relative;
}
.header nav a::before {
position: absolute;
content: " ";
bottom: 0;
width: 50px;
height: 4px;
left: 20px;
background-color: #203175;
opacity: 0;
transition: all .4s;
}
.header nav a.show::before,
.header nav a:hover::before {
bottom: 15px;
opacity: 1;
}
/* 欢迎语 */
.hello {
background-color: #203175;
}
.hello-text {
color: #abb2cb;
line-height: 40px;
}
/* banner图 */
.swiper-slide {
text-align: center;
}
.swiper-banner-img {
width: 100%;
padding-top: 20%;
background-size: 100%;
transition: all .2s;
background-repeat: no-repeat;
background-position: center;
position: relative;
display: block;
}
.swiper-banner-img h3 {
background-image: linear-gradient(to left, transparent, rgba(0, 0, 0, .2), transparent);
padding: 15px 15px 50px 15px;
color: white;
font-size: 18px;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
box-sizing: border-box;
}
.swiper-banner-img:hover {
background-size: 102%;
}
.swiper-pagination .swiper-pagination-bullet {
background-color: white;
width: 12px;
height: 12px;
opacity: .8;
}
.swiper-pagination .swiper-pagination-bullet-active {
background-color: #203175;
opacity: 1;
}
/* 分院新闻 */
.news {
overflow: hidden;
padding-top: 30px;
}
.news-item {
float: left;
}
.news-hot {
width: 700px;
margin-right: 20px;
background-color: #EEEEEE;
position: relative;
}
.news-hot-cover {
width: 700px;
height: 336px;
}
.news-hot-text {
padding: 10px;
background-color: rgba(0, 0, 0, .5);
height: 30px;
width: 680px;
position: absolute;
bottom: 0;
left: 0;
}
.news-hot-text a {
color: #fff;
}
.news-hot-text h3 {
line-height: 30px;
color: #fff;
}
.news-hot-text p {
line-height: 20px;
color: white;
}
.news-title {
padding-top: 0;
box-sizing: border-box;
}
.news-ul {
width: 470px;
}
.news-ul-li {
line-height: 35px;
}
.news-ul-li:last-child {
margin: 0;
}
.news-ul-li a {
display: block;
transition: all .4s;
}
.news-ul-li a:hover {
background-color: #fafafa;
padding-left: 10px;
}
.news-time {
margin-right: 10px;
color: gray;
}
/* 科研动态 */
.dynamic {
padding-top: 30px;
}
.dynamic-ul {
margin: 0 -10px;
overflow: hidden;
}
.dynamic-ul-item {
background-color: white;
margin: 0 10px;
float: left;
width: calc(33.33% - 20px);
}
.dynamic-ul-cover {
width: 100%;
padding-top: 50%;
background-position: center;
background-size: cover;
display: block;
}
.dynamic-ul-text {
background-color: white;
height: 70px;
padding: 10px 0;
}
.dynamic-ul-text h3 {
line-height: 30px;
}
.dynamic-ul-text p {
line-height: 20px;
color: gray;
min-height: 40px;
}
.dynamic-ul-text a {
transition: color .4s;
}
/* 党团生活 */
.party {
width: 700px;
}
.party-ul-li {
padding: 5px 10px 5px 95px;
background-color: white;
position: relative;
min-height: 80px;
margin-bottom: 10px;
box-sizing: border-box;
transition: background-color .3s;
}
.party-ul-li:last-child {
margin: 0;
}
.party-ul-li a:hover .party-time {
color: white;
background-color: #203175;
transition: all .3s;
border: none;
}
.party-title {
font-weight: bold;
font-size: 16px;
display: block;
line-height: 30px;
}
.party-info {
line-height: 20px;
color: gray;
}
.party-time {
position: absolute;
left: 0;
top: 0;
border-right: solid 1px #EEEEEE;
text-align: center;
width: 80px;
height: 80px;
padding: 15px 0;
box-sizing: border-box;
}
.party-time h3 {
font-size: 20px;
line-height: 30px;
}
.party-time p {
line-height: 20px;
}
.party-cover {
background-size: cover;
background-position: center;
}
/* 精神文明 */
.spirit {
width: 470px;
margin-left: 20px;
background-color: white;
}
.spiritual-ul-li {
padding: 5px 10px;
background-color: white;
position: relative;
border-left: solid 1px transparent;
box-sizing: border-box;
min-height: 80px;
margin-bottom: 10px;
box-sizing: border-box;
transition: background-color .3s;
}
.spiritual-ul-li:last-child {
margin: 0;
}
.spiritual-ul-li:hover {
background-color: #fafafa;
border-left: solid 1px #203175;
}
.spiritual-ul-li a {
display: block;
}
.spiritual-title {
font-weight: bold;
font-size: 16px;
display: block;
line-height: 30px;
}
.spiritual-info {
line-height: 20px;
color: gray;
}
/* 国内国际新闻 */
.tabs {
padding-top: 30px;
}
.tabs-content-block {
overflow: hidden;
margin: 0 -10px;
}
.tabs-content-block li {
line-height: 35px;
float: left;
width: calc(50% - 20px);
margin: 0 10px;
}
.tabs-content-block li a {
display: block;
transition: all .4s;
}
.tabs-content-block li a:hover {
background-color: #fafafa;
padding-left: 10px;
}
.tabs-content-block li i {
margin-right: 5px;
}
/* tabs */
.tabs-title {
border-bottom: solid 1px #e6e6e6;
padding: 10px 0;
margin-bottom: 20px;
position: relative;
}
.tabs-item {
padding: 0 10px;
position: relative;
cursor: pointer;
font-size: 15px;
color: gray;
}
.tabs-item:hover {
color: #203175;
}
.tabs-item.show {
font-size: 18px;
font-weight: bold;
color: black;
}
.tabs-item.show::before {
content: "";
position: absolute;
bottom: -11px;
left: 0;
right: 0;
height: 3px;
background-color: #203175;
}
.tabs-content {
display: none;
}
.tabs-content.active {
display: block;
}
/* 子页面 */
.child {
overflow: hidden;
}
.child-nav,
.child-content {
float: left;
}
.child-nav {
width: 220px;
}
.child-content {
width: 950px;
margin-left: 20px;
}
/* 友情链接 */
.href {
padding: 30px 0;
}
.href-content {
padding-top: 10px;
overflow: hidden;
}
.href-content a {
line-height: 40px;
width: 20%;
display: inline-block;
float: left;
}
/* footer */
.footer {
background-color: #203175;
padding: 40px 0;
text-align: center;
color: white;
line-height: 30px;
}
.footer span {
padding: 0 10px;
}
/* 带有日期的列表 */
.list-ul {
margin-top: 20px;
}
/* 侧边栏导航 */
.kj-bjt {
margin-top: 20px;
min-height: 70px;
padding: 10px;
font-size: 20px;
box-sizing: border-box;
color: #fff;
text-align: right;
background-repeat: no-repeat;
background-image: url(../img/beijing.png);
background-size: cover;
}
.kj-bjt > b {
display: block;
line-height: 30px;
}
.kj-bjt > p {
line-height: 20px;
}
.child-nav-cover {
width: 100%;
margin-top: 20px;
}
.child-nav-ul {
background: #eee;
}
.child-nav-ul li {
position: relative;
}
.child-nav-ul li::before {
position: absolute;
content: " ";
height: 1px;
background: #ddd;
left: 15px;
right: 15px;
bottom: 0;
}
.child-nav-ul li:last-child::before {
display: none;
}
.child-nav-ul a {
line-height: 60px;
text-align: center;
display: block;
border-left: solid 4px rgba(0, 0, 0, 0);
padding-right: 4px;
}
.child-nav-ul a.show,
.child-nav-ul a:hover {
color: #203175;
background-color: white;
border-left: solid 4px #203175;
}
/*交流合作*/
.jlhz-border {
margin-top: 20px;
}
/*文章详情*/
.wzxq {
padding: 20px 0;
}
.wzxq h3 {
color: #333;
font-size: 25px;
margin-bottom: 10px;
}
.wzxq p {
color: #999898;
}
.xyp {
margin-top: 20px;
}
.xyp b {
color: #5d5c5c;
}
.xyp a {
color: #676767;
margin-left: 20px;
}
.ritText img {
max-width: 100%;
}
/* 分页 */
.pages {
text-align: center;
margin-top: 20px;
}
.pages a {
display: inline-block;
margin: 0 2px;
line-height: 30px;
padding: 0 12px;
text-align: center;
background-color: #f1f3f8;
color: #333;
}
.pages a:hover,
.pages a.show {
background-color: #273981;
color: white;
}

15
public/assets/index/css/swiper.min.css vendored Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 434 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@@ -0,0 +1,106 @@
//全屏滚动
window.onload=function(){
var n=0;
var imgLength=$(".b-img img").length;
var ctWidth=imgLength*100;
var itemWidth=1/imgLength*100;
$(".b-img").width(ctWidth+"%");
$(".b-img img").width(itemWidth+"%");
$(".banner").height($(".b-img img:eq(0)")[0].height+"px");
$(".b-list").width(imgLength*30);
$(".b-list").css('padding-top',$(".b-img img:eq(0)")[0].height-20);
if(imgLength>1)
{
for(var i=0;i<imgLength;i++)
{
var listSpan=$("<span></span>")
$(".b-list").append(listSpan);
}
}
$(".b-list span:eq(0)").addClass("spcss").siblings("span").removeClass("spcss");
$(".bar-right em").click(function(){
if(n==imgLength-1)
{
var ctPosit=(n+1)*100;
$(".banner").append($(".b-img").clone());
$(".b-img:last").css("left","100%");
$(".b-img:first").animate({"left":"-"+ctPosit+"%"},1000);
$(".b-img:last").animate({"left":"0"},1000);
var setTime0=setTimeout(function () {
$(".banner .b-img:first").remove();
}, 1000);
n=0;
$(".b-list span:eq("+n+")").addClass("spcss").siblings("span").removeClass("spcss");
}
else
{
n++;
var ctPosit=n*100;
$(".b-img").animate({"left":"-"+ctPosit+"%"},1000);
$(".b-list span:eq("+n+")").addClass("spcss").siblings("span").removeClass("spcss");
}
})
$(".bar-left em").click(function(){
if(n==0)
{
var stPosit=imgLength*100;
var etPosit=(imgLength-1)*100;
$(".banner").prepend($(".b-img").clone());
$(".b-img:first").css("left","-"+stPosit+"%");
$(".b-img:last").animate({"left":"100%"},1000);
$(".b-img:first").animate({"left":"-"+etPosit+"%"},1000);
var setTime0=setTimeout(function () {
$(".banner .b-img:last").remove();
}, 1000);
n=imgLength-1;
$(".b-list span:eq("+n+")").addClass("spcss").siblings("span").removeClass("spcss");
}
else
{
n--;
var ctPosit=n*100;
$(".b-img").animate({"left":"-"+ctPosit+"%"},1000);
$(".b-list span:eq("+n+")").addClass("spcss").siblings("span").removeClass("spcss");
}
})
$(".b-list span").click(function(){
var lsIndex=$(this).index();
n=lsIndex;
var ctPosit=n*100;
$(".b-img").animate({"left":"-"+ctPosit+"%"},1000);
$(this).addClass("spcss").siblings("span").removeClass("spcss");
})
function rollEnvent(){
if(n==imgLength-1)
{
var ctPosit=(n+1)*100;
$(".banner").append($(".b-img").clone());
$(".b-img:last").css("left","100%");
$(".b-img:first").animate({"left":"-"+ctPosit+"%"},1000);
$(".b-img:last").animate({"left":"0"},1000);
var setTime0=setTimeout(function () {
$(".banner .b-img:first").remove();
}, 1000);
n=0;
$(".b-list span:eq(0)").addClass("spcss").siblings("span").removeClass("spcss");
}
else
{
n++;
var ctPosit=n*100;
$(".b-img").animate({"left":"-"+ctPosit+"%"},1000);
$(".b-list span:eq("+n+")").addClass("spcss").siblings("span").removeClass("spcss");
}
}
var slidesetInterval=setInterval(rollEnvent,4000);
$(".banner").hover(function(){clearInterval(slidesetInterval);},function(){slidesetInterval=setInterval(rollEnvent,4000);});
}

File diff suppressed because one or more lines are too long

5
public/assets/index/js/jquery.min.js vendored Normal file

File diff suppressed because one or more lines are too long

18
public/assets/index/js/swiper.min.js vendored Normal file

File diff suppressed because one or more lines are too long