parent
16eece1b01
commit
a34c73f98c
15 changed files with 525 additions and 71 deletions
@ -0,0 +1,141 @@ |
||||
<template> |
||||
<div class="wrap"> |
||||
<div class="actions"> |
||||
<p class="page-name">页面设置/NEWS&EVENTS</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="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> |
||||
|
||||
<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="org"> |
||||
<div class="left"> |
||||
<h6>{{ modules[1].form.title }}</h6> |
||||
<p class="text">{{ modules[1].form.des }}</p> |
||||
</div> |
||||
<img class="pic" src="@/assets/images/about.png" alt=""> |
||||
</div> |
||||
<div class="lg-bg"> |
||||
<img width="100%" src="@/assets/images/about-bg.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.overviewSetup, |
||||
active: 4, |
||||
tabs: ['S³FEL介绍', '发展历程', 'S³FEL宣传片', '地理位置', '机构设置'] |
||||
} |
||||
}, |
||||
mounted() { |
||||
this.$store.commit('user/setCrumbs', [ |
||||
{ |
||||
name: '站点管理', |
||||
route: '/site' |
||||
}, |
||||
{ |
||||
name: '内容管理', |
||||
route: '/column' |
||||
}, |
||||
{ |
||||
name: '栏目管理', |
||||
route: '/column' |
||||
}, |
||||
{ |
||||
name: '概况-机构设置' |
||||
} |
||||
]) |
||||
}, |
||||
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: 77px 0; |
||||
} |
||||
.org { |
||||
display: flex; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
width: 1294px; |
||||
padding: 9px 86px 29px 116px; |
||||
margin: 0 auto 50px; |
||||
background: #FCFCFC; |
||||
border-radius: 160px; |
||||
.left { |
||||
width: 705px; |
||||
} |
||||
h6 { |
||||
font-size: 1.4rem; |
||||
font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi; |
||||
font-weight: bold; |
||||
color: #333; |
||||
} |
||||
.text { |
||||
margin-top: 10px; |
||||
font-size: 1rem; |
||||
color: #020202; |
||||
line-height: 2rem; |
||||
} |
||||
.pic { |
||||
width: 320px; |
||||
height: 282px; |
||||
} |
||||
} |
||||
.lg-bg { |
||||
width: 85%; |
||||
margin: 0 auto; |
||||
} |
||||
</style> |
Loading…
Reference in new issue