提交 171dafba authored 作者: lhh's avatar lhh

update

上级 1399b4fb
...@@ -116,6 +116,7 @@ export default { ...@@ -116,6 +116,7 @@ export default {
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
} }
.course { .course {
height: 722px; height: 722px;
background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/course_bg.png); background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/course_bg.png);
...@@ -176,4 +177,15 @@ export default { ...@@ -176,4 +177,15 @@ export default {
} }
} }
} }
@media all and (orientation: portrait) {
.course {
.card-list {
.item {
h2 {
font-size: 24px;
}
}
}
}
}
</style> </style>
...@@ -188,7 +188,7 @@ export default { ...@@ -188,7 +188,7 @@ export default {
swiperOptions: { swiperOptions: {
observer: true, observer: true,
autoHeight: true, autoHeight: true,
slidesPerView: 3, slidesPerView: this.isMobile() ? 2 : 3,
// paginationClickable: true, // paginationClickable: true,
spaceBetween: 0, spaceBetween: 0,
freeMode: true, freeMode: true,
...@@ -209,6 +209,12 @@ export default { ...@@ -209,6 +209,12 @@ export default {
}, },
mouseLeave() { mouseLeave() {
this.swiper.autoplay.start() this.swiper.autoplay.start()
},
isMobile() {
const flag = navigator.userAgent.match(
/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
)
return flag
} }
} }
} }
......
...@@ -166,7 +166,7 @@ export default { ...@@ -166,7 +166,7 @@ export default {
swiperOptions: { swiperOptions: {
observer: true, observer: true,
autoHeight: true, autoHeight: true,
slidesPerView: 3, slidesPerView: this.isMobile() ? 2 : 3,
// paginationClickable: true, // paginationClickable: true,
spaceBetween: 0, spaceBetween: 0,
freeMode: true, freeMode: true,
...@@ -187,6 +187,12 @@ export default { ...@@ -187,6 +187,12 @@ export default {
}, },
mouseLeave() { mouseLeave() {
this.swiper.autoplay.start() this.swiper.autoplay.start()
},
isMobile() {
const flag = navigator.userAgent.match(
/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
)
return flag
} }
} }
} }
......
...@@ -38,7 +38,12 @@ ...@@ -38,7 +38,12 @@
</section> </section>
<section class="activity-list"> <section class="activity-list">
<h1>丰富多彩的学生活动</h1> <h1>丰富多彩的学生活动</h1>
<div class="list"> <img
width="100%"
src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/marywood/515/WechatIMG192.png"
v-if="isMobile()"
/>
<div class="list" v-else>
<div class="nav"> <div class="nav">
<div class="li">开学典礼</div> <div class="li">开学典礼</div>
<div class="li">论坛</div> <div class="li">论坛</div>
...@@ -197,6 +202,14 @@ export default { ...@@ -197,6 +202,14 @@ export default {
} }
] ]
} }
},
methods: {
isMobile() {
const flag = navigator.userAgent.match(
/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
)
return flag
}
} }
} }
</script> </script>
...@@ -413,6 +426,13 @@ export default { ...@@ -413,6 +426,13 @@ export default {
white-space: nowrap; white-space: nowrap;
} }
} }
@media all and (orientation: portrait) {
.banner-text {
h1 {
font-size: 40px;
}
}
}
.introduce { .introduce {
height: 624px; height: 624px;
background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/introduce_bg.png?v1); background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/introduce_bg.png?v1);
...@@ -443,9 +463,11 @@ export default { ...@@ -443,9 +463,11 @@ export default {
} }
} }
.activity-list { .activity-list {
height: 789px; max-height: 789px;
background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/course_bg.png); background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/course_bg.png);
background-size: cover; background-size: cover;
position: relative;
padding-bottom: 30px;
h1 { h1 {
font-size: 40px; font-size: 40px;
font-weight: bold; font-weight: bold;
...@@ -458,10 +480,11 @@ export default { ...@@ -458,10 +480,11 @@ export default {
} }
.list { .list {
position: relative; position: relative;
width: 1350px; max-width: 1350px;
display: flex; display: flex;
padding-top: 80px; padding-top: 80px;
margin: 0 auto; margin: 0 auto;
// transform: scale(.7);
.nav { .nav {
position: absolute; position: absolute;
top: 340px; top: 340px;
......
...@@ -465,6 +465,13 @@ export default { ...@@ -465,6 +465,13 @@ export default {
white-space: nowrap; white-space: nowrap;
} }
} }
@media all and (orientation: portrait) {
.banner-text {
h1 {
font-size: 40px;
}
}
}
.introduce { .introduce {
height: 624px; height: 624px;
background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/introduce_bg.png?v1); background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/introduce_bg.png?v1);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论