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

chore: 适配移动端

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