提交 55fbbedc authored 作者: matian's avatar matian

新增师资部分

上级 3be62322
...@@ -42,6 +42,59 @@ ...@@ -42,6 +42,59 @@
</div> </div>
</div> </div>
</section> </section>
<div class="layout_com_page_banner major-kc-wm" :style="{ 'min-height': 700 + 'px' }">
<h3 style="padding-top:30px;">
<span>师资介绍</span>
</h3>
<div class="major-kc-wm-body">
<swiper ref="mySwiper" :options="swiperOptions">
<template v-for="(item, index) in wmList">
<swiper-slide :key="index">
<div class="major-kc-wm-list">
<div class="list-img">
<img :src="item.img" style="width: 162px" />
</div>
<div class="list-body">
<span class="font-size-18 nowrap title">{{ item.title }}</span>
<span class="font-size-14 wm-red zs">{{ item.label }}</span>
<template v-for="(sItem, sIndex) in item.main">
<span :key="sIndex + '-' + index" class="font-size-14 mian-txt">{{ sItem }}</span>
</template>
</div>
</div>
</swiper-slide>
</template>
<div class="swiper-pagination" slot="pagination"></div>
</swiper>
</div>
</div>
<div class="layout_com_page_banner major-kc-wm bg2" :style="{ 'min-height': 700 + 'px' }">
<h3>
<span>师资介绍</span>
</h3>
<div class="major-kc-wm-body" @mouseover="mouseOver2" @mouseleave="mouseLeave2">
<swiper ref="mySwiper2" :options="swiperOptions">
<template v-for="(item, index) in wmList2">
<swiper-slide :key="index">
<div class="major-kc-wm-list">
<div class="list-img">
<img :src="item.img" style="width: 162px" />
</div>
<div class="list-body">
<span class="font-size-18 nowrap title">{{ item.title }}</span>
<span class="font-size-14 wm-red zs">{{ item.label }}</span>
<template v-for="(sItem, sIndex) in item.main">
<span :key="sIndex + '-' + index" class="font-size-14 mian-txt">{{ sItem }}</span>
</template>
</div>
</div>
</swiper-slide>
</template>
<div class="swiper-pagination" slot="pagination"></div>
</swiper>
</div>
</div>
<section class="project-card"> <section class="project-card">
<div class="project-card-item" v-for="(item, index) in list" :key="index"> <div class="project-card-item" v-for="(item, index) in list" :key="index">
<div class="project-card-item-header"> <div class="project-card-item-header">
...@@ -81,9 +134,27 @@ ...@@ -81,9 +134,27 @@
<script> <script>
import FormBox from '@/components/formBox' import FormBox from '@/components/formBox'
import { Swiper, SwiperSlide, directive } from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
export default { export default {
components: { FormBox }, name: 'major-set',
components: {
Swiper,
SwiperSlide,
FormBox
},
directives: {
swiper: directive
},
computed: {
swiper() {
return this.$refs.mySwiper.$swiper
},
swiper2() {
return this.$refs.mySwiper2.$swiper
}
},
data() { data() {
return { return {
forestIndex: 0, forestIndex: 0,
...@@ -156,7 +227,125 @@ export default { ...@@ -156,7 +227,125 @@ export default {
bg: 'https://webapp-pub.ezijing.com/project/cuw/project_bg_04.png', bg: 'https://webapp-pub.ezijing.com/project/cuw/project_bg_04.png',
children: ['学生可在学业全部完成后,在国内或赴美参加毕业典礼,共享学有所成的高光时刻'] children: ['学生可在学业全部完成后,在国内或赴美参加毕业典礼,共享学有所成的高光时刻']
} }
],
wmList: [
{
img: require('@/assets/images/major-set/ent1.png'),
title: 'Dr. Val Keiper',
label: '',
main: ['威斯康星协和大学教育学院教授', '家庭教育项目主任', '在CUW任教40余年', 'CUW棒球队主教练']
},
{
img: require('@/assets/images/major-set/ent2.png'),
title: 'Dr.Roger Sonnenberg',
label: '',
main: [
'威斯康星协和大学家庭教育教授',
'青少年、性、家庭教育专家',
'《501种养育与家庭实用方法系列》等畅销书作家'
]
},
{
img: require('@/assets/images/major-set/ent3.png'),
title: 'Dr. Scott Turansky',
label: '',
main: [
'威斯康星协和大学家庭教育教授',
'美国知名育儿专家',
'《家庭改善:可以读给孩子的育儿书》等数十本畅销书作家'
] ]
},
{
img: require('@/assets/images/major-set/ent4.png'),
title: 'Dr. Warren Braden',
label: '博士',
main: ['威斯康星协和大学家庭教育教授', '婚姻家庭治疗师', '北伊利诺伊大学教育学博士']
},
{
img: require('@/assets/images/major-set/ent5.png'),
title: 'Josh Kittleman',
label: '',
main: ['威斯康星协和大学家庭教育助理教授', '安娜堡协和大学家庭教育助理教授']
}
],
wmList2: [
{
img: require('@/assets/images/major-set/cnt1.png'),
title: '黄翯青',
label: '博士',
main: ['北京大学心理学博士', '首都师范大学学前教育学院副教授', '北京大学健康中心研究员']
},
{
img: require('@/assets/images/major-set/cnt2.png'),
title: '蔺秀云',
label: '博士',
main: [
'北京师范大学心理学部教授',
'博士生导师',
'青年长江学者',
'家庭治疗与发展心理学博士',
'资深家庭治疗师',
'注册系统督导师'
]
},
{
img: require('@/assets/images/major-set/cnt3.png'),
title: '苏彦捷',
label: '博士',
main: [
'北京大学心理与认知科学学院教授',
'博士生导师',
'长江学者特聘教授',
'享受国务院特殊津贴专家',
'美国心理科学学会会士'
]
},
{
img: require('@/assets/images/major-set/cnt4.png'),
title: '方刚',
label: '博士',
main: [
'著名性学家',
'性与性别研究专家',
'台湾树德科技大学人类性学研究所兼职教授',
'中国妇女研究会理事',
'中国性学会理事'
]
}
],
swiperOptions: {
observer: true,
autoHeight: true,
slidesPerView: 3,
// paginationClickable: true,
spaceBetween: 0,
freeMode: true,
// autoplay: {
// delay: 2000
// },
pagination: {
el: '.swiper-pagination',
clickable: true,
type: 'bullets'
}
}
}
},
methods: {
mouseOver() {
this.swiper.autoplay.stop()
},
mouseLeave() {
this.swiper.autoplay.start()
},
mouseOver2() {
this.swiper2.autoplay.stop()
},
mouseLeave2() {
this.swiper2.autoplay.start()
} }
} }
} }
...@@ -342,6 +531,8 @@ export default { ...@@ -342,6 +531,8 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: url('~@/assets/images/major-set/bg1.png');
background-size: cover;
} }
.project-card-item { .project-card-item {
width: 260px; width: 260px;
...@@ -474,4 +665,152 @@ export default { ...@@ -474,4 +665,152 @@ export default {
line-height: 30px; line-height: 30px;
} }
} }
.major-kc-wm {
background: url('~@/assets/images/major-set/teacher_bg1.png') no-repeat center top;
background-size: cover;
position: relative;
align-items: center;
flex-wrap: wrap;
overflow: hidden;
&.bg2 {
background: url('~@/assets/images/major-set/teacher_bg2.png');
background-size: cover;
}
h3 {
width: 100%;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 500;
font-size: 40px;
color: rgba(255, 255, 255, 1);
span {
position: relative;
&::before {
content: '';
position: absolute;
bottom: -8px;
width: 100%;
height: 3px;
background: #ffffff;
}
}
}
.major-kc-wm-body {
::v-deep .swiper-container {
.swiper-pagination-bullet {
opacity: 1;
background: #fff;
}
.swiper-pagination-bullet-active {
background: rgb(174, 14, 63);
}
}
width: 80%;
display: flex;
justify-content: center;
h3 {
color: #ffffffff;
}
.major-kc-wm-list {
display: flex;
flex-direction: column;
position: relative;
padding: 20px 30px;
width: 300px;
margin: 0 auto;
.list-img {
z-index: 3;
position: relative;
position: absolute;
left: 50%;
background: #fff;
border-radius: 50%;
top: 7%;
overflow: hidden;
transform: translate(-50%, -50%);
img {
transition: all 0.5s;
transform: scale(0.9);
cursor: pointer;
&:hover {
transform: scale(1);
}
}
}
.list-body {
display: flex;
position: relative;
// align-items: center;
flex-direction: column;
background: #fff;
border-radius: 26px;
width: 300px;
padding: 100px 0px 30px 0px;
height: 185px;
.max-width-180 {
max-width: 180px;
}
span {
padding: 5px 15px 0 40px;
color: #222222ff;
line-height: 20px;
}
&::before {
content: '';
position: absolute;
height: 90%;
width: 90%;
top: 5%;
border: 1px solid rgba(151, 151, 151, 1);
border-radius: 26px;
border-style: dashed;
}
.mian-txt {
position: relative;
&::before {
content: '';
position: absolute;
left: 22px;
top: 10px;
// -webkit-transform: translateX(-50%);
width: 8px;
height: 8px;
border: 2px solid #e27f4d;
border-radius: 50%;
}
}
.title {
padding: 0;
display: block;
width: 100%;
text-align: center;
}
.zs {
padding: 5px 0 0 0;
display: block;
width: 100%;
text-align: center;
color: #e27f4d;
}
&::before {
content: '';
position: absolute;
height: 90%;
width: 90%;
top: 5%;
left: 50%;
-webkit-transform: translateX(-50%);
border: 1px solid rgba(151, 151, 151, 1);
border-radius: 26px;
border-style: dashed;
}
}
}
}
}
.swiper-container {
padding-top: 70px;
padding-bottom: 40px;
}
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论