提交 984521f3 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 d7c15e69
......@@ -22,15 +22,11 @@ export default {
</script>
<style lang="scss">
.is-pc{
.card {
// margin: 0.2rem 0.15rem;
}
.is-pc {
.card-hd {
display: flex;
align-items: center;
justify-content: space-between;
// margin-bottom: 0.15rem;
}
.card-hd__title {
flex: 1;
......@@ -45,13 +41,8 @@ export default {
color: #9b9b9b;
cursor: pointer;
}
.card-bd {
}
}
.is-h5{
.card {
margin: 0.2rem 0.15rem;
}
.is-h5 {
.card-hd {
display: flex;
align-items: center;
......@@ -60,17 +51,14 @@ export default {
}
.card-hd__title {
flex: 1;
border-left: 0.03rem solid #aa1941;
padding-left: 0.05rem;
font-size: 0.17rem;
font-size: 0.14rem;
font-weight: bold;
line-height: 1;
line-height: 0.28rem;
color: #424242;
}
.card-hd__aside {
font-size: 0.1rem;
color: #9b9b9b;
}
.card-bd {
}
}
</style>
<template>
<div class="service-content max-width-center">
<div :class="isMobile ? 'is-h5' : 'is-pc'">
<card :title="$t('home.project.title')" v-if="!isMobile">
<!-- <ul class="nav-content">
<li v-for="(item, index) in data" :key="index">
<img :src="item.icon" class="icon" />
<img v-if="!isMobile" :src="item.iconActive" class="icon-active" />
<div class="text" v-html="item.text"></div>
</li>
</ul> -->
<!-- <div class="swiperOptions" @mouseenter="swiperStop" @mouseleave="swiperStart">
<div v-swiper:mySwiper="swiperOption" ref="mySwiper">
<div class="swiper-wrapper">
<div class="swiper-slide" v-for="(item, index) in listData" :key="index">
<div class="item_media">
<img :src="item.web_img_uri" />
</div>
<div class="item_desc">
<div class="item_desc_tit">{{ item.item_desc_tit }}</div>
<div class="item_desc_con">{{ item.item_desc_con }}</div>
</div>
</div>
</div>
<div class="prev-button" v-if="!isMobile"></div>
<div class="next-button" v-if="!isMobile"></div>
</div>
</div> -->
<div class="max-width-center">
<card :title="$t('home.project.title')">
<div class="card-list">
<div class="card-item" v-for="(item, index) in listData" :key="index">
<div class="item_media">
......@@ -38,38 +13,6 @@
</div>
</div>
</card>
<div v-else>
<div class="tit" v-if="isMobile">项目优势</div>
<!-- <div class="swiperOptions" @mouseenter="swiperStop" @mouseleave="swiperStart">
<div v-swiper:mySwiper="swiperOption" ref="mySwiper">
<div class="swiper-wrapper">
<div class="swiper-slide" v-for="(item, index) in listData" :key="index">
<img :src="item.web_img_uri" />
<div class="item_desc">
<div class="item_desc_tit">{{ item.item_desc_tit }}</div>
<div class="item_desc_con">{{ item.item_desc_con }}</div>
</div>
</div>
</div>
<div class="prev-button" v-if="!isMobile"></div>
<div class="next-button" v-if="!isMobile"></div>
</div>
</div> -->
<div class="card-list-outer">
<div class="card-list">
<div class="card-item" v-for="(item, index) in listData" :key="index">
<div class="item_media">
<img :src="item.web_img_uri" />
</div>
<div class="item_desc">
<div class="item_desc_tit">{{ item.item_desc_tit }}</div>
<div class="item_desc_con" v-html="item.item_desc_con"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
......@@ -163,121 +106,12 @@ export default {
]
}
},
methods: {
goPage(path) {
if (path === '') {
// this.$message('暂未开通,尽请期待。')
return
}
window.open(path)
}
},
mounted() {
// console.log(this.isMobile)
},
computed: {
isMobile() {
return this.$store.state.isMobile
},
swiper() {
return this.$refs.mySwiper.swiper
}
},
methods: {
swiperStop() {
this.swiper.autoplay.stop()
},
swiperStart() {
this.swiper.autoplay.start()
}
}
methods: {}
}
</script>
<style lang="scss" scoped>
.is-pc {
.swiperOptions {
width: 1200px;
position: relative;
margin-top: 17px;
.swiper-wrapper {
width: 100%;
display: flex;
.swiper-slide {
width: 250px;
height: 569px;
overflow: hidden;
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.7);
}
}
.item_desc {
position: absolute;
left: 0;
top: 0;
width: 250px;
height: 349px;
// background-color: #ededed;
opacity: 1;
display: flex;
justify-content: flex-start;
align-items: flex-start;
flex-direction: column;
padding: 34px 37px 53px 33px;
// transform-origin: bottom;
transform: translateY(450px);
transition: 0.3s;
.item_desc_tit {
font-size: 20px;
font-weight: 400;
color: #fff;
margin-top: 34px;
}
.item_desc_con {
font-size: 16px;
font-weight: 300;
color: #fff;
margin-top: 34px;
line-height: 32px;
}
}
}
.swiper-slide:hover {
.item_media {
img {
transform: scale(1.1);
}
}
.item_desc {
// background-color: #fff;
transform: translateY(160px);
.item_desc_tit {
border-bottom: 1px solid #f3f4f4;
}
}
}
}
}
.card-list {
width: 1200px;
position: relative;
......@@ -395,129 +229,28 @@ export default {
}
}
}
.service-content {
padding-top: 64px;
.nav-content {
display: flex;
justify-content: flex-start;
padding-top: 15px;
li {
width: 224px;
height: 230px;
padding-top: 53px;
margin-right: 20px;
box-sizing: border-box;
background: #f9f8f8;
// background: #fff;
// box-shadow: 0px 4px 38px rgba(142, 30, 34, 0.41);
cursor: pointer;
transition: all 0.3s;
img {
width: 80px;
height: 80px;
display: block;
margin: 0 auto;
}
.icon-active {
display: none;
}
&:hover {
background: #aa1941;
box-shadow: 0px 4px 20px rgba(142, 30, 34, 0.41);
.text {
color: #fff;
}
.icon {
display: none;
}
.icon-active {
display: block;
}
}
.text {
font-size: 18px;
color: #666666;
margin-top: 20px;
text-align: center;
font-weight: 400;
}
}
}
}
.max-width-center {
width: 1212px;
margin: 0 auto;
margin: 64px auto 0;
}
}
.is-h5 {
.tit {
font-size: 0.14rem;
font-weight: bold;
line-height: 0.28rem;
color: #424242;
}
.swiperOptions {
position: relative;
margin-top: 0.08rem;
.swiper-wrapper {
width: 100%;
display: flex;
.swiper-slide {
width: 1.93rem;
height: 4rem;
img {
width: 1.93rem;
}
.item_desc {
width: 1.93rem;
height: 2.73rem;
background-color: #ededed;
opacity: 1;
display: flex;
justify-content: flex-start;
align-items: flex-start;
flex-direction: column;
padding: 0.17rem 0.18rem 0 0.17rem;
.item_desc_tit {
font-size: 0.1rem;
font-weight: 400;
color: #333333;
margin-top: 0.17rem;
white-space: nowrap;
}
.item_desc_con {
font-size: 0.08rem;
font-weight: 300;
color: #666666;
margin-top: 0.17rem;
line-height: 0.16rem;
}
}
.item_desc:hover {
background-color: #fff;
.item_desc_tit {
border-bottom: 1px solid #434343;
}
}
}
}
}
.card-list-outer {
overflow-x: auto;
.max-width-center {
padding: 0.2rem 0.3rem 0.2rem 0.3rem;
}
.card-list {
width: 12rem;
overflow-x: auto;
position: relative;
margin-top: 17px;
display: flex;
justify-content: space-around;
.card-item {
width: 1.93rem;
margin-right: 10px;
flex: 0 0 1.93rem;
height: 2.75rem;
overflow: hidden;
position: relative;
float: left;
.item_media {
width: 100%;
height: 100%;
......@@ -576,40 +309,5 @@ export default {
}
}
}
.service-content {
padding-left: 0.32rem;
padding-right: 0.32rem;
.tit {
font-size: 0.14rem;
font-weight: bold;
line-height: 0.28rem;
color: #424242;
}
ul {
display: flex;
overflow-x: scroll;
-webkit-overflow-scrolling: touch;
}
li {
min-width: 1.15rem;
background: #ffffff;
margin-right: 0.1rem;
padding-top: 0.11rem;
img {
width: 0.4rem;
height: 0.4rem;
display: block;
margin: 0 auto;
}
.text {
font-size: 0.1rem;
line-height: 0.16rem;
color: #666666;
padding-top: 0.05rem;
text-align: center;
padding-bottom: 0.1rem;
}
}
}
}
</style>
......@@ -162,13 +162,13 @@ li {
cursor: pointer;
}
.login {
background: #aa1941;
color: #fff;
}
.register {
color: #333333;
border: 1px solid #eaeaea;
}
.register {
background: #aa1941;
color: #fff;
}
}
.language {
margin-left: 24px;
......
......@@ -3,7 +3,7 @@ export default {
menu: {
out: '退出',
fastLogin: '快速登录',
register: '注册',
register: '马上报名',
project: '项目介绍',
course: '项目优势',
school: '院校介绍',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论