|
|
|
<template>
|
|
|
|
<!-- 产业光源-产业光源概况 -->
|
|
|
|
<div class="wrap">
|
|
|
|
<div class="actions">
|
|
|
|
<p class="page-name">页面设置/{{ columnName }}</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 single-banner-overview">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<ul class="tabs wow fadeInLeft">
|
|
|
|
<template v-for="(item, i) in tabs">
|
|
|
|
<li :class="{ active: i == active }" :key="i" @click="tabChange(i)">{{ item }}</li>
|
|
|
|
</template>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="survey c-wrap">
|
|
|
|
<h6>
|
|
|
|
{{ modules[1].form.title }}
|
|
|
|
<img class="title-bg" src="https://new.iasf.ac.cn/images/overviewIntro/2.png" alt="">
|
|
|
|
</h6>
|
|
|
|
<p class="text" v-html="modules[1].form.des"></p>
|
|
|
|
<div class="cover" @click="toSet(1)">点击更换标题与描述</div>
|
|
|
|
</div>
|
|
|
|
<div class="lg-bg">
|
|
|
|
<img width="100%" src="https://new.iasf.ac.cn/images/estate/3.png" alt="">
|
|
|
|
</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['estate/survey'],
|
|
|
|
active: 0,
|
|
|
|
tabs: ['产业光源概况']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted () {
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
// tab回调
|
|
|
|
tabChange (i) {
|
|
|
|
this.active = i
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import '../../../../../styles/page/page.scss';
|
|
|
|
|
|
|
|
.tabs {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
box-shadow: 0px 2px 10px 0px rgba(223, 223, 223, 0.28);
|
|
|
|
|
|
|
|
li {
|
|
|
|
padding: 25px 19px;
|
|
|
|
margin: 0 10px;
|
|
|
|
font-size: 1.1rem;
|
|
|
|
color: #333;
|
|
|
|
border-bottom: 4px solid transparent;
|
|
|
|
text-shadow: 0px 2px 14px rgba(167, 167, 167, 0.26);
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
color: #1583ff;
|
|
|
|
border-bottom-color: #1583ff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-content {
|
|
|
|
padding-top: 70px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.survey {
|
|
|
|
width: 1294px;
|
|
|
|
min-height: 500px;
|
|
|
|
padding: 80px 86px 29px 597px;
|
|
|
|
margin: 0 auto 200px;
|
|
|
|
background: url(https://new.iasf.ac.cn/images/estate/2.png) 0 0/100% 100% no-repeat;
|
|
|
|
border-radius: 160px;
|
|
|
|
|
|
|
|
h6 {
|
|
|
|
position: relative;
|
|
|
|
margin-bottom: 30px;
|
|
|
|
font-size: 1.4rem;
|
|
|
|
font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title-bg {
|
|
|
|
position: absolute;
|
|
|
|
top: -40px;
|
|
|
|
left: -20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text {
|
|
|
|
margin-top: 10px;
|
|
|
|
font-size: 1rem;
|
|
|
|
color: #020202;
|
|
|
|
line-height: 2rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.lg-bg {
|
|
|
|
width: 40%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 1200px) {
|
|
|
|
.tabs {
|
|
|
|
overflow: hidden;
|
|
|
|
overflow-x: auto;
|
|
|
|
white-space: normal;
|
|
|
|
justify-content: normal;
|
|
|
|
display: -webkit-box;
|
|
|
|
|
|
|
|
li {
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-content {
|
|
|
|
padding: 20px 0;
|
|
|
|
|
|
|
|
.org {
|
|
|
|
width: 100%;
|
|
|
|
padding: 15px;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.left {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|