|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cover" @click="toSet(0)">点击更换banner与链接</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="block">
|
|
|
|
<div class="inner">
|
|
|
|
<div
|
|
|
|
class="item">
|
|
|
|
<img src="http://10.10.11.7/images/mission/2.png" alt="" />
|
|
|
|
<div class="texts">
|
|
|
|
<h6>{{ modules[1].form.title }}</h6>
|
|
|
|
<div class="des" v-html="modules[1].form.des"></div>
|
|
|
|
</div>
|
|
|
|
<div class="cover" style="left: -35px" @click="toSet(1)">点击更改标题概述与链接</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="item">
|
|
|
|
<img src="http://10.10.11.7/images/mission/3.png" alt="" />
|
|
|
|
<div class="texts rightText">
|
|
|
|
<h6>{{ modules[2].form.title }}</h6>
|
|
|
|
<div class="des" v-html="modules[2].form.des"></div>
|
|
|
|
</div>
|
|
|
|
<div class="cover" style="right: -35px" @click="toSet(2)">点击更改标题概述与链接</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="block mind gray">
|
|
|
|
<div class="inner">
|
|
|
|
<div class="c-wrap">
|
|
|
|
<h6 class="m-title">{{ modules[3].form.title }}</h6>
|
|
|
|
<div class="cover" @click="toSet(3)">点击更换标题</div>
|
|
|
|
</div>
|
|
|
|
<ul class="list">
|
|
|
|
<template v-for="(item, i) in modules[4].list">
|
|
|
|
<li v-if="item.isEnable" :key="i">
|
|
|
|
<img :src="item.pic" alt="" class="pic">
|
|
|
|
<div class="texts">
|
|
|
|
<h6>{{ item.title }}</h6>
|
|
|
|
<div class="des" v-html="item.des"></div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</template>
|
|
|
|
<div class="cover" @click="toSet(4)">点击更换图片、标题、概述与链接</div>
|
|
|
|
</ul>
|
|
|
|
</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.mission
|
|
|
|
}
|
|
|
|
},
|
|
|
|
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";
|
|
|
|
.inner {
|
|
|
|
width: 1200px;
|
|
|
|
}
|
|
|
|
.item {
|
|
|
|
position: relative;
|
|
|
|
margin-bottom: 58px;
|
|
|
|
&:hover {
|
|
|
|
.texts {
|
|
|
|
color: #fff;
|
|
|
|
transform: scale(1.05);
|
|
|
|
background: #32b6e9 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
img {
|
|
|
|
width: 90%;
|
|
|
|
height: 400px;
|
|
|
|
}
|
|
|
|
&:nth-child(2) .texts {
|
|
|
|
left: auto;
|
|
|
|
right: 0;
|
|
|
|
color: #fff;
|
|
|
|
background: rgba(40,179,255,0.34);
|
|
|
|
}
|
|
|
|
.texts {
|
|
|
|
position: absolute;
|
|
|
|
top: 79px;
|
|
|
|
left: -28px;
|
|
|
|
width: 532px;
|
|
|
|
padding: 70px 38px;
|
|
|
|
color: #333;
|
|
|
|
background: rgba(255, 241, 231, 0.84);
|
|
|
|
transition: 0.5s;
|
|
|
|
}
|
|
|
|
h6 {
|
|
|
|
margin-bottom: 14px;
|
|
|
|
font-size: 2rem;
|
|
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
.des {
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.mind {
|
|
|
|
.m-title {
|
|
|
|
margin-bottom: 30px;
|
|
|
|
font-size: 2.2rem;
|
|
|
|
text-align: center;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
.list {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
width: calc((100% - 22px) / 2);
|
|
|
|
margin: 0 22px 22px 0;
|
|
|
|
background-color: #fff;
|
|
|
|
&:nth-child(even) {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
.pic {
|
|
|
|
width: 250px;
|
|
|
|
height: 230px;
|
|
|
|
}
|
|
|
|
.texts {
|
|
|
|
width: calc(100% - 250px);
|
|
|
|
padding: 0 20px;
|
|
|
|
}
|
|
|
|
h6 {
|
|
|
|
margin-bottom: 20px;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
color: #272727;
|
|
|
|
@include ellipsis();
|
|
|
|
}
|
|
|
|
.des {
|
|
|
|
font-size: 1rem;
|
|
|
|
color: #666;
|
|
|
|
line-height: 1.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
|
|
body {
|
|
|
|
width: 100% !important;
|
|
|
|
}
|
|
|
|
.inner {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.item {
|
|
|
|
img {
|
|
|
|
margin-left: 30px;
|
|
|
|
}
|
|
|
|
.rightText {
|
|
|
|
right: 12px !important;
|
|
|
|
}
|
|
|
|
.texts {
|
|
|
|
width: 85%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
left: 12px;
|
|
|
|
.des{
|
|
|
|
-webkit-line-clamp: inherit
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: 320px) {
|
|
|
|
.wrap {
|
|
|
|
.single-banner {
|
|
|
|
.banner-img {
|
|
|
|
height: 13rem;
|
|
|
|
}
|
|
|
|
.texts {
|
|
|
|
top: 6rem;
|
|
|
|
left: 12rem;
|
|
|
|
.banner-title{
|
|
|
|
font-size: 1.5rem;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
}
|
|
|
|
.banner-des{
|
|
|
|
font-size: .85rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.block {
|
|
|
|
.inner {
|
|
|
|
img {
|
|
|
|
height: 18rem;
|
|
|
|
}
|
|
|
|
.texts {
|
|
|
|
padding: 1.25rem;
|
|
|
|
top: 1.5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (min-width: 320px) and (max-width: 375px) {
|
|
|
|
.wrap {
|
|
|
|
.single-banner {
|
|
|
|
.banner-img {
|
|
|
|
height: 13rem;
|
|
|
|
}
|
|
|
|
.texts {
|
|
|
|
top: 6rem;
|
|
|
|
left: 12rem;
|
|
|
|
.banner-title{
|
|
|
|
font-size: 1.5rem;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
}
|
|
|
|
.banner-des{
|
|
|
|
font-size: .85rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (min-width: 375px) and (max-width: 480px) {
|
|
|
|
.wrap {
|
|
|
|
.single-banner {
|
|
|
|
.banner-img {
|
|
|
|
height: 20rem;
|
|
|
|
}
|
|
|
|
.texts {
|
|
|
|
top: 10rem;
|
|
|
|
left: 12rem;
|
|
|
|
.banner-title{
|
|
|
|
font-size: 1.5rem;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
}
|
|
|
|
.banner-des{
|
|
|
|
font-size: .85rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (min-width: 480px) and (max-width: 640px) {
|
|
|
|
.wrap {
|
|
|
|
.single-banner {
|
|
|
|
.banner-img {
|
|
|
|
height: 25rem;
|
|
|
|
}
|
|
|
|
.texts {
|
|
|
|
top: 10rem;
|
|
|
|
left: 12rem;
|
|
|
|
.banner-title{
|
|
|
|
font-size: 2rem;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
}
|
|
|
|
.banner-des{
|
|
|
|
font-size: .85rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (min-width: 640px) and (max-width: 768px) {
|
|
|
|
.wrap {
|
|
|
|
.single-banner {
|
|
|
|
.banner-img {
|
|
|
|
height: 35rem;
|
|
|
|
}
|
|
|
|
.texts {
|
|
|
|
top: 20rem;
|
|
|
|
left: 12rem;
|
|
|
|
.banner-title{
|
|
|
|
font-size: 2rem;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
}
|
|
|
|
.banner-des{
|
|
|
|
font-size: .85rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (min-width: 768px) and (max-width: 980px) {
|
|
|
|
.wrap {
|
|
|
|
.single-banner {
|
|
|
|
.banner-img {
|
|
|
|
height: 35rem;
|
|
|
|
}
|
|
|
|
.texts {
|
|
|
|
top: 20rem;
|
|
|
|
left: 12rem;
|
|
|
|
.banner-title{
|
|
|
|
font-size: 2rem;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
}
|
|
|
|
.banner-des{
|
|
|
|
font-size: .85rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (min-width: 980px) and (max-width: 1200px) {
|
|
|
|
.wrap {
|
|
|
|
.single-banner {
|
|
|
|
.banner-img {
|
|
|
|
height: 40rem;
|
|
|
|
}
|
|
|
|
.texts {
|
|
|
|
top: 20rem;
|
|
|
|
left: 12rem;
|
|
|
|
.banner-title{
|
|
|
|
font-size: 2rem;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
}
|
|
|
|
.banner-des{
|
|
|
|
font-size: .85rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|