粒子研究院后台前端
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.
 
 
 
 

240 lines
6.0 KiB

<template>
<div class="wrap">
<div class="actions">
<p class="page-name">页面设置/人才队伍</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 talent">
<div class="inner">
<div class="item">
<img class="pic" :src="modules[1].form.pic" alt="">
<div class="texts">
<h6>{{ modules[1].form.title }}</h6>
<div class="des">{{ modules[1].form.des }}</div>
</div>
<div class="cover" @click="toSet(1)">点击更改图片、标题概述与链接</div>
</div>
<div class="item">
<img class="pic" :src="modules[2].form.pic" alt="">
<div class="texts">
<h6>{{ modules[2].form.title }}</h6>
<div class="des">{{ modules[2].form.des }}</div>
</div>
<div class="cover" @click="toSet(2)">点击更改图片、标题概述与链接</div>
</div>
</div>
</div>
<div class="style c-wrap">
<div class="c-wrap">
<h6>{{ modules[3].form.title }}</h6>
<div class="cover" @click="toSet(3)">点击更换标题</div>
</div>
<div class="c-wrap">
<el-carousel :interval="4000" type="card" height="510px">
<template v-for="(item, i) in modules[4].list">
<el-carousel-item v-if="item.isEnable" :key="i">
<div class="item">
<img :src="item.pic" alt="">
<p class="text">{{ item.des }}</p>
</div>
</el-carousel-item>
</template>
</el-carousel>
<div class="cover" @click="toSet(4)">点击更改图片、标题概述与链接</div>
</div>
</div>
<div class="block intro">
<div class="inner">
<div class="item">
<img class="pic" :src="modules[5].form.pic" alt="">
<div class="texts">
<p class="type">{{ modules[5].form.subTitle }}</p>
<h6>{{ modules[5].form.title }}</h6>
<div class="des">{{ modules[5].form.des }}</div>
<el-button type="primary">查看更多</el-button>
</div>
<div class="cover" @click="toSet(5)">点击更改图片、标题、小标题、概述与链接</div>
</div>
<div class="item">
<img class="pic" :src="modules[6].form.pic" alt="">
<div class="texts">
<p class="type">{{ modules[6].form.subTitle }}</p>
<h6>{{ modules[6].form.title }}</h6>
<div class="des">{{ modules[6].form.des }}</div>
<el-button type="primary">查看更多</el-button>
</div>
<div class="cover" @click="toSet(6)">点击更改图片、标题、小标题、概述与链接</div>
</div>
</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.talent
}
},
mounted() {
this.$store.commit('user/setCrumbs', [
{
name: '站点管理',
route: '/site'
},
{
name: '内容管理',
route: '/column'
},
{
name: '栏目管理',
route: '/column'
},
{
name: '人才队伍'
}
])
},
methods: {
}
};
</script>
<style lang="scss" scoped>
@import "../../../styles/page/page.scss";
.wrap {
background: #F8F9FB;
}
.talent {
.inner {
width: 1504px;
}
.item {
position: relative;
display: flex;
padding: 42px;
margin-bottom: 36px;
background: #fff;
&:nth-child(even) {
flex-direction: row-reverse;
.texts {
padding-left: 0;
}
}
}
.pic {
width: 602px;
height: 465px;
}
.texts {
padding: 98px 72px 30px 80px;
}
h6 {
margin-bottom: 24px;
font-size: 50px;
font-family: PingFangSC-Light, PingFang SC;
font-weight: 300;
color: #333333;
}
.des {
font-size: 18px;
color: #333;
line-height: 33px;
}
}
.style {
h6 {
margin-bottom: 59px;
font-size: 48px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
text-align: center;
color: #333333;
}
.item {
position: relative;
}
img {
width: 100%;
height: 100%;
}
.text {
position: absolute;
bottom: 45px;
left: 0;
width: 100%;
padding: 0 30px;
line-height: 68px;
font-size: 24px;
color: #fff;
background: rgba(0,0,0,0.38);
}
}
.intro {
.inner {
width: 1504px;
}
.item {
position: relative;
display: flex;
align-items: center;
margin-bottom: 36px;
background: #fff;
&:nth-child(even) {
flex-direction: row-reverse;
}
}
.pic {
width: 848px;
height: 505px;
}
.texts {
padding: 0 58px;
}
.type {
font-size: 18px;
color: #333;
}
h6 {
margin: 20px 0;
font-size: 28px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
}
.des {
margin-bottom: 30px;
font-size: 16px;
color: #333;
line-height: 30px;
}
}
</style>