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.
302 lines
7.5 KiB
302 lines
7.5 KiB
<template> |
|
<div class="wrap"> |
|
<div class="actions"> |
|
<p class="page-name">页面设置/CAREERS</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"> |
|
<el-carousel height="480px" :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 width="100%" height="100%" :src="item.pic" alt=""> |
|
</el-carousel-item> |
|
</template> |
|
</el-carousel> |
|
<div class="cover" @click="toSet(0)">点击更换banner与链接</div> |
|
</div> |
|
|
|
<div class="block"> |
|
<div class="inner"> |
|
<ul class="card"> |
|
<li> |
|
<img class="pic" :src="modules[1].form.pic" alt=""> |
|
<div class="texts"> |
|
<h6>{{ modules[1].form.title }}</h6> |
|
<p class="text">{{ modules[1].form.des }}</p> |
|
</div> |
|
<div class="arrow"> |
|
<img src="@/assets/images/arrow-white.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> |
|
<p class="text">{{ modules[2].form.des }}</p> |
|
</div> |
|
<div class="arrow"> |
|
<img src="@/assets/images/arrow-white.png" alt=""> |
|
</div> |
|
<div class="cover" @click="toSet(2)">点击更换标题与描述</div> |
|
</li> |
|
<li> |
|
<img class="pic" :src="modules[3].form.pic" alt=""> |
|
<div class="texts"> |
|
<h6>{{ modules[3].form.title }}</h6> |
|
<p class="text">{{ modules[3].form.des }}</p> |
|
</div> |
|
<div class="arrow"> |
|
<img src="@/assets/images/arrow-white.png" alt=""> |
|
</div> |
|
<div class="cover" @click="toSet(3)">点击更换标题与描述</div> |
|
</li> |
|
<li> |
|
<img class="pic" :src="modules[4].form.pic" alt=""> |
|
<div class="texts"> |
|
<h6>{{ modules[4].form.title }}</h6> |
|
<p class="text">{{ modules[4].form.des }}</p> |
|
</div> |
|
<div class="arrow"> |
|
<img src="@/assets/images/arrow-white.png" alt=""> |
|
</div> |
|
<div class="cover" @click="toSet(4)">点击更换标题与描述</div> |
|
</li> |
|
</ul> |
|
</div> |
|
</div> |
|
|
|
<div class="block gray"> |
|
<div class="inner"> |
|
<div class="c-wrap"> |
|
<h2 class="b-title">{{ modules[5].form.title }}</h2> |
|
<p class="intro">{{ modules[5].form.des }}</p> |
|
<div class="cover" @click="toSet(5)">点击更换标题与描述</div> |
|
</div> |
|
<ul class="people"> |
|
<template v-for="(item, i) in modules[6].list"> |
|
<li v-if="item.isEnable" :key="i"> |
|
<img class="comma" src="@/assets/images/comma.png" alt=""> |
|
<div class="left"> |
|
<h6>{{ item.title }}</h6> |
|
<div class="des">{{ item.des }}</div> |
|
</div> |
|
<img class="pic" :src="item.pic" alt=""> |
|
</li> |
|
</template> |
|
<div class="cover" style="top: -60px" @click="toSet(6)">点击更换标题与描述</div> |
|
</ul> |
|
</div> |
|
</div> |
|
|
|
<ul class="shows"> |
|
<template v-for="(item, i) in modules[7].list"> |
|
<li v-if="item.isEnable" :key="i"> |
|
<div class="left"> |
|
<h6>{{ item.title }}</h6> |
|
<div class="sub">{{ item.subTitle }}</div> |
|
<div class="des">{{ item.des }}</div> |
|
<img class="arrow" src="@/assets/images/arrow-white.png" alt=""> |
|
</div> |
|
<img class="pic" :src="item.pic" alt=""> |
|
</li> |
|
</template> |
|
<div class="cover" @click="toSet(7)">点击更换标题与描述</div> |
|
</ul> |
|
</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.careers |
|
} |
|
}, |
|
mounted() { |
|
this.$store.commit('user/setCrumbs', [ |
|
{ |
|
name: '站点管理', |
|
route: '/site' |
|
}, |
|
{ |
|
name: '内容管理', |
|
route: '/column' |
|
}, |
|
{ |
|
name: '栏目管理', |
|
route: '/column' |
|
}, |
|
{ |
|
name: 'CAREERS' |
|
} |
|
]) |
|
}, |
|
methods: { |
|
|
|
} |
|
}; |
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
@import "../../../styles/page/page.scss"; |
|
.card { |
|
display: flex; |
|
justify-content: center; |
|
li { |
|
position: relative; |
|
display: inline-flex; |
|
justify-content: center; |
|
align-items: center; |
|
flex-direction: column; |
|
width: 368px; |
|
height: 526px; |
|
margin-right: 14px; |
|
color: #fff; |
|
cursor: pointer; |
|
&:hover { |
|
.arrow { |
|
opacity: 1; |
|
} |
|
} |
|
.pic { |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
width: 100%; |
|
height: 100%; |
|
} |
|
.texts { |
|
position: relative; |
|
} |
|
h6 { |
|
margin-bottom: 10px; |
|
font-size: 35px; |
|
} |
|
.text { |
|
font-size: 24px; |
|
} |
|
.arrow { |
|
position: absolute; |
|
bottom: 0; |
|
width: 100%; |
|
height: 177px; |
|
padding-top: 62px; |
|
text-align: center; |
|
background: #36404A; |
|
opacity: 0; |
|
transition: .3s; |
|
} |
|
} |
|
} |
|
.people { |
|
position: relative; |
|
li { |
|
position: relative; |
|
min-height: 450px; |
|
padding: 100px 70px 30px 57px; |
|
margin-bottom: 100px; |
|
background-color: #fff; |
|
&:nth-child(even) { |
|
display: flex; |
|
justify-content: flex-end; |
|
.comma { |
|
left: 660px; |
|
} |
|
.pic { |
|
left: 0; |
|
right: auto; |
|
} |
|
} |
|
} |
|
.comma { |
|
position: absolute; |
|
top: -22px; |
|
left: 57px; |
|
} |
|
.left { |
|
width: 670px; |
|
} |
|
h6 { |
|
font-size: 24px; |
|
color: #333; |
|
} |
|
.des { |
|
margin-top: 20px; |
|
font-size: 20px; |
|
color: #666; |
|
line-height: 32px; |
|
} |
|
.pic { |
|
position: absolute; |
|
top: -60px; |
|
right: 43px; |
|
width: 600px; |
|
height: 450px; |
|
} |
|
} |
|
.shows { |
|
position: relative; |
|
li { |
|
position: relative; |
|
display: flex; |
|
align-items: center; |
|
width: 100%; |
|
height: 654px; |
|
margin-bottom: 40px; |
|
color: #fff; |
|
&:nth-child(even) { |
|
flex-direction: row-reverse; |
|
} |
|
&:nth-child(2) { |
|
.left { |
|
background-color: rgba(47, 79, 23, .65); |
|
} |
|
} |
|
&:nth-child(3) { |
|
.left { |
|
background-color: rgba(91, 58, 35, .65); |
|
} |
|
} |
|
} |
|
.left { |
|
position: relative; |
|
z-index: 1; |
|
width: 43.3%; |
|
height: 100%; |
|
padding: 138px 30px 30px 103px; |
|
background-color: rgba(54, 54, 54, .65); |
|
} |
|
.pic { |
|
position: absolute; |
|
top: 0; |
|
right: 0; |
|
width: 100%; |
|
height: 100%; |
|
} |
|
h6 { |
|
font-size: 46px; |
|
} |
|
.sub { |
|
margin: 20px 0; |
|
font-size: 36px; |
|
} |
|
.des { |
|
margin-bottom: 40px; |
|
font-size: 24px; |
|
} |
|
} |
|
</style> |