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

438 lines
12 KiB

2 years ago
<template>
<div class="wrap">
<el-carousel height="480px" :interval="6000" :arrow="(modules[0] && modules[0].list.filter(e => e.isEnable).length > 1) ? 'hover' : 'never'" :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">
2 years ago
<div :class="['banner-item', {'cursor-pointer': item.link.linkName !== '无'}]" @click="openLink(item)">
<img :src="item.pic" alt="">
<p class="banner-name">{{ item.title }}</p>
</div>
</el-carousel-item>
</template>
</el-carousel>
2 years ago
2 years ago
<div class="block history gray">
2 years ago
<div :class="['inner', {'cursor-pointer': modules[1].form.link.linkName !== '无'}]" @click="openLink(modules[1].form)">
2 years ago
<h2 class="wow fadeInLeft" style="margin-left: 57px">{{ modules[1].form.title }}</h2>
<div class="texts wow fadeInDown" data-wow-delay="0.5s">
2 years ago
<div class="left">
<h2>{{ modules[1].form.subTitle }}</h2>
2 years ago
<div class="line"></div>
<div class="des">{{ modules[1].form.des }}</div>
2 years ago
</div>
<img class="bg" width="562" height="506" :src="modules[1].form.pic" alt="">
2 years ago
</div>
</div>
</div>
<div class="block">
<div class="inner">
2 years ago
<h2 class="b-title wow fadeInUp">{{ modules[2].form.title }}</h2>
<p class="intro wow fadeInUp" data-wow-delay="0.5s">{{ modules[2].form.des }}</p>
2 years ago
<ul class="card">
2 years ago
<li :class="['item1 wow fadeInLeft', {'cursor-pointer': modules[3].form.link.linkName !== '无'}]" data-wow-delay="0.7s" @click="openLink(modules[3].form)">
<h6>{{ modules[3].form.title }}</h6>
<div class="des" v-html="modules[3].form.des"></div>
2 years ago
</li>
2 years ago
<li :class="['item2 wow fadeInRight', {'cursor-pointer': modules[4].form.link.linkName !== '无'}]" data-wow-delay="0.9s" @click="openLink(modules[4].form)">
<h6>{{ modules[4].form.title }}</h6>
<div class="des" v-html="modules[4].form.des"></div>
2 years ago
</li>
2 years ago
<li :class="['item3 wow fadeInLeft', {'cursor-pointer': modules[5].form.link.linkName !== '无'}]" data-wow-delay="1.1s" @click="openLink(modules[5].form)">
<h6>{{ modules[5].form.title }}</h6>
<div class="des" v-html="modules[5].form.des"></div>
2 years ago
</li>
2 years ago
<li :class="['item4 wow fadeInRight', {'cursor-pointer': modules[6].form.link.linkName !== '无'}]" data-wow-delay="1.3s" @click="openLink(modules[6].form)">
<h6>{{ modules[6].form.title }}</h6>
<div class="des" v-html="modules[6].form.des"></div>
2 years ago
</li>
</ul>
</div>
</div>
<div class="block gray">
2 years ago
<div class="inner">
2 years ago
<h2 class="b-title wow fadeInUp">{{ modules[7].form.title }}</h2>
<p class="intro wow fadeInUp" data-wow-delay="0.5s">{{ modules[7].form.des }}</p>
2 years ago
<ul class="stat">
2 years ago
<li class="wow fadeInLeft" data-wow-delay="0.2s">
<p class="num">{{ modules[8].form.title }}</p>
<p class="text">{{ modules[8].form.des }}</p>
2 years ago
</li>
2 years ago
<li class="wow fadeInLeft" data-wow-delay="0.4s">
<p class="num">{{ modules[9].form.title }}</p>
<p class="text">{{ modules[9].form.des }}</p>
2 years ago
</li>
2 years ago
<li class="wow fadeInLeft" data-wow-delay="0.6s">
<p class="num">{{ modules[10].form.title }}</p>
<p class="text">{{ modules[10].form.des }}</p>
2 years ago
</li>
2 years ago
<li class="wow fadeInLeft" data-wow-delay="0.9s">
<p class="num">{{ modules[11].form.title }}</p>
<p class="text">{{ modules[11].form.des }}</p>
2 years ago
</li>
2 years ago
<li class="wow fadeInLeft" data-wow-delay="1.1s">
<p class="num">{{ modules[12].form.title }}</p>
<p class="text">{{ modules[12].form.des }}</p>
2 years ago
</li>
2 years ago
<li class="wow fadeInLeft" data-wow-delay="1.3s">
<p class="num">{{ modules[13].form.title }}</p>
<p class="text">{{ modules[13].form.des }}</p>
2 years ago
</li>
</ul>
</div>
</div>
<div class="plan">
2 years ago
<div :class="['inner', {'cursor-pointer': modules[14].form.link.linkName !== '无'}]" @click="openLink(modules[14].form)">
2 years ago
<img class="pic wow fadeInLeft" :src="modules[14].form.pic" alt="">
<div class="texts wow fadeInRight">
<h6>{{ modules[14].form.title }}</h6>
<div class="des">{{ modules[14].form.des }}</div>
<img src="@/assets/images/arrow-white.png" alt="">
</div>
</div>
</div>
2 years ago
<div class="block">
<div class="inner">
2 years ago
<h2 class="b-title wow fadeInUp">{{ modules[15].form.title }}</h2>
<p class="intro wow fadeInUp" data-wow-delay="0.5s">{{ modules[15].form.des }}</p>
2 years ago
<ul class="people">
2 years ago
<template v-for="(item, i) in modules[16].list">
2 years ago
<li v-if="item.isEnable" :key="i" class="wow fadeInDown" data-wow-delay="0.5s">
2 years ago
<img class="pic" :src="item.pic" alt="">
<div class="texts">
2 years ago
<p class="sub">{{ item.subTitle }}</p>
<h6>{{ item.title }}</h6>
2 years ago
<p class="des">{{ item.des }}</p>
2 years ago
<img :class="{'arrow': item.link.linkName !== '无'}" src="@/assets/images/arrow.png" alt="" @click="openLink(item)">
2 years ago
</div>
</li>
</template>
2 years ago
</ul>
</div>
</div>
2 years ago
<div class="block list-block gray">
2 years ago
<div class="inner">
2 years ago
<h2 class="b-title wow fadeInUp">{{ modules[17].form.title }}</h2>
<p class="intro wow fadeInUp" data-wow-delay="0.5s">{{ modules[17].form.des }}</p>
2 years ago
<ul class="list">
2 years ago
<li class="wow fadeInDown" data-wow-delay="0.6s" :class="{'cursor-pointer': modules[18].form.link.linkName !== '无'}" @click="openLink(modules[18].form)">
<img class="pic" :src="modules[18].form.pic" alt="">
<h6>{{ modules[18].form.title }}</h6>
<p class="des">{{ modules[18].form.des }}</p>
2 years ago
</li>
2 years ago
<li class="wow fadeInDown" data-wow-delay="0.8s" :class="{'cursor-pointer': modules[19].form.link.linkName !== '无'}" @click="openLink(modules[19].form)">
<img class="pic" :src="modules[19].form.pic" alt="">
<h6>{{ modules[19].form.title }}</h6>
<p class="des">{{ modules[19].form.des }}</p>
2 years ago
</li>
2 years ago
<li class="wow fadeInDown" data-wow-delay="1s" :class="{'cursor-pointer': modules[20].form.link.linkName !== '无'}" @click="openLink(modules[20].form)">
<img class="pic" :src="modules[20].form.pic" alt="">
<h6>{{ modules[20].form.title }}</h6>
<p class="des">{{ modules[20].form.des }}</p>
2 years ago
</li>
</ul>
</div>
</div>
<div class="block">
2 years ago
<div class="inner staff-inner">
2 years ago
<h2 class="b-title wow fadeInUp">{{ modules[21].form.title }}</h2>
<p class="intro wow fadeInUp" data-wow-delay="0.5s">{{ modules[21].form.des }}</p>
<div :class="['staff wow fadeInDown', {'cursor-pointer': modules[22].form.link.linkName !== '无'}]" data-wow-delay="0.7s" @click="openLink(modules[22].form)">
2 years ago
<div class="left">
<h6>{{ modules[22].form.title }}</h6>
<div class="des">{{ modules[22].form.des }}</div>
2 years ago
</div>
<img class="pic" :src="modules[22].form.pic" alt="">
2 years ago
</div>
</div>
</div>
</div>
</template>
<script>
import mixins from '@/mixins/page'
2 years ago
import Setting from '@/setting'
import Util from '@/libs/util'
2 years ago
import WOW from 'wow.js'
2 years ago
export default {
mixins: [mixins],
2 years ago
data() {
return {
2 years ago
}
},
mounted() {
2 years ago
new WOW().init()
2 years ago
},
methods: {
// 获取文章详情
getInfo() {
// 预览/详情
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
if (data.length) {
// state:已发布(1)则取theEditedJson,草稿(0)则取jsonBeforeEditing
const json = JSON.parse(this.preview ?
data :
data[data.length - 1][data[data.length - 1].state ? 'theEditedJson' : 'jsonBeforeEditing'])
this.modules = json
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json[0])
}
2 years ago
}).catch(err => {})
},
}
};
</script>
<style lang="scss" scoped>
2 years ago
@import url(../../plugins/wow/animate.css);
2 years ago
@import "../../styles/page/page.scss";
.history {
h2 {
font-size: 30px;
color: #333;
}
.texts {
display: flex;
justify-content: space-between;
padding: 82px 57px 30px;
margin-top: 20px;
background-color: #fff;
border-radius: 100px 0px 0px 0px;
2 years ago
transition: .3s;
&:hover {
transform: scale(1.05);
}
2 years ago
}
.left {
width: 695px;
}
.line {
width: 136px;
height: 2px;
margin: 20px 0;
background: #D7D7D7;
}
.des {
font-size: 22px;
color: #181818;
line-height: 31px;
2 years ago
-webkit-line-clamp: 6;
2 years ago
}
.bg {
margin: -122px 0 0 0;
border-top-right-radius: 40px;
2 years ago
}
}
.card {
display: flex;
flex-wrap: wrap;
li {
2 years ago
width: calc((100% - 28px) / 2);
2 years ago
height: 277px;
padding: 70px 67px 20px;
margin-bottom: 28px;
color: #fff;
2 years ago
transition: .3s;
&:hover {
transform: scale(1.05);
}
2 years ago
&:nth-child(odd) {
margin-right: 28px;
}
}
.item1 {
background: url(../../assets/images/about/3.png) 0 0/100% 100% no-repeat;
}
.item2 {
background-color: #4984B6;
}
.item3 {
background-color: #567180;
}
.item4 {
background: url(../../assets/images/about/4.png) 0 0/100% 100% no-repeat;
}
h6 {
margin-bottom: 10px;
font-size: 40px;
font-family: toppan;
2 years ago
}
.des {
font-size: 18px;
}
}
.plan {
padding: 73px 0;
background: #072947;
.inner {
display: flex;
justify-content: space-between;
width: 1575px;
}
.pic {
2 years ago
width: 42%;
height: 488px;
margin-bottom: -120px;
2 years ago
transition: .3s;
&:hover {
transform: scale(1.05);
}
}
.texts {
2 years ago
width: 51%;
margin-top: 36px;
color: #fff;
2 years ago
transition: .3s;
&:hover {
transform: translateY(20px);
}
}
h6 {
font-size: 36px;
}
.des {
margin: 20px 0;
font-size: 20px;
}
}
2 years ago
.people {
li {
display: flex;
justify-content: space-between;
margin-bottom: 126px;
2 years ago
transition: .3s;
&:hover {
transform: scale(1.05);
}
&:nth-child(even) {
flex-direction: row-reverse;
}
2 years ago
}
.pic {
2 years ago
width: 47%;
2 years ago
height: 465px;
}
.texts {
2 years ago
width: 49%;
2 years ago
padding-top: 90px;
}
h6 {
margin: 20px 0;
font-size: 40px;
}
.sub {
font-size: 20px;
color: #020202;
}
.des {
font-size: 18px;
color: #020202;
line-height: 30px;
}
}
.list-block {
.inner {
width: 80%;
padding: 90px 0;
background-color: #fff;
}
}
.list {
display: flex;
justify-content: center;
li {
width: calc((100% - 100px) / 3);
2 years ago
padding-bottom: 30px;
margin-right: 28px;
text-align: center;
background-color: #F5F5F5;
2 years ago
transition: .3s;
&:hover {
transform: scale(1.05);
}
2 years ago
&:last-child {
margin-right: 0;
}
}
.pic {
width: 100%;
height: 353px;
}
2 years ago
h6 {
margin: 35px 0 5px;
font-size: 24px;
color: #272727;
}
.des {
font-size: 16px;
color: #757575;
}
}
.staff {
display: flex;
justify-content: space-between;
background: #F8F8F8;
2 years ago
transition: .3s;
&:hover {
transform: scale(1.05);
}
2 years ago
.staff-inner {
width: 1581px;
}
2 years ago
.left {
2 years ago
width: 50%;
2 years ago
padding: 108px 43px 0 46px;
2 years ago
}
h6 {
margin-bottom: 30px;
font-size: 30px;
color: #333;
2 years ago
@include mul-ellipsis(3);
2 years ago
}
.des {
font-size: 20px;
color: #333;
line-height: 34px;
}
.pic {
2 years ago
width: 53%;
2 years ago
height: 487px;
2 years ago
}
}
.stat {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
margin-top: 60px;
li {
width: 30%;
margin-bottom: 50px;
}
.num {
margin-bottom: 10px;
font-size: 60px;
font-weight: 800;
font-family: toppan;
2 years ago
color: #035CE1;
line-height: 49px;
}
.text {
font-size: 24px;
}
}
2 years ago
@media (max-width: 1590px) {
.plan {
.inner {
width: 98%;
}
}
.staff .staff-inner {
width: 98%;
}
}
2 years ago
</style>