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

285 lines
5.0 KiB

2 years ago
<template>
<div class="wrap">
2 years ago
<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>
2 years ago
<ul class="tabs wow fadeInLeft">
<template v-for="(item, i) in tabs">
2 years ago
<li :class="{active: i == active}" :key="i" @click="tabChange(i)">{{ item | i18nName($i18n) }}</li>
2 years ago
</template>
</ul>
2 years ago
<div class="tab-content">
2 years ago
<div v-html="modules[1].form.des"></div>
2 years ago
</div>
2 years ago
</div>
</template>
<script>
import mixins from '@/mixins/page'
import overview from '@/mixins/overview'
2 years ago
import WOW from 'wow.js'
export default {
mixins: [mixins, overview],
2 years ago
data() {
return {
active: 3
2 years ago
}
},
mounted() {
new WOW().init()
},
methods: {
2 years ago
}
};
</script>
<style lang="scss" scoped>
@import url(../../plugins/wow/animate.css);
@import "../../styles/page/page.scss";
.wrap {
background: url(../../assets/images/survey1.png) (0 559px)/auto no-repeat,
url(../../assets/images/survey2.png) (bottom right)/auto no-repeat;
}
2 years ago
.single-banner {
.banner-img {
height: 24rem;
}
.texts {
top: auto !important;
bottom: 2rem;
h6 {
font-size: 2.16rem
}
}
}
2 years ago
.tabs {
display: flex;
justify-content: center;
2 years ago
box-shadow: 0px 2px 10px 0px rgba(223,223,223,0.28);
2 years ago
li {
2 years ago
padding: 1.25rem .95rem;
margin: 0 .5rem;
font-size: 1.05rem;
2 years ago
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;
}
}
}
2 years ago
.tab-content {
2 years ago
width: 50rem;
padding: 3.85rem 0;
2 years ago
margin: 0 auto;
span {
font-size: 1.35rem;
}
2 years ago
/deep/ img {
width: 100% !important;
}
2 years ago
}
.video {
width: 100%;
2 years ago
margin-bottom: 2.75rem;
2 years ago
}
.text {
2 years ago
font-size: .9rem;
2 years ago
color: #020202;
2 years ago
line-height: 1.6rem;
2 years ago
}
@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{
width: 90%;
span {
font-size: 1.35rem;
}
}
}
2 years ago
@media (min-width: 280px) and (max-width: 120px) {
.single-banner {
.banner-img {
height: 15rem;
}
.texts {
top: 9rem !important;
left: 22rem !important;
}
}
}
2 years ago
@media (max-width: 320px) {
.wrap {
.banner-img {
2 years ago
height: 12rem;
2 years ago
}
.single-banner {
.texts {
2 years ago
bottom: 2rem !important;
left: 2rem !important;
2 years ago
.banner-title {
font-size: 1.5rem;
}
}
}
}
2 years ago
.tabs {
li {
padding: 1rem .5rem;
font-size: .85rem;
}
}
2 years ago
}
2 years ago
@media (min-width: 320px) and (max-width: 375px) {
2 years ago
.wrap {
.banner-img {
2 years ago
height: 12rem;
2 years ago
}
.single-banner {
.texts {
2 years ago
bottom: 2rem !important;
left: 2rem !important;
2 years ago
.banner-title {
font-size: 1.5rem;
}
}
}
}
2 years ago
.tabs {
li {
padding: 1rem .5rem;
font-size: .85rem;
}
}
2 years ago
}
2 years ago
@media (min-width: 375px) and (max-width: 480px) {
2 years ago
.wrap {
2 years ago
.banner-img {
height: 12rem;
2 years ago
}
2 years ago
.single-banner {
2 years ago
.texts {
2 years ago
bottom: 2rem !important;
left: 2rem !important;
2 years ago
.banner-title {
font-size: 1.5rem;
}
}
}
}
2 years ago
.tabs {
li {
padding: 1rem .5rem;
font-size: .85rem;
}
}
2 years ago
}
2 years ago
@media (min-width: 480px) and (max-width: 640px) {
2 years ago
.wrap {
2 years ago
.banner-img {
height: 12rem;
2 years ago
}
2 years ago
.single-banner {
2 years ago
.texts {
2 years ago
bottom: 2rem !important;
left: 2rem !important;
2 years ago
.banner-title {
font-size: 1.5rem;
}
}
}
}
2 years ago
.tabs {
li {
padding: 1rem .5rem;
font-size: .85rem;
}
}
2 years ago
}
2 years ago
@media (min-width: 640px) and (max-width: 768px) {
2 years ago
.wrap {
2 years ago
.banner-img {
height: 12rem;
2 years ago
}
2 years ago
.single-banner {
2 years ago
.texts {
2 years ago
bottom: 2rem !important;
left: 2rem !important;
2 years ago
.banner-title {
2 years ago
font-size: 1.5rem;
2 years ago
}
}
}
}
2 years ago
.tabs {
li {
padding: 1rem .5rem;
font-size: .85rem;
}
}
2 years ago
}
2 years ago
@media (min-width: 768px) and (max-width: 980px) {
2 years ago
.wrap {
2 years ago
.banner-img {
height: 12rem;
2 years ago
}
2 years ago
.single-banner {
2 years ago
.texts {
2 years ago
bottom: 2rem !important;
left: 2rem !important;
2 years ago
.banner-title {
2 years ago
font-size: 1.5rem;
2 years ago
}
}
}
}
2 years ago
.tabs {
li {
padding: 1rem .5rem;
font-size: .85rem;
}
}
2 years ago
}
2 years ago
@media (min-width: 980px) and (max-width: 1200px) {
2 years ago
.wrap {
2 years ago
.banner-img {
height: 12rem;
2 years ago
}
2 years ago
.single-banner {
2 years ago
.texts {
2 years ago
bottom: 2rem !important;
left: 2rem !important;
2 years ago
.banner-title {
2 years ago
font-size: 1.5rem;
2 years ago
}
}
}
}
2 years ago
.tabs {
li {
padding: 1rem .5rem;
font-size: .85rem;
}
}
2 years ago
}
2 years ago
</style>