提交 7d0fec8d authored 作者: 王鹏飞's avatar 王鹏飞

chore: 首页改版

上级 fc6013e7
......@@ -22,7 +22,7 @@ body {
'Hiragino Sans GB', 'Wenquanyi Micro Hei', sans-serif;
padding: 0;
margin: 0;
background: #eee;
background: #f9f8f8;
}
p {
margin: 0;
......
<template>
<div :class="isMobile ? 'is-h5' : 'is-pc'">
<div class="banner-content">
<img class="img" src="https://webapp-pub.ezijing.com/project/cbu-online/banner.png?v=4" />
<div class="banner_navList">
<a href="/my">
<img class="img" src="https://webapp-pub.ezijing.com/project/cbu-online/banner.png" />
</a>
<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">
<img class="nav_img" :src="item.img" v-if="!isMobile" />
......@@ -88,6 +90,8 @@ export default {
.img {
width: 100%;
height: 100%;
min-height: 650px;
object-fit: cover;
z-index: 1000;
}
.banner_navList {
......
<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 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">
<img :src="item.web_img_uri" />
</div>
</div> -->
<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>
</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 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>
</card>
</div>
</template>
<script>
import Card from '@/components/Card'
import AppLink from '@/components/Link'
export default {
name: 'projectFeatures',
components: {
AppLink,
Card
},
components: { AppLink, Card },
data() {
return {
listData: [
{
web_img_uri: 'https://webapp-pub.ezijing.com/project/cbu-online/pc-index-project-intro-01.png?v=4',
web_img_uri: 'https://webapp-pub.ezijing.com/project/cbu-online/feature_1.png',
item_desc_tit: '学术领先',
item_desc_con: '工商管理学位项目加州排名TOP3<br/>ACBSP认证商学院'
},
{
web_img_uri: 'https://webapp-pub.ezijing.com/project/cbu-online/pc-index-project-intro-02.png?v=4',
web_img_uri: 'https://webapp-pub.ezijing.com/project/cbu-online/feature_2.png',
item_desc_tit: '全球视野',
item_desc_con: '全球视野的课程设计<br/>国际和国内一流师资<br/>全球深度访学'
},
{
web_img_uri: 'https://webapp-pub.ezijing.com/project/cbu-online/pc-index-project-intro-03.png?v=4',
web_img_uri: 'https://webapp-pub.ezijing.com/project/cbu-online/feature_3.png',
item_desc_tit: '学者思维',
item_desc_con: '深度研究问题的严谨思维训练<br/>理论与实践的循环论证'
},
{
web_img_uri: 'https://webapp-pub.ezijing.com/project/cbu-online/pc-index-project-intro-04.png?v=4',
web_img_uri: 'https://webapp-pub.ezijing.com/project/cbu-online/feature_4.png',
item_desc_tit: '学术成就',
item_desc_con: '成为某个方向和领域最权威的专家学者<br/>获得加州浸会大学工商管理博士学位'
},
{
web_img_uri: 'https://webapp-pub.ezijing.com/project/cbu-online/pc-index-project-intro-05.png?v=4',
web_img_uri: 'https://webapp-pub.ezijing.com/project/cbu-online/feature_5.png',
item_desc_tit: '创新实践',
item_desc_con:
'硅谷最前沿的管理思想和创新实践分享<br/>中国发展中面临的最实际问题研究<br/>数字经济和数字化管理专题研究实践'
},
{
web_img_uri: 'https://webapp-pub.ezijing.com/project/cbu-online/pc-index-project-intro-06.png?v=4',
web_img_uri: 'https://webapp-pub.ezijing.com/project/cbu-online/feature_6.png',
item_desc_tit: '共同发展',
item_desc_con: '全球最新产业发展趋势与中国产业政策分享与研究<br/>全球校友网络助力共同发展'
}
],
swiperOption: {
observer: true,
observeParents: true,
speed: 400,
autoplay: true,
delay: 3000,
loop: true,
slidesPerView: 'auto',
centeredSlides: true,
spaceBetween: 20,
navigation: {
nextEl: '.next-button',
prevEl: '.prev-button'
}
},
titleParams: {
name: this.$t('home.project.title')
},
data: [
{
icon: 'https://webapp-pub.ezijing.com/project/marywood/img12.png',
iconActive: 'https://webapp-pub.ezijing.com/project/marywood/img11.png',
text: this.$store.state.isMobile ? this.$t('home.project.h5.itemT5') : this.$t('home.project.pc.itemT5')
},
{
icon: 'https://webapp-pub.ezijing.com/project/marywood/img22.png',
iconActive: 'https://webapp-pub.ezijing.com/project/marywood/img21.png',
text: this.$store.state.isMobile ? this.$t('home.project.h5.itemT6') : this.$t('home.project.pc.itemT6')
},
{
icon: 'https://webapp-pub.ezijing.com/project/marywood/img32.png',
iconActive: 'https://webapp-pub.ezijing.com/project/marywood/img31.png',
text: this.$store.state.isMobile ? this.$t('home.project.h5.itemT7') : this.$t('home.project.pc.itemT7')
},
{
icon: 'https://webapp-pub.ezijing.com/project/marywood/img42.png',
iconActive: 'https://webapp-pub.ezijing.com/project/marywood/img411.png',
text: this.$store.state.isMobile ? this.$t('home.project.h5.itemT8') : this.$t('home.project.pc.itemT8')
},
{
icon: 'https://webapp-pub.ezijing.com/project/marywood/img52.png',
iconActive: 'https://webapp-pub.ezijing.com/project/marywood/img51.png',
text: this.$store.state.isMobile ? this.$t('home.project.h5.itemT9') : this.$t('home.project.pc.itemT9')
}
]
}
},
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()
}
}
}
</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;
margin-top: 17px;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
margin-top: 26px;
display: grid;
grid-template-columns: repeat(3, 1fr);
row-gap: 30px;
column-gap: 30px;
.card-item {
width: 380px;
height: 380px;
margin-bottom: 20px;
overflow: hidden;
height: 280px;
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);
}
}
.item_desc {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
padding: 28px;
opacity: 1;
display: flex;
flex-direction: column;
align-items: flex-start;
.item_desc_tit {
font-size: 21px;
font-weight: 600;
color: #fff;
line-height: 36px;
text-align: left;
transform: translateY(150px);
transition: 0.3s;
white-space: nowrap;
}
.item_desc_con {
font-size: 16px;
font-weight: 400;
color: #fff;
margin-top: 34px;
line-height: 32px;
transform: translateY(290px);
transition: 0.3s;
}
top: 70px;
right: 35px;
text-align: right;
}
}
// .card-item:hover {
.card-item {
.item_media {
img {
transform: scale(1.1);
}
.item_desc_tit {
display: inline-block;
padding-bottom: 10px;
font-size: 20px;
font-weight: 500;
color: #aa1941;
line-height: 1;
border-bottom: 1px solid #aa1941;
}
.item_desc {
.item_desc_tit {
border-bottom: 1px solid #f3f4f4;
transform: translateY(110px);
}
.item_desc_con {
transform: translateY(80px);
}
.item_desc_con {
margin-top: 20px;
font-size: 16px;
font-weight: 400;
color: #424242;
line-height: 32px;
}
}
}
.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: 34px auto;
width: 1200px;
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;
white-space: nowrap;
margin-top: 0.17rem;
}
.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;
}
.card-list {
width: 12.6rem;
overflow-x: auto;
position: relative;
margin-top: 17px;
display: flex;
justify-content: space-around;
// justify-content: space-around;
.card-item {
width: 2rem;
margin-right: 10px;
flex: 0 0 1.93rem;
height: 2.75rem;
overflow: hidden;
position: relative;
float: left;
.item_media {
width: 100%;
height: 100%;
......@@ -512,7 +150,8 @@ export default {
.item_desc {
position: absolute;
left: 0;
top: 0.6rem;
top: 1.1rem;
width: 100%;
height: 2rem;
// background-color: #ededed;
......@@ -530,6 +169,7 @@ export default {
line-height: 0.3rem;
width: 100%;
text-align: center;
white-space: nowrap;
}
.item_desc_con {
font-size: 0.12rem;
......@@ -538,44 +178,10 @@ export default {
margin-top: 0.2rem;
line-height: 0.24rem;
text-align: justify;
margin: auto;
}
}
}
}
.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>
<template>
<div :class="isMobile ? 'is-h5' : 'is-pc'">
<div class="service-content max-width-center">
<card title="项目简介" v-if="!isMobile">
<div class="desc">
<p>
加州浸会大学工商管理博士DBA项目是经过美国教育监管机构WASC、BPPE、DOE等批准的正规博士项目。该项目强调课程学习与论文写作结合,以培养将管理实践和理论研究深度融合的商业领袖和学者为目标。清控紫荆教育是加州浸会大学工商管理博士项目中国唯一合作伙伴,双方共同致力于为学生提供高质量的学习体验和服务,以更好地融合中国实践。
</p>
</div>
</card>
<div v-else>
<div class="tit">项目简介</div>
<div class="desc">
<p>
加州浸会大学工商管理博士DBA项目是经过美国教育监管机构WASC、BPPE、DOE等批准的正规博士项目。该项目强调课程学习与论文写作结合,以培养将管理实践和理论研究深度融合的商业领袖和学者为目标。清控紫荆教育是加州浸会大学工商管理博士项目中国唯一合作伙伴,双方共同致力于为学生提供高质量的学习体验和服务,以更好地融合中国实践。
</p>
</div>
<div class="service-content max-width-center">
<card title="项目简介">
<div class="desc">
<img src="https://webapp-pub.ezijing.com/project/cbu-online/school_desc.png" class="desc-img" />
<p>
加州浸会大学工商管理博士DBA项目是经过美国教育监管机构WASC、BPPE、DOE等批准的正规博士项目。该项目强调课程学习与论文写作结合,以培养将管理实践和理论研究深度融合的商业领袖和学者为目标。清控紫荆教育是加州浸会大学工商管理博士项目中国唯一合作伙伴,双方共同致力于为学生提供高质量的学习体验和服务,以更好地融合中国实践。
</p>
</div>
</div>
</card>
</div>
</template>
<script>
......@@ -29,60 +20,7 @@ export default {
Card
},
data() {
return {
titleParams: {
name: this.$t('home.project.title')
}
// data: [
// {
// icon: 'https://webapp-pub.ezijing.com/project/marywood/img12.png',
// iconActive: 'https://webapp-pub.ezijing.com/project/marywood/img11.png',
// text: this.$store.state.isMobile ? this.$t('home.project.h5.itemT1') : this.$t('home.project.pc.itemT5')
// },
// {
// icon: 'https://webapp-pub.ezijing.com/project/marywood/img22.png',
// iconActive: 'https://webapp-pub.ezijing.com/project/marywood/img21.png',
// text: this.$store.state.isMobile ? this.$t('home.project.h5.itemT1') : this.$t('home.project.pc.itemT6')
// },
// {
// icon: 'https://webapp-pub.ezijing.com/project/marywood/img32.png',
// iconActive: 'https://webapp-pub.ezijing.com/project/marywood/img31.png',
// text: this.$store.state.isMobile ? this.$t('home.project.h5.itemT1') : this.$t('home.project.pc.itemT7')
// },
// {
// icon: 'https://webapp-pub.ezijing.com/project/marywood/img42.png',
// iconActive: 'https://webapp-pub.ezijing.com/project/marywood/img411.png',
// text: this.$store.state.isMobile ? this.$t('home.project.h5.itemT2') : this.$t('home.project.pc.itemT8')
// },
// {
// icon: 'https://webapp-pub.ezijing.com/project/marywood/img52.png',
// iconActive: 'https://webapp-pub.ezijing.com/project/marywood/img51.png',
// text: this.$store.state.isMobile ? this.$t('home.project.h5.itemT3') : this.$t('home.project.pc.itemT9')
// }
// ]
}
},
computed: {
isMobile() {
return this.$store.state.isMobile
}
},
methods: {
goPage(path) {
if (path === '') {
// this.$message('暂未开通,尽请期待。')
return
}
window.open(path)
}
},
mounted() {
console.log(this.isMobile)
},
computed: {
isMobile() {
return this.$store.state.isMobile
}
return {}
}
}
</script>
......@@ -90,36 +28,48 @@ export default {
<style lang="scss" scoped>
.is-pc {
.max-width-center {
width: 1212px;
width: 1200px;
min-height: 460px;
margin: 0 auto;
padding-top: 168px;
.desc {
padding: 28px 30px 0 30px;
p {
text-align: justify;
padding-top: 20px;
font-size: 20px;
line-height: 30px;
font-weight: 400;
color: #666666;
}
padding-top: 65px;
}
.desc-img {
float: right;
margin-left: 40px;
margin-top: -60px;
}
.desc {
text-align: justify;
padding: 28px 0;
p {
font-size: 18px;
color: #666;
line-height: 36px;
}
}
.remark {
text-align: left;
font-size: 20px;
line-height: 30px;
color: #666666;
padding: 28px 30px 0 30px;
font-weight: 400;
}
}
.is-h5 {
.max-width-center {
// margin: 0.39rem auto;
padding: 0.2rem 0.3rem 0.2rem 0.3rem;
}
.tit {
font-size: 0.14rem;
font-weight: bold;
line-height: 0.28rem;
color: #424242;
.desc-img {
max-width: 100%;
margin-bottom: 20px;
}
.desc {
text-align: justify;
white-space: pre-line;
font-size: 0.12rem;
font-weight: 400;
line-height: 0.2rem;
color: #666666;
}
.remark {
text-align: left;
font-size: 0.12rem;
font-weight: 400;
line-height: 0.2rem;
......
......@@ -184,8 +184,6 @@ li {
}
.head-nav-content {
height: 72px;
display: flex;
align-items: center;
}
}
</style>
......@@ -181,11 +181,10 @@ export default {
</script>
<style lang="scss" scoped>
.nav-item-box {
padding-left: 11px;
display: flex;
justify-content: space-between;
li {
position: relative;
margin-right: 40px;
.name {
line-height: 72px;
font-size: 22px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论