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

chore: 首页改版

上级 fc6013e7
...@@ -22,7 +22,7 @@ body { ...@@ -22,7 +22,7 @@ body {
'Hiragino Sans GB', 'Wenquanyi Micro Hei', sans-serif; 'Hiragino Sans GB', 'Wenquanyi Micro Hei', sans-serif;
padding: 0; padding: 0;
margin: 0; margin: 0;
background: #eee; background: #f9f8f8;
} }
p { p {
margin: 0; margin: 0;
......
<template> <template>
<div :class="isMobile ? 'is-h5' : 'is-pc'"> <div :class="isMobile ? 'is-h5' : 'is-pc'">
<div class="banner-content"> <div class="banner-content">
<img class="img" src="https://webapp-pub.ezijing.com/project/cbu-online/banner.png?v=4" /> <a href="/my">
<div class="banner_navList"> <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="banner_nav" v-for="(item, index) in navList" :key="index" @click="navClick(item)">
<div class="nav_top"> <div class="nav_top">
<img class="nav_img" :src="item.img" v-if="!isMobile" /> <img class="nav_img" :src="item.img" v-if="!isMobile" />
...@@ -88,6 +90,8 @@ export default { ...@@ -88,6 +90,8 @@ export default {
.img { .img {
width: 100%; width: 100%;
height: 100%; height: 100%;
min-height: 650px;
object-fit: cover;
z-index: 1000; z-index: 1000;
} }
.banner_navList { .banner_navList {
......
<template> <template>
<div :class="isMobile ? 'is-h5' : 'is-pc'"> <div class="service-content max-width-center">
<div class="service-content max-width-center"> <card title="项目简介">
<card title="项目简介" v-if="!isMobile"> <div class="desc">
<div class="desc"> <img src="https://webapp-pub.ezijing.com/project/cbu-online/school_desc.png" class="desc-img" />
<p> <p>
加州浸会大学工商管理博士DBA项目是经过美国教育监管机构WASC、BPPE、DOE等批准的正规博士项目。该项目强调课程学习与论文写作结合,以培养将管理实践和理论研究深度融合的商业领袖和学者为目标。清控紫荆教育是加州浸会大学工商管理博士项目中国唯一合作伙伴,双方共同致力于为学生提供高质量的学习体验和服务,以更好地融合中国实践。 加州浸会大学工商管理博士DBA项目是经过美国教育监管机构WASC、BPPE、DOE等批准的正规博士项目。该项目强调课程学习与论文写作结合,以培养将管理实践和理论研究深度融合的商业领袖和学者为目标。清控紫荆教育是加州浸会大学工商管理博士项目中国唯一合作伙伴,双方共同致力于为学生提供高质量的学习体验和服务,以更好地融合中国实践。
</p> </p>
</div>
</card>
<div v-else>
<div class="tit">项目简介</div>
<div class="desc">
<p>
加州浸会大学工商管理博士DBA项目是经过美国教育监管机构WASC、BPPE、DOE等批准的正规博士项目。该项目强调课程学习与论文写作结合,以培养将管理实践和理论研究深度融合的商业领袖和学者为目标。清控紫荆教育是加州浸会大学工商管理博士项目中国唯一合作伙伴,双方共同致力于为学生提供高质量的学习体验和服务,以更好地融合中国实践。
</p>
</div>
</div> </div>
</div> </card>
</div> </div>
</template> </template>
<script> <script>
...@@ -29,60 +20,7 @@ export default { ...@@ -29,60 +20,7 @@ export default {
Card Card
}, },
data() { data() {
return { 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
}
} }
} }
</script> </script>
...@@ -90,36 +28,48 @@ export default { ...@@ -90,36 +28,48 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.is-pc { .is-pc {
.max-width-center { .max-width-center {
width: 1212px; width: 1200px;
min-height: 460px;
margin: 0 auto; margin: 0 auto;
padding-top: 168px; padding-top: 65px;
.desc { }
padding: 28px 30px 0 30px; .desc-img {
p { float: right;
text-align: justify; margin-left: 40px;
padding-top: 20px; margin-top: -60px;
font-size: 20px; }
line-height: 30px; .desc {
font-weight: 400; text-align: justify;
color: #666666; 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 { .is-h5 {
.max-width-center { .desc-img {
// margin: 0.39rem auto; max-width: 100%;
padding: 0.2rem 0.3rem 0.2rem 0.3rem; margin-bottom: 20px;
}
.tit {
font-size: 0.14rem;
font-weight: bold;
line-height: 0.28rem;
color: #424242;
} }
.desc { .desc {
text-align: justify; 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-size: 0.12rem;
font-weight: 400; font-weight: 400;
line-height: 0.2rem; line-height: 0.2rem;
......
...@@ -184,8 +184,6 @@ li { ...@@ -184,8 +184,6 @@ li {
} }
.head-nav-content { .head-nav-content {
height: 72px; height: 72px;
display: flex;
align-items: center;
} }
} }
</style> </style>
...@@ -181,11 +181,10 @@ export default { ...@@ -181,11 +181,10 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.nav-item-box { .nav-item-box {
padding-left: 11px;
display: flex; display: flex;
justify-content: space-between;
li { li {
position: relative; position: relative;
margin-right: 40px;
.name { .name {
line-height: 72px; line-height: 72px;
font-size: 22px; font-size: 22px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论