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.
288 lines
8.0 KiB
288 lines
8.0 KiB
<template> |
|
<div class="wrap"> |
|
<div class="actions"> |
|
<p class="page-name">页面设置/关于IASF-组织架构</p> |
|
<div> |
|
<el-button type="primary" @click="preview">预览</el-button> |
|
<el-button @click="save(0)">保存为草稿</el-button> |
|
<el-button type="primary" @click="save(1)">发布</el-button> |
|
<el-button @click="back">放弃编辑</el-button> |
|
</div> |
|
</div> |
|
|
|
<div class="modules"> |
|
<div class="relative"> |
|
<div class="single-banner"> |
|
<img class="banner-img" :src="modules[0].form.pic" alt="" /> |
|
<div class="texts"> |
|
<h6 class="banner-title">{{ modules[0].form.title }}</h6> |
|
<p class="banner-des des">{{ modules[0].form.des }}</p> |
|
</div> |
|
</div> |
|
<div class="cover" @click="toSet(0)">点击更换banner与链接</div> |
|
</div> |
|
|
|
<div class="block gray"> |
|
<div class="inner"> |
|
<ul class="items"> |
|
<li> |
|
<img class="pic" :src="modules[1].form.pic" alt=""> |
|
<div class="texts"> |
|
<h6>{{ modules[1].form.title }}</h6> |
|
<div class="text" v-html="modules[1].form.des"></div> |
|
<img class="icon" src="@/assets/images/arrow.png" alt=""> |
|
</div> |
|
<div class="cover" @click="toSet(1)">点击更换图片、标题、概述与链接</div> |
|
</li> |
|
<li> |
|
<img class="pic" :src="modules[2].form.pic" alt=""> |
|
<div class="texts"> |
|
<h6>{{ modules[2].form.title }}</h6> |
|
<div class="text" v-html="modules[2].form.des"></div> |
|
<img class="icon" src="@/assets/images/arrow.png" alt=""> |
|
</div> |
|
<div class="cover" @click="toSet(2)">点击更换图片、标题、概述与链接</div> |
|
</li> |
|
</ul> |
|
</div> |
|
</div> |
|
|
|
<div class="block program"> |
|
<div class="inner"> |
|
<div class="title"> |
|
<h5> |
|
{{ modules[3].form.title }} |
|
<span class="sub">{{ modules[3].form.subTitle }}</span> |
|
</h5> |
|
<span class="more">MORE</span> |
|
<div class="cover" @click="toSet(3)">点击更换标题与小标题</div> |
|
</div> |
|
<div class="c-wrap"> |
|
<div class="slide"> |
|
<div class="texts"> |
|
<h6>超快自由电子激光脉冲特性诊断研究方面取得重要进展</h6> |
|
<div class="des">X射线自由电子激光已经成为了化学、生物、物理等领域不可或缺的研究手段。对于绝大多数自由电子激研究院紧密围绕高水平建设综合性国家科学中心战略目标,面向国民经济主战场和世界科技前沿…</div> |
|
<div class="meta">发表日期:2022.01.10  浏览量:备份</div> |
|
</div> |
|
<img class="pic" src="@/assets/images/survey3.png" alt=""> |
|
</div> |
|
<ul class="list"> |
|
<li> |
|
<div class="des">X射线自由电子激光是基于国际最先进的超导加速器技术研发的装置,对于未来产业发展和基础科学应用有重要作用</div> |
|
<p class="date">2022.10.10</p> |
|
</li> |
|
<li> |
|
<div class="des">X射线自由电子激光是基于国际最先进的超导加速器技术研发的装置,对于未来产业发展和基础科学应用有重要作用</div> |
|
<p class="date">2022.10.10</p> |
|
</li> |
|
<li> |
|
<div class="des">X射线自由电子激光是基于国际最先进的超导加速器技术研发的装置,对于未来产业发展和基础科学应用有重要作用</div> |
|
<p class="date">2022.10.10</p> |
|
</li> |
|
</ul> |
|
<div class="cover" @click="toSet(4)">关联栏目</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<div class="about"> |
|
<div class="inner"> |
|
<div class="texts"> |
|
<div class="title wow fadeInUp" data-wow-delay="0.7s">{{ modules[5].form.title }}</div> |
|
<div class="des wow fadeInDown" data-wow-delay="1s" v-html="modules[5].form.des"></div> |
|
</div> |
|
<img src="@/assets/images/arrow-white.png" alt=""> |
|
</div> |
|
<div class="cover" @click="toSet(5)">点击更换标题与描述</div> |
|
</div> |
|
</div> |
|
|
|
<Module ref="module" :data.sync="curData" :visible.sync="diaVisible" @moduleSubmit="moduleSubmit" /> |
|
</div> |
|
</template> |
|
|
|
<script> |
|
import mixins from '@/mixins/page' |
|
import Modules from '@/const/modules' |
|
export default { |
|
mixins: [mixins], |
|
data() { |
|
return { |
|
modules: Modules.scientific |
|
} |
|
}, |
|
mounted() { |
|
this.$store.commit('user/setCrumbs', [ |
|
{ |
|
name: '站点管理', |
|
route: '/site' |
|
}, |
|
{ |
|
name: '内容管理', |
|
route: '/column' |
|
}, |
|
{ |
|
name: '栏目管理', |
|
route: '/column' |
|
}, |
|
{ |
|
name: '关于IASF-组织架构' |
|
} |
|
]) |
|
}, |
|
methods: { |
|
|
|
} |
|
}; |
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
@import "../../../styles/page/page.scss"; |
|
.items { |
|
li { |
|
position: relative; |
|
height: 600px; |
|
margin-bottom: 60px; |
|
&:nth-child(even) { |
|
.texts { |
|
left: auto; |
|
right: 100px; |
|
} |
|
} |
|
.pic { |
|
width: 100%; |
|
height: 100%; |
|
} |
|
.texts { |
|
position: absolute; |
|
top: 100px; |
|
left: 80px; |
|
width: 500px; |
|
min-height: 350px; |
|
padding: 30px; |
|
color: #333; |
|
background-color: rgba(255, 255, 255, .85); |
|
border-radius: 0px 0px 100px 0px; |
|
border-top: 4px solid #0280F1; |
|
} |
|
h6 { |
|
font-size: 1.2rem; |
|
font-family: PingFangSC-Medium, PingFang SC; |
|
} |
|
.text { |
|
margin: 1rem 0; |
|
font-size: 1rem; |
|
line-height: 1.6; |
|
} |
|
.icon { |
|
width: 40px; |
|
} |
|
} |
|
} |
|
.program { |
|
background: #fff; |
|
.slide { |
|
display: flex; |
|
margin-bottom: 14px; |
|
cursor: pointer; |
|
} |
|
.texts { |
|
width: 51%; |
|
padding: 56px; |
|
background: #FBFBFB; |
|
h6 { |
|
font-size: 1.3rem; |
|
font-family: PingFangSC-Medium, PingFang SC; |
|
font-weight: 500; |
|
color: #333333; |
|
} |
|
.des { |
|
margin: 35px 0 25px; |
|
font-size: 1rem; |
|
color: #666; |
|
line-height: 32px; |
|
} |
|
.meta { |
|
font-size: .9rem; |
|
color: #666; |
|
} |
|
} |
|
.img-wrap { |
|
width: 49%; |
|
height: 430px; |
|
overflow: hidden; |
|
} |
|
.pic { |
|
width: 100%; |
|
height: 100%; |
|
transition: .5s; |
|
} |
|
&:hover { |
|
.pic { |
|
transform: scale(1.3); |
|
} |
|
} |
|
.list { |
|
display: flex; |
|
li { |
|
width: calc((100% - 28px) / 3); |
|
height: 204px; |
|
padding: 36px 22px; |
|
margin-right: 14px; |
|
background: url(../../../assets/images/sfel/7.png) no-repeat center; |
|
background-size: 100% 100%; |
|
transition: .5s; |
|
cursor: pointer; |
|
&: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); |
|
} |
|
&:hover { |
|
transform: translateY(20px); |
|
} |
|
} |
|
.des { |
|
height: 90px; |
|
margin-bottom: 30px; |
|
font-size: 1rem; |
|
font-family: PingFangSC-Medium, PingFang SC; |
|
font-weight: 500; |
|
color: #FFFFFF; |
|
line-height: 30px; |
|
} |
|
.date { |
|
font-size: .9rem; |
|
font-family: LaoSangamMN; |
|
color: #FFFFFF; |
|
} |
|
} |
|
} |
|
.about { |
|
padding: 10rem 0 3rem; |
|
text-align: center; |
|
background: url(../../../assets/images/about-bg.png) no-repeat center center; |
|
background-size: 100% 100%; |
|
.texts { |
|
padding: 2.375rem 3.75rem; |
|
color: #fff; |
|
background: rgba(111, 69, 36, .56); |
|
border-radius: 17px; |
|
transition: .3s; |
|
&:hover { |
|
background: rgba(239, 126, 10, .56); |
|
transform: translateY(10px); |
|
} |
|
} |
|
.title { |
|
margin-bottom: 1rem; |
|
font-size: 2.2rem; |
|
} |
|
.des { |
|
font-size: 1rem; |
|
line-height: 1.6; |
|
} |
|
} |
|
</style>
|
|
|