You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
939 lines
25 KiB
939 lines
25 KiB
<template> |
|
<div class="wrap"> |
|
<el-carousel height="480px" :interval="6000" :arrow="(modules[0] && modules[0].list.filter(e => e.isEnable).length > 1) ? 'hover' : 'never'" :indicator-position="modules[0].list.filter(e => e.isEnable).length > 1 ? '' : 'none'"> |
|
<template v-for="(item, i) in modules[0].list"> |
|
<el-carousel-item v-if="item.pic && item.isEnable" :key="i"> |
|
<img :class="[{'cursor-pointer': isLink(item.link.linkName)}]" width="100%" height="959" :src="item.pic" alt="" @click="openLink(item)"> |
|
</el-carousel-item> |
|
</template> |
|
</el-carousel> |
|
|
|
<div class="block banner-block"> |
|
<div class="inner"> |
|
<div class="title"> |
|
<h5> |
|
{{ modules[1].form.title }} |
|
<span class="sub">{{ modules[1].form.subTitle }}</span> |
|
</h5> |
|
<span class="more">MORE</span> |
|
</div> |
|
<template v-if="articles.length"> |
|
<div class="sfel-banner wow fadeInDown" data-wow-delay="0.5s" @click="toArtice(curArticle, modules[2].form)"> |
|
<img width="50%" height="410" :src="curArticle.titleImg" alt=""> |
|
<div class="right"> |
|
<h6>{{ curArticle.title }}</h6> |
|
<div class="des" v-html="curArticle.mainBody"></div> |
|
<p class="meta">{{ curArticle.createTime }} {{ curArticle.author && ' | ' + curArticle.author }}</p> |
|
<ul class="inds"> |
|
<li v-for="i in 3" :key="i" :class="{active: curInd == i - 1}" @click.stop="switchCarousel(i - 1)"></li> |
|
</ul> |
|
</div> |
|
</div> |
|
|
|
<ul class="card"> |
|
<template v-for="(item, i) in articles"> |
|
<li v-if="i > 3 && i < 7" :key="i" class="wow fadeInDown" :data-wow-delay="(0.1 * i).toFixed(1) + 's'"> |
|
<img class="pic" :src="item.titleImg" alt=""> |
|
<div class="texts"> |
|
<p class="meta">{{ item.createTime }} {{ item.author && ' | ' + item.author }}</p> |
|
<div class="des">{{ item.title }}</div> |
|
<img class="arrow" src="@/assets/images/arrow.png" alt="" @click="toArtice(item, modules[2].list[curColumn])"> |
|
</div> |
|
</li> |
|
</template> |
|
</ul> |
|
</template> |
|
</div> |
|
</div> |
|
|
|
<div class="block notice"> |
|
<div class="inner lg"> |
|
<div class="title"> |
|
<h5> |
|
{{ modules[3].form.title }} |
|
<span class="sub">{{ modules[3].form.subTitle }}</span> |
|
</h5> |
|
<span class="more">MORE</span> |
|
</div> |
|
<div class="shop-shows" v-if="articles1.length"> |
|
<div class="left wow fadeInLeft" data-wow-delay="0.5s"> |
|
<el-carousel height="432px"> |
|
<template v-for="(item, i) in articles1"> |
|
<el-carousel-item v-if="i < 4" :key="i"> |
|
<div class="item"> |
|
<img :src="item.titleImg" alt=""> |
|
<p class="text">{{ item.title }}</p> |
|
</div> |
|
</el-carousel-item> |
|
</template> |
|
</el-carousel> |
|
<div v-if="articles1.length > 4" class="cards" style="margin-top: 18px;"> |
|
<h6>{{ articles1[4].title }}</h6> |
|
<div class="sum">{{ articles1[4].mainBody }}</div> |
|
<p class="date">{{ articles1[4].createTime }}</p> |
|
</div> |
|
<div class="card-wrap"> |
|
<div v-if="articles1.length > 5" class="cards" style="margin-right: 18px"> |
|
<h6>{{ articles1[5].title }}</h6> |
|
<p class="date">{{ articles1[5].createTime }}</p> |
|
</div> |
|
<div v-if="articles1.length > 6" class="cards"> |
|
<h6>{{ articles1[6].title }}</h6> |
|
<p class="date">{{ articles1[6].createTime }}</p> |
|
</div> |
|
</div> |
|
</div> |
|
<div v-if="articles1.length > 7" class="right wow fadeInRight" data-wow-delay="0.5s"> |
|
<ul class="card-list"> |
|
<template v-for="(item, i) in articles"> |
|
<li v-if="i > 6 && i < 10" :key="i"> |
|
<img class="pic" :src="item.titleImg" alt=""> |
|
<div class="texts"> |
|
<h6>{{ item.title }}</h6> |
|
<div class="des" v-html="item.mainBody"></div> |
|
</div> |
|
</li> |
|
</template> |
|
</ul> |
|
<div v-if="articles1.length > 10" class="slide"> |
|
<img :src="articles1[10].titleImg" alt=""> |
|
<p class="text">{{ articles1[10].title }}</p> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<div class="block conference"> |
|
<div class="inner lg"> |
|
<div class="title"> |
|
<h5> |
|
{{ modules[5].form.title }} |
|
<span class="sub">{{ modules[5].form.subTitle }}</span> |
|
</h5> |
|
<span class="more">MORE</span> |
|
</div> |
|
<div class="shows" v-if="articles2.length"> |
|
<div class="left wow fadeInLeft" data-wow-delay="0.5s" @click="toArtice(articles2[0], modules[6].form)"> |
|
<img width="100%" height="100%" :src="articles2[0].titleImg" alt=""> |
|
<div class="text">{{ articles2[0].title }}</div> |
|
</div> |
|
<ul class="card-list wow fadeInRight" data-wow-delay="0.5s"> |
|
<template v-for="(item, i) in articles2"> |
|
<li v-if="i && i < 4" :key="i" @click="toArtice(item, modules[6].form)"> |
|
<img class="pic" :src="item.titleImg" alt=""> |
|
<div class="texts"> |
|
<h6>{{ item.title }}</h6> |
|
<p class="sum">{{ item.summary }}</p> |
|
<p v-if="item.keynoteSpeaker" class="text"> |
|
<img class="icon" src="@/assets/images/mine.png" alt=""> |
|
{{ item.keynoteSpeaker }} |
|
</p> |
|
<p v-if="item.activityStartTime" class="text"> |
|
<img class="icon" src="@/assets/images/time.png" alt=""> |
|
Time: {{ item.activityStartTime + ' ~ ' + item.activityEndTime }} |
|
</p> |
|
<p v-if="item.onlineLocation" class="text"> |
|
<img class="icon" src="@/assets/images/online.png" alt=""> |
|
Address: {{ item.onlineLocation }} |
|
</p> |
|
</div> |
|
</li> |
|
</template> |
|
</ul> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<div class="block media"> |
|
<div class="inner"> |
|
<div class="title"> |
|
<h5> |
|
{{ modules[7].form.title }} |
|
<span class="sub">{{ modules[7].form.subTitle }}</span> |
|
</h5> |
|
<span class="more">MORE</span> |
|
</div> |
|
<div v-if="articles3.length" class="media-wrap"> |
|
<div class="left"> |
|
<div class="slides"> |
|
<div class="item wow fadeInLeft" data-wow-delay="0.5s" style="margin-right: 20px"> |
|
<img width="100%" height="100%" :src="articles3[0].titleImg" alt=""> |
|
<div class="text">{{ articles3[0].title }}</div> |
|
</div> |
|
<div v-if="articles3.length > 1" class="item wow fadeInLeft" data-wow-delay="0.5s"> |
|
<img width="100%" height="100%" :src="articles3[1].titleImg" alt=""> |
|
<div class="text">{{ articles3[1].title }}</div> |
|
</div> |
|
</div> |
|
<ul class="list"> |
|
<template v-for="(item, i) in articles3"> |
|
<li v-if="i > 1 && i < 5" :key="i" class="wow fadeInDown" :data-wow-delay="(0.1 * i).toFixed(1) + 's'"> |
|
<h6>{{ item.title }}</h6> |
|
<div class="des">{{ item.mainBody }}</div> |
|
</li> |
|
</template> |
|
</ul> |
|
</div> |
|
<div v-if="articles3.length > 5" class="right"> |
|
<img :src="articles3[5].titleImg" alt=""> |
|
<div class="texts"> |
|
<h6>{{ articles3[5].title }}</h6> |
|
<div class="des">{{ articles3[5].mainBody }}</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<div class="block news"> |
|
<div class="inner"> |
|
<div class="title"> |
|
<h5> |
|
{{ modules[9].form.title }} |
|
<span class="sub">{{ modules[9].form.subTitle }}</span> |
|
</h5> |
|
<span class="more">MORE</span> |
|
</div> |
|
<ul class="news"> |
|
<li v-for="(item, i) in modules[10].list" :key="i" class="wow fadeInDown" :data-wow-delay="(0.2 * i).toFixed(1) + 's'" :class="{'cursor-pointer': item.link.linkName !== '无'}" @click="openLink(item)"> |
|
<img :src="item.pic" alt=""> |
|
<div class="texts"> |
|
<h6>{{ item.title }}</h6> |
|
<div class="des">{{ item.des }}</div> |
|
</div> |
|
</li> |
|
</ul> |
|
</div> |
|
</div> |
|
|
|
<div class="block program"> |
|
<div class="inner"> |
|
<div class="title"> |
|
<h5> |
|
{{ modules[11].form.subTitle }} |
|
<span class="sub">{{ modules[11].form.subTitle }}</span> |
|
</h5> |
|
<span class="more">MORE</span> |
|
</div> |
|
<template v-if="articles4.length"> |
|
<div class="slide"> |
|
<div class="texts"> |
|
<h6>{{ articles4[0].title }}</h6> |
|
<div class="des">{{ articles4[0].title }}</div> |
|
<div class="meta">发表日期:{{ articles4[0].createTime }}  浏览量:{{ articles4[0].totalBrowsing }}</div> |
|
</div> |
|
<img class="pic" :src="articles4[0].titleImg" alt=""> |
|
</div> |
|
<ul class="list"> |
|
<template v-for="(item, i) in articles3"> |
|
<li v-if="i && i < 4" :key="i" class="wow fadeInDown" :data-wow-delay="(0.1 * i).toFixed(1) + 's'"> |
|
<div class="des">{{ item.title }}</div> |
|
<p class="date">{{ item.createTime }}</p> |
|
</li> |
|
</template> |
|
</ul> |
|
</template> |
|
</div> |
|
</div> |
|
|
|
<div class="tools"> |
|
<div class="logo"> |
|
<img src="@/assets/images/logo.png" alt=""> |
|
</div> |
|
<ul class="nav"> |
|
<li v-for="(item, i) in columns" :key="i" class="column">{{ item.columnName }}</li> |
|
</ul> |
|
</div> |
|
</div> |
|
</template> |
|
|
|
<script> |
|
import mixins from '@/mixins/page' |
|
import Setting from '@/setting' |
|
import Util from '@/libs/util' |
|
import WOW from 'wow.js' |
|
export default { |
|
mixins: [mixins], |
|
data() { |
|
return { |
|
columns: [], |
|
curColumn: 0, |
|
articles: [], |
|
articles1: [], |
|
articles2: [], |
|
articles3: [], |
|
articles4: [], |
|
curInd: 0, |
|
curArticle: {}, |
|
} |
|
}, |
|
mounted() { |
|
new WOW().init() |
|
}, |
|
methods: { |
|
// 获取文章详情 |
|
getInfo() { |
|
// 预览/详情 |
|
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => { |
|
if (data.length) { |
|
// state:已发布(1)则取theEditedJson,草稿(0)则取jsonBeforeEditing |
|
const json = JSON.parse(this.preview ? |
|
data : |
|
data[data.length - 1][data[data.length - 1].state ? 'theEditedJson' : 'jsonBeforeEditing']) |
|
console.log("🚀 ~ file: index.vue ~ line 138 ~ this.$post ~ this.modules", json) |
|
|
|
// 获取文章列表 |
|
if (json[2].form.column.length) { |
|
const { column, articleNum } = json[2].form |
|
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => { |
|
this.articles = Util.removeTag(data.slice(0, articleNum || 7)) |
|
this.curArticle = this.articles[0] |
|
}).catch(err => {}) |
|
} |
|
if (json[4].form.column.length) { |
|
const { column, articleNum } = json[4].form |
|
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => { |
|
this.articles1 = Util.removeTag(data.slice(0, articleNum || 11)) |
|
}).catch(err => {}) |
|
} |
|
if (json[6].form.column.length) { |
|
const { column, articleNum } = json[6].form |
|
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => { |
|
this.articles2 = Util.removeTag(data.slice(0, articleNum || 4)) |
|
}).catch(err => {}) |
|
} |
|
if (json[8].form.column.length) { |
|
const { column, articleNum } = json[8].form |
|
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => { |
|
this.articles3 = Util.removeTag(data.slice(0, articleNum || 6)) |
|
}).catch(err => {}) |
|
} |
|
if (json[12].form.column.length) { |
|
const { column, articleNum } = json[12].form |
|
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => { |
|
this.articles4 = Util.removeTag(data.slice(0, articleNum || 4)) |
|
}).catch(err => {}) |
|
} |
|
|
|
this.modules = json |
|
this.carouselInterval() |
|
} |
|
}).catch(err => {}) |
|
}, |
|
// 自动轮播 |
|
carouselInterval() { |
|
clearInterval(this.timer) |
|
this.timer = setInterval(() => { |
|
this.curInd++ |
|
if (this.curInd > 2) this.curInd = 0 |
|
this.curArticle = this.articles[this.curInd] || {} |
|
}, 5000) |
|
}, |
|
// 手动轮播切换 |
|
switchCarousel(i) { |
|
if (this.curInd !== i) { |
|
this.curInd = i |
|
this.curArticle = this.articles[this.curInd] || {} |
|
} |
|
}, |
|
// tab回调 |
|
tabChange(i) { |
|
const { column } = this.modules[1].list[i] |
|
if (column && column.length) { |
|
const id = column[column.length - 1] |
|
// 查询栏目详情 |
|
this.$post(`${this.api.findColumn}?id=${id}`).then(({ data }) => { |
|
const { typeId } = data |
|
// 跳转链接 |
|
if (typeId === 2) { |
|
let href = data.linkAddress |
|
const cType = data.connectionType |
|
if (cType !== 2) { // 非站外链接 |
|
const ids = href.split('-') // 栏目文章是用-分割的,栏目是必选,文章不是必选。选择了文章则跳转到文章页,否则跳转到栏目页 |
|
// 站点id:站内链接取当前站点,其他站点链接取siteSelection |
|
const site = cType === 1 ? |
|
(this.$route.query.siteId || this.site) : |
|
data.siteSelection |
|
if (ids[1]) { // 文章 |
|
href = '/article?id=' + ids[1] |
|
} else { // 栏目 |
|
const columnIds = ids[0].split(',') |
|
href = '/column?id=' + columnIds[columnIds.length - 1] |
|
} |
|
href = this.$router.resolve(href + '&siteId=' + site).href |
|
} |
|
// 是否新窗口打开 |
|
if (data.isOpen) { |
|
window.open(href) |
|
} else { |
|
location.href = href |
|
} |
|
} else if (typeId === 3) { |
|
// 长页栏目直接获取path |
|
this.$router.push(`/${data.path}?id=${id}`).catch(err => {}) |
|
} else { |
|
this.curColumn = i |
|
} |
|
}).catch(err => {}) |
|
} else { |
|
this.curColumn = i |
|
} |
|
}, |
|
} |
|
}; |
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
@import url(../../plugins/wow/animate.css); |
|
@import "../../styles/page/page.scss"; |
|
.title { |
|
display: flex; |
|
justify-content: space-between; |
|
align-items: flex-end; |
|
padding-bottom: 25px; |
|
margin-bottom: 30px; |
|
border-bottom: 1px solid #ddd; |
|
h5 { |
|
padding-left: 16px; |
|
font-size: 36px; |
|
font-family: PingFangSC-Medium, PingFang SC; |
|
font-weight: 500; |
|
color: #333333; |
|
line-height: 1; |
|
border-left: 6px solid #2B96EF; |
|
} |
|
.sub { |
|
font-size: 22px; |
|
font-family: PingFangSC-Medium, PingFang SC; |
|
font-weight: 500; |
|
color: #AFB7BF; |
|
} |
|
.more { |
|
font-size: 14px; |
|
color: #666; |
|
cursor: pointer; |
|
} |
|
} |
|
.lg { |
|
width: 1505px; |
|
} |
|
/deep/.articles { |
|
width: 50%; |
|
.el-carousel__indicators--horizontal { |
|
bottom: 20px; |
|
left: 804px; |
|
} |
|
} |
|
.banner-block { |
|
background: url(../../assets/images/sfel/2.png) 0 0/cover no-repeat; |
|
} |
|
.sfel-banner { |
|
display: flex; |
|
cursor: pointer; |
|
.pic { |
|
width: 700px; |
|
height: 380px; |
|
} |
|
.right { |
|
position: relative; |
|
width: 50%; |
|
padding: 50px 50px 30px; |
|
background: #1583FF; |
|
color: #fff; |
|
&:hover { |
|
background: #465f85; |
|
h6, .des, .meta { |
|
color: #fff; |
|
transform: translateY(15px); |
|
} |
|
} |
|
} |
|
.inds { |
|
position: absolute; |
|
bottom: 40px; |
|
left: 60px; |
|
display: flex; |
|
li { |
|
width: 10px; |
|
height: 10px; |
|
margin-right: 12px; |
|
background: #FFFFFF; |
|
border-radius: 50%; |
|
transition: .2s; |
|
&.active { |
|
width: 30px; |
|
background: rgba(255,255,255,0.3); |
|
border-radius: 5px; |
|
} |
|
} |
|
} |
|
h6 { |
|
font-size: 24px; |
|
transition: .3s; |
|
} |
|
.des { |
|
margin: 30px 0; |
|
font-size: 16px; |
|
line-height: 24px; |
|
transition: .3s; |
|
} |
|
.meta { |
|
font-size: 16px; |
|
transition: .3s; |
|
} |
|
} |
|
.card { |
|
display: flex; |
|
flex-wrap: wrap; |
|
margin-top: 40px; |
|
li { |
|
width: calc((100% - 56px) / 3); |
|
margin-right: 28px; |
|
box-shadow: 0px 0px 20px 0px rgba(176,176,176,0.21); |
|
border-radius: 6px; |
|
transition: .3s; |
|
&:hover { |
|
transform: scale(1.05); |
|
} |
|
&:last-child { |
|
margin-right: 0; |
|
} |
|
} |
|
.pic { |
|
width: 100%; |
|
height: 240px; |
|
} |
|
.texts { |
|
padding: 40px 30px; |
|
} |
|
.meta { |
|
font-size: 16px; |
|
color: #666; |
|
} |
|
.des { |
|
margin: 10px 0; |
|
font-size: 20px; |
|
font-family: SFProDisplay; |
|
font-weight: 500; |
|
color: #333; |
|
line-height: 28px; |
|
} |
|
.arrow { |
|
width: 36px; |
|
} |
|
} |
|
|
|
.notice { |
|
background: url(../../assets/images/sfel/3.png) 0 0/cover no-repeat; |
|
} |
|
.shop-shows { |
|
display: flex; |
|
.left { |
|
width: 660px; |
|
margin-right: 20px; |
|
.item { |
|
position: relative; |
|
height: 100%; |
|
img { |
|
width: 100%; |
|
height: 100%; |
|
} |
|
.text { |
|
position: absolute; |
|
bottom: 0; |
|
left: 0; |
|
width: 100%; |
|
padding: 0 20px; |
|
font-size: 18px; |
|
color: #fff; |
|
line-height: 59px; |
|
background-color: rgba(0, 0, 0, 0.57); |
|
} |
|
} |
|
.card-wrap { |
|
display: flex; |
|
margin-top: 18px; |
|
} |
|
.cards { |
|
padding: 20px; |
|
background-color: #fff; |
|
h6 { |
|
margin-bottom: 10px; |
|
font-size: 18px; |
|
color: #48525E; |
|
} |
|
.sum { |
|
font-size: 14px; |
|
color: #6D7C8E; |
|
} |
|
.date { |
|
margin-top: 24px; |
|
font-size: 14px; |
|
color: #C4CCD7; |
|
} |
|
} |
|
h6 { |
|
font-size: 24px; |
|
color: #272727; |
|
} |
|
.des { |
|
margin-top: 10px; |
|
font-size: 16px; |
|
color: #666; |
|
line-height: 30px; |
|
} |
|
} |
|
.right { |
|
width: 824px; |
|
} |
|
.card-list { |
|
li { |
|
display: flex; |
|
align-items: center; |
|
padding: 24px; |
|
margin-bottom: 18px; |
|
background-color: #fff; |
|
transition: .3s; |
|
&:hover { |
|
transform: scale(1.05); |
|
} |
|
} |
|
.pic { |
|
width: 116px; |
|
height: 85px; |
|
margin-right: 28px; |
|
} |
|
.texts { |
|
width: 504px; |
|
margin-right: 60px; |
|
} |
|
h6 { |
|
margin-bottom: 10px; |
|
font-size: 18px; |
|
font-family: PingFangSC-Medium, PingFang SC; |
|
font-weight: 500; |
|
color: #1583FF; |
|
} |
|
.des { |
|
font-size: 16px; |
|
color: #666; |
|
line-height: 26px; |
|
-webkit-line-clamp: 2; |
|
} |
|
} |
|
.slide { |
|
position: relative; |
|
height: 284px; |
|
img { |
|
width: 100%; |
|
height: 100%; |
|
} |
|
.text { |
|
position: absolute; |
|
bottom: 0; |
|
left: 0; |
|
width: 100%; |
|
padding: 0 12px; |
|
line-height: 59px; |
|
font-size: 18px; |
|
font-family: PingFangSC-Medium, PingFang SC; |
|
font-weight: 500; |
|
color: #FFFFFF; |
|
background-color: rgba(0, 0, 0, 0.57); |
|
} |
|
} |
|
} |
|
.conference { |
|
background: url(../../assets/images/sfel/4.png) 0 0/cover no-repeat; |
|
.shows { |
|
display: flex; |
|
} |
|
.left { |
|
position: relative; |
|
width: 688px; |
|
height: 688px; |
|
margin-right: 20px; |
|
cursor: pointer; |
|
.text { |
|
position: absolute; |
|
bottom: 0; |
|
left: 0; |
|
width: 100%; |
|
padding: 0 12px; |
|
line-height: 59px; |
|
font-size: 18px; |
|
font-family: PingFangSC-Medium, PingFang SC; |
|
font-weight: 500; |
|
color: #FFFFFF; |
|
background-color: rgba(0, 0, 0, 0.57); |
|
} |
|
} |
|
.card-list { |
|
width: 784px; |
|
li { |
|
display: flex; |
|
align-items: center; |
|
padding: 14px; |
|
margin-bottom: 21px; |
|
background-color: #fff; |
|
cursor: pointer; |
|
transition: .3s; |
|
&:last-child { |
|
margin-bottom: 0; |
|
} |
|
&:hover { |
|
transform: translateX(20px); |
|
} |
|
} |
|
.pic { |
|
width: 188px; |
|
height: 188px; |
|
margin-right: 36px; |
|
} |
|
h6 { |
|
margin-bottom: 10px; |
|
font-size: 20px; |
|
color: #333; |
|
} |
|
.sum { |
|
font-size: 16px; |
|
color: #666; |
|
} |
|
.text { |
|
display: flex; |
|
align-items: center; |
|
margin: 10px 0; |
|
} |
|
.icon { |
|
margin-right: 5px; |
|
} |
|
} |
|
} |
|
|
|
.media { |
|
background: #fff; |
|
.media-wrap { |
|
display: flex; |
|
} |
|
.left { |
|
width: 55%; |
|
margin-right: 1%; |
|
.slides { |
|
display: flex; |
|
margin-bottom: 20px; |
|
} |
|
.item { |
|
position: relative; |
|
width: 366px; |
|
height: 197px; |
|
img { |
|
width: 100%; |
|
height: 100%; |
|
} |
|
.text { |
|
position: absolute; |
|
bottom: 0; |
|
left: 0; |
|
width: 100%; |
|
padding: 0 27px; |
|
line-height: 48px; |
|
font-size: 16px; |
|
color: #FFFFFF; |
|
@include ellipsis; |
|
background-color: rgba(0, 0, 0, 0.49); |
|
} |
|
} |
|
.list { |
|
padding: 34px 36px; |
|
background: #fff; |
|
box-shadow: 0px 0px 30px 0px rgba(48,48,48,0.08); |
|
li { |
|
margin-bottom: 41px; |
|
&:last-child { |
|
margin-bottom: 0; |
|
} |
|
} |
|
h6 { |
|
margin-bottom: 17px; |
|
font-size: 20px; |
|
font-family: PingFangSC-Medium, PingFang SC; |
|
font-weight: 500; |
|
color: #272727; |
|
line-height: 20px; |
|
text-shadow: 0px 0px 30px rgba(48,48,48,0.08); |
|
} |
|
.des { |
|
font-size: 14px; |
|
color: #666; |
|
} |
|
} |
|
} |
|
.right { |
|
width: 44%; |
|
box-shadow: 0px 0px 30px 0px rgba(48,48,48,0.08); |
|
img { |
|
width: 100%; |
|
height: 422px; |
|
} |
|
.texts { |
|
padding: 40px 28px; |
|
background: #fff; |
|
} |
|
h6 { |
|
font-size: 24px; |
|
font-family: PingFangSC-Medium, PingFang SC; |
|
font-weight: 500; |
|
color: #272727; |
|
line-height: 39px; |
|
text-shadow: 0px 0px 30px rgba(48,48,48,0.08); |
|
} |
|
.des { |
|
margin-top: 16px; |
|
font-size: 16px; |
|
color: #666; |
|
} |
|
} |
|
} |
|
.news { |
|
background: url(../../assets/images/sfel/5.png) (0 504px)/auto no-repeat, |
|
url(../../assets/images/sfel/6.png) (bottom right)/auto no-repeat; |
|
.inner { |
|
width: 1400px; |
|
} |
|
} |
|
.news { |
|
display: flex; |
|
justify-content: center; |
|
flex-wrap: wrap; |
|
li { |
|
position: relative; |
|
width: calc((100% - 56px) / 3); |
|
padding: 11px; |
|
margin-right: 28px; |
|
color: #333; |
|
background-color: #fff; |
|
box-shadow: 0px 5px 20px 0px rgba(98,117,163,0.08); |
|
border-radius: 10px; |
|
transition: .3s; |
|
&:hover { |
|
transform: translateY(20px); |
|
} |
|
&:nth-child(3n) { |
|
margin-right: 0; |
|
} |
|
&:hover { |
|
color: #fff; |
|
background-color: #0252D9; |
|
} |
|
} |
|
img { |
|
width: 100%; |
|
height: 481px; |
|
} |
|
.texts { |
|
padding: 0 18px 50px; |
|
} |
|
h6 { |
|
margin: 35px 0 12px; |
|
font-size: 24px; |
|
line-height: 33px; |
|
} |
|
.des { |
|
font-size: 18px; |
|
line-height: 26px; |
|
} |
|
} |
|
.program { |
|
background: #fff; |
|
.slide { |
|
display: flex; |
|
margin-bottom: 14px; |
|
} |
|
.texts { |
|
width: 51%; |
|
padding: 56px; |
|
background: #FBFBFB; |
|
h6 { |
|
font-size: 24px; |
|
font-family: PingFangSC-Medium, PingFang SC; |
|
font-weight: 500; |
|
color: #333333; |
|
} |
|
.des { |
|
margin: 35px 0 25px; |
|
font-size: 16px; |
|
color: #666; |
|
line-height: 32px; |
|
} |
|
.meta { |
|
font-size: 14px; |
|
color: #666; |
|
} |
|
} |
|
.pic { |
|
width: 49%; |
|
height: 430px; |
|
} |
|
.list { |
|
display: flex; |
|
li { |
|
width: calc((100% - 44px) / 3); |
|
padding: 36px 22px; |
|
margin-right: 14px; |
|
background: url(../../assets/images/sfel/7.png) 0 0/cover no-repeat; |
|
&:nth-child(2) { |
|
background-image: url(../../assets/images/sfel/8.png); |
|
} |
|
&:nth-child(3) { |
|
margin-right: 0; |
|
background-image: url(../../assets/images/sfel/9.png); |
|
} |
|
} |
|
.des { |
|
margin-bottom: 30px; |
|
font-size: 18px; |
|
font-family: PingFangSC-Medium, PingFang SC; |
|
font-weight: 500; |
|
color: #FFFFFF; |
|
line-height: 30px; |
|
} |
|
.date { |
|
font-size: 16px; |
|
font-family: LaoSangamMN; |
|
color: #FFFFFF; |
|
} |
|
} |
|
} |
|
.tools { |
|
position: absolute; |
|
top: 600px; |
|
left: 0; |
|
width: 226px; |
|
text-align: center; |
|
.logo { |
|
padding: 44px 0; |
|
background: #0C60BE; |
|
box-shadow: 0px 0px 20px 0px rgba(184,191,200,0.3); |
|
} |
|
.nav { |
|
li { |
|
padding: 0 10px; |
|
font-size: 24px; |
|
line-height: 83px; |
|
color: #fff; |
|
background-color: #1D1D1D; |
|
cursor: pointer; |
|
@include ellipsis; |
|
&.active { |
|
background-color: #1583FF; |
|
} |
|
} |
|
} |
|
} |
|
@media (max-width: 1520px) { |
|
.lg { |
|
width: 98%; |
|
} |
|
} |
|
</style> |