提交 048d9bfd authored 作者: 王鹏飞's avatar 王鹏飞

chore: 适配移动端

上级 0e6a1f2e
...@@ -114,28 +114,28 @@ export default { ...@@ -114,28 +114,28 @@ export default {
} }
.is-h5 { .is-h5 {
.video-list { .video-list {
margin: 0 20px; display: flex;
display: grid; column-gap: 0.12rem;
grid-template-columns: repeat(1, 1fr); overflow-x: auto;
column-gap: 58px; overflow-y: hidden;
row-gap: 20px;
} }
.video-item { .video-item {
flex: 0 0 2.27rem;
background-color: #fff; background-color: #fff;
} }
.video-item__poster { .video-item__poster {
position: relative; position: relative;
img { img {
width: 100%; width: 100%;
height: 200px; height: 1.32rem;
object-fit: cover; object-fit: cover;
} }
.play-icon { .play-icon {
position: absolute; position: absolute;
left: 50%; left: 50%;
top: 50%; top: 50%;
width: 83px; width: 0.52rem;
height: 83px; height: 0.52rem;
background: rgba(66, 66, 66, 0.5); background: rgba(66, 66, 66, 0.5);
border-radius: 50%; border-radius: 50%;
color: #fff; color: #fff;
...@@ -143,19 +143,19 @@ export default { ...@@ -143,19 +143,19 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 40px; font-size: 30px;
cursor: pointer; cursor: pointer;
} }
} }
.video-item__desc { .video-item__desc {
padding: 20px; padding: 0.12rem;
h3 { h3 {
font-size: 22px; font-size: 0.13rem;
color: #666; color: #666;
} }
p { p {
margin-top: 20px; margin-top: 0.17rem;
font-size: 18px; font-size: 0.11rem;
color: #666; color: #666;
} }
} }
...@@ -173,7 +173,7 @@ export default { ...@@ -173,7 +173,7 @@ export default {
justify-content: center; justify-content: center;
} }
.video-player_inner { .video-player_inner {
max-width: 800px; max-width: 90%;
border-radius: 10px; border-radius: 10px;
overflow: hidden; overflow: hidden;
video { video {
......
...@@ -49,10 +49,10 @@ export default { ...@@ -49,10 +49,10 @@ export default {
{ name: '归国政策', path: '/returnPolicy/returnPolicy' } { name: '归国政策', path: '/returnPolicy/returnPolicy' }
] ]
}, },
{ // {
name: '常见问题', // name: '常见问题',
path: '/question/question' // path: '/question/question'
}, // },
{ {
name: '报名申请', name: '报名申请',
onClick: () => { onClick: () => {
......
<template> <template>
<div class="video-wrapper" :class="className"> <div class="video-wrapper">
<div v-if="!isMobile" class="content" ref="target"> <div v-if="!isMobile" class="content" ref="target">
<!-- <ul class="video-list"> <!-- <ul class="video-list">
<li class="video-item" v-for="(item, index) in list" :key="index"> <li class="video-item" v-for="(item, index) in list" :key="index">
...@@ -116,12 +116,6 @@ export default { ...@@ -116,12 +116,6 @@ export default {
computed: { computed: {
isMobile() { isMobile() {
return this.$store.state.isMobile return this.$store.state.isMobile
},
className() {
return {
'is-h5': this.isMobile,
'is-pc': !this.isMobile
}
} }
}, },
methods: { methods: {
...@@ -200,8 +194,8 @@ export default { ...@@ -200,8 +194,8 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.is-pc { .is-pc {
margin-top: 56px;
.video-wrapper { .video-wrapper {
margin-top: 56px;
background: url(https://webapp-pub.ezijing.com/project/depaul-plus/video_bg.png) no-repeat center center; background: url(https://webapp-pub.ezijing.com/project/depaul-plus/video_bg.png) no-repeat center center;
background-size: cover; background-size: cover;
} }
...@@ -362,7 +356,9 @@ export default { ...@@ -362,7 +356,9 @@ export default {
} }
} }
.is-h5 { .is-h5 {
margin-top: 0.56rem; .video-wrapper {
margin: 0.2rem 0;
}
.video-list { .video-list {
display: flex; display: flex;
......
...@@ -2,12 +2,8 @@ ...@@ -2,12 +2,8 @@
<div :class="isMobile ? 'is-h5' : 'is-pc'"> <div :class="isMobile ? 'is-h5' : 'is-pc'">
<div class="banner-content"> <div class="banner-content">
<a href="/my"> <a href="/my">
<img class="img" src="https://webapp-pub.ezijing.com/project/depaul-plus/banner.png" /> <img class="img" :src="bannerUrl" />
</a> </a>
<!-- <div class="content_desc">
<div class="desc_cn">德保罗大学金融学硕士保研项目</div>
<div class="desc_en">Stevens Institute of Technology Master of Engineering in Engineering Management</div>
</div> -->
<div class="banner_navList" v-if="false"> <div class="banner_navList" v-if="false">
<div class="banner_nav" v-for="(item, index) in navList" :key="index" @click="navClick(item)"> <div class="banner_nav" v-for="(item, index) in navList" :key="index" @click="navClick(item)">
<div class="nav_top"> <div class="nav_top">
...@@ -64,6 +60,11 @@ export default { ...@@ -64,6 +60,11 @@ export default {
computed: { computed: {
isMobile() { isMobile() {
return this.$store.state.isMobile return this.$store.state.isMobile
},
bannerUrl() {
return this.isMobile
? 'https://webapp-pub.ezijing.com/project/depaul-plus/h5/banner.png'
: 'https://webapp-pub.ezijing.com/project/depaul-plus/banner.png'
} }
}, },
methods: { methods: {
......
...@@ -120,67 +120,40 @@ export default { ...@@ -120,67 +120,40 @@ export default {
margin-top: 17px; margin-top: 17px;
display: flex; display: flex;
// justify-content: space-around; // justify-content: space-around;
column-gap: 0.2rem;
.card-item { .card-item {
margin-right: 10px; flex: 0 0 2.44rem;
flex: 0 0 1.93rem; height: 1.8rem;
height: 2.75rem;
overflow: hidden;
position: relative; position: relative;
.item_media { .item_media {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
img { img {
transition: 0.3s; transition: 0.3s;
width: 100%; width: 100%;
height: 100%; height: 100%;
} object-fit: cover;
&:after {
content: '';
display: block;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.6);
} }
} }
.item_desc { .item_desc {
position: absolute; position: absolute;
left: 0; top: 0.45rem;
top: 1.1rem; right: 0.25rem;
text-align: right;
width: 100%; }
height: 2rem; .item_desc_tit {
// background-color: #ededed; display: inline-block;
opacity: 1; padding-bottom: 0.07rem;
display: flex; font-size: 0.12rem;
justify-content: flex-start; font-weight: 500;
align-items: flex-start; color: #aa1941;
flex-direction: column; line-height: 1;
padding: 0.1rem 0.1rem 0.4rem; border-bottom: 1px solid #aa1941;
// transform-origin: bottom; }
.item_desc_tit { .item_desc_con {
font-size: 0.16rem; margin-top: 0.15rem;
font-weight: 500; font-size: 0.1rem;
color: #fff; font-weight: 400;
line-height: 0.3rem; color: #424242;
width: 100%; line-height: 0.16rem;
text-align: center;
white-space: nowrap;
}
.item_desc_con {
font-size: 0.12rem;
font-weight: 400;
color: #fff;
margin-top: 0.2rem;
line-height: 0.24rem;
text-align: justify;
margin: auto;
}
} }
} }
} }
......
...@@ -4,12 +4,10 @@ ...@@ -4,12 +4,10 @@
<template v-if="!searchVisible"> <template v-if="!searchVisible">
<div class="logo-box"> <div class="logo-box">
<img @click="goWebsite" src="https://webapp-pub.ezijing.com/project/depaul-plus/logo.png" /> <img @click="goWebsite" src="https://webapp-pub.ezijing.com/project/depaul-plus/logo.png" />
<div class="line"></div>
<nuxt-link to="/" class="logo"> <nuxt-link to="/" class="logo">
<div class="title"> <div class="title">
德保罗大学金融学硕士保研项目 德保罗大学金融学硕士保研项目
</div> </div>
<!-- <img src="https://webapp-pub.ezijing.com/project/marywood/marywood_logo.svg" /> -->
</nuxt-link> </nuxt-link>
</div> </div>
<!-- <nuxt-link to="/" class="logo"></nuxt-link> --> <!-- <nuxt-link to="/" class="logo"></nuxt-link> -->
...@@ -89,7 +87,7 @@ export default { ...@@ -89,7 +87,7 @@ export default {
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0.16rem 0.15rem 0.2rem; padding: 0.16rem 0.15rem;
background-color: #fff; background-color: #fff;
border-top: 0.05rem solid #aa1941; border-top: 0.05rem solid #aa1941;
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.14); box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.14);
...@@ -99,7 +97,6 @@ export default { ...@@ -99,7 +97,6 @@ export default {
} }
.logo-box { .logo-box {
flex: 1; flex: 1;
display: flex;
img { img {
height: 0.26rem; height: 0.26rem;
cursor: pointer; cursor: pointer;
......
差异被折叠。
...@@ -64,18 +64,10 @@ export default { ...@@ -64,18 +64,10 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.is-pc { .is-pc {
.dataList { .dataList {
width: 900px; margin: 80px;
display: flex;
justify-content: center;
align-items: flex-start;
flex-wrap: wrap;
margin-left: 50px;
padding: 96px 0 108px 0;
.item { .item {
width: 790px;
height: 110px; height: 110px;
opacity: 1;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
...@@ -127,25 +119,18 @@ export default { ...@@ -127,25 +119,18 @@ export default {
} }
.is-h5 { .is-h5 {
.dataList { .dataList {
width: 3.3rem; padding: 0.3rem;
display: flex;
justify-content: center;
align-items: flex-start;
flex-wrap: wrap;
margin-left: 0.15rem;
padding: 0.48rem 0.61rem 0.3rem;
.item { .item {
width: 3.3rem; margin-bottom: 0.2rem;
height: 0.5rem; height: 0.5rem;
opacity: 1;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
border-top: 1px solid #dedede; border-top: 1px solid #dedede;
border-bottom: 1px solid #dedede; border-bottom: 1px solid #dedede;
padding: 0 0.23rem 0 0.1rem; padding: 0 0.1rem;
.item_left { .item_left {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
...@@ -179,6 +164,9 @@ export default { ...@@ -179,6 +164,9 @@ export default {
text-align: center; text-align: center;
font-size: 0.08rem; font-size: 0.08rem;
color: #ffffff; color: #ffffff;
&.is-disabled {
background: #999;
}
} }
} }
} }
......
...@@ -54,10 +54,9 @@ ...@@ -54,10 +54,9 @@
</swiper-slide> </swiper-slide>
</swiper> </swiper>
</section> </section>
<div class="content_tit"> <section class="section">
<div class="line"></div> <h2 class="section_title">校园风光</h2>
<div class="tit_desc">校园风光</div> </section>
</div>
<div class="swiper-content" @mouseenter="swiperStop" @mouseleave="swiperStart"> <div class="swiper-content" @mouseenter="swiperStop" @mouseleave="swiperStart">
<div v-swiper:mySwiper="swiperOption" ref="mySwiper"> <div v-swiper:mySwiper="swiperOption" ref="mySwiper">
<div class="swiper-wrapper"> <div class="swiper-wrapper">
...@@ -233,21 +232,9 @@ export default { ...@@ -233,21 +232,9 @@ export default {
} }
.section { .section {
max-width: 1212px; max-width: 1200px;
margin: 83px auto; margin: 80px auto 0;
.swiper-content1 {
width: 1200px;
margin-left: 60px;
.swiper-slide {
width: 360px;
height: 574px;
video {
height: 100%;
line-height: 100%;
}
}
}
.section_title { .section_title {
position: relative; position: relative;
margin-top: 20px; margin-top: 20px;
...@@ -262,8 +249,6 @@ export default { ...@@ -262,8 +249,6 @@ export default {
.section_teacher { .section_teacher {
width: 1200px; width: 1200px;
display: flex; display: flex;
justify-content: space-between;
margin-top: 36px;
.teacher_item { .teacher_item {
width: 280px; width: 280px;
...@@ -296,34 +281,13 @@ export default { ...@@ -296,34 +281,13 @@ export default {
} }
} }
} }
.content_tit {
width: 1200px;
margin: auto;
text-align: center;
display: flex;
justify-content: flex-start;
margin-top: 64px;
.line {
width: 6px;
height: 34px;
background: #aa1941;
margin-right: 9px;
margin-top: 6px;
}
.tit_desc {
color: #333333;
font-size: 34px;
font-weight: bold;
}
}
.swiper-content { .swiper-content {
padding-top: 37px; padding-bottom: 80px;
padding-bottom: 132px;
.swiper-slide { .swiper-slide {
position: relative; position: relative;
width: 388px; width: 388px;
height: 244px; height: 244px;
margin-top: 10px;
img { img {
width: 100%; width: 100%;
...@@ -331,11 +295,6 @@ export default { ...@@ -331,11 +295,6 @@ export default {
line-height: 100%; line-height: 100%;
} }
} }
.swiper-slide-active {
width: 423px;
height: 266px;
margin-top: 0;
}
} }
} }
.is-h5 { .is-h5 {
...@@ -343,107 +302,78 @@ export default { ...@@ -343,107 +302,78 @@ export default {
position: relative; position: relative;
.img_banner { .img_banner {
width: 100%; width: 100%;
height: 100%; height: 1.55rem;
object-fit: cover;
} }
.banner_con { .banner_con {
padding: 0.23rem 0.3rem; padding: 0.23rem 0.15rem;
.con_tit { .con_tit {
font-size: 0.14rem; font-size: 0.16rem;
color: #424242;
font-weight: bold; font-weight: bold;
line-height: 1;
color: #333;
padding-left: 0.1rem;
margin-top: 0.2rem;
border-left: 0.04rem solid #aa1941;
} }
.con_desc { .con_desc {
margin-top: 0.2rem;
font-size: 0.12rem; font-size: 0.12rem;
font-weight: 300; color: #666;
color: #424242; line-height: 0.18rem;
margin-top: 0.16rem;
line-height: 2;
} }
} }
} }
.section { .section {
.swiper-content1 { margin: 0 0.15rem;
overflow-x: auto;
.swiper-slide {
width: 3.3rem;
height: 4.58rem;
video {
height: 100%;
line-height: 100%;
}
}
}
.section_title { .section_title {
font-size: 0.14rem; font-size: 0.16rem;
font-weight: bold; font-weight: bold;
color: #424242; line-height: 1;
padding-left: 0.16rem; color: #333;
margin-top: 0.23rem; padding-left: 0.1rem;
margin: 0.3rem 0 0.2rem;
border-left: 0.04rem solid #aa1941;
} }
.section_teacher { .section_teacher {
display: flex; display: flex;
justify-content: space-between;
margin-top: 0.18rem;
overflow-x: auto; overflow-x: auto;
padding-left: 0.15rem;
.teacher_item { .teacher_item {
padding: 0.15rem 0.18rem 0 0.2rem; width: 1.4rem;
width: 1.9rem;
display: flex;
flex-direction: column;
align-items: center;
background-color: #fff;
margin-right: 0.15rem;
.item_img { .item_img {
width: 1.7rem; width: 1.4rem;
height: 1.8rem; height: 1.7rem;
object-fit: cover; object-fit: cover;
} }
.item_bottom { .item_bottom {
padding: 0.12rem 0.18rem 0.1rem 0.3rem; padding: 0.1rem;
text-align: left;
.img_tit { .img_tit {
font-size: 0.09rem; font-size: 0.11rem;
font-weight: 500; font-weight: 500;
color: #424242; color: #424242;
} }
.item_desc { .item_desc {
margin-top: 0.1rem; margin-top: 0.08rem;
li { li {
// margin-left: 0.1rem;
white-space: nowrap;
font-size: 0.08rem; font-size: 0.08rem;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
line-height: 1.5; line-height: 0.14rrem;
} }
} }
} }
} }
} }
} }
.content_tit {
padding-left: 0.16rem;
margin-top: 0.23rem;
.tit_desc {
font-size: 0.14rem;
font-weight: bold;
color: #424242;
}
}
.swiper-content { .swiper-content {
padding-bottom: 0.2rem; padding-bottom: 0.2rem;
.swiper-slide { .swiper-slide {
position: relative; position: relative;
width: 2.02rem; width: 2.02rem;
height: 1.22rem; height: 1.22rem;
margin-top: 0.28rem;
img { img {
width: 100%; width: 100%;
...@@ -451,11 +381,6 @@ export default { ...@@ -451,11 +381,6 @@ export default {
line-height: 100%; line-height: 100%;
} }
} }
.swiper-slide-active {
width: 2.12rem;
height: 1.33rem;
margin-top: 0.23rem;
}
} }
} }
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论