提交 51e1c661 authored 作者: matian's avatar matian

updates

上级 b2b6b896
...@@ -63,7 +63,6 @@ export const roadMapList = [ ...@@ -63,7 +63,6 @@ export const roadMapList = [
}, },
{ {
project_name: '项目名称:', project_name: '项目名称:',
position: 'right-start', position: 'right-start',
isShow: false, isShow: false,
icon: 'https://webapp-pub.ezijing.com/www/pc/lifeLearning/icon3.png', icon: 'https://webapp-pub.ezijing.com/www/pc/lifeLearning/icon3.png',
...@@ -83,6 +82,11 @@ export const roadMapList = [ ...@@ -83,6 +82,11 @@ export const roadMapList = [
tenant: 'caas', tenant: 'caas',
name: '餐饮管理方向MBA', name: '餐饮管理方向MBA',
href: 'https://caas.ezijing.com' href: 'https://caas.ezijing.com'
},
{
tenant: 'sofia',
name: '金融方向MBA',
href: 'https://sofia.ezijing.com'
} }
], ],
checkList: [ checkList: [
...@@ -144,36 +148,47 @@ export const roadMapList = [ ...@@ -144,36 +148,47 @@ export const roadMapList = [
checkList: [] checkList: []
} }
] ]
export const homeList = [ export const homeMapList = [
{ {
project_name: '项目名称:',
position: 'left', position: 'left',
icon: 'https://webapp-pub.ezijing.com/www/pc/lifeLearning/home.png', icon: 'https://webapp-pub.ezijing.com/www/pc/lifeLearning/home.png',
isShow: false, isShow: false,
title: '职业证书', title: '职业证书',
itemList: [ itemList: [
{ {
tenant: 'x1',
name: '1+X', name: '1+X',
href: 'https://x.ezijing.com/' href: 'https://x.ezijing.com/'
}, },
{ {
tenant: '',
name: '私人财富风险管理顾问(PRP)', name: '私人财富风险管理顾问(PRP)',
href: 'https://prp.ezijing.com' href: 'https://prp.ezijing.com'
}, },
{ {
tenant: '',
name: '高管培训-数字创新管理', name: '高管培训-数字创新管理',
onClick() { onClick() {
Message('敬请期待') Message('敬请期待')
} }
}, },
{ {
tenant: '',
name: '互联网营销师', name: '互联网营销师',
href: 'https://vst.ezijing.com' href: 'https://vst.ezijing.com'
}, },
{ {
tenant: '',
name: '工业机器人系统操作员', name: '工业机器人系统操作员',
href: 'https://vst.ezijing.com' href: 'https://vst.ezijing.com'
}, },
{ {
tenant: '',
name: '大数据技术人员', name: '大数据技术人员',
href: 'https://vst.ezijing.com' href: 'https://vst.ezijing.com'
} }
...@@ -186,6 +201,8 @@ export const homeList = [ ...@@ -186,6 +201,8 @@ export const homeList = [
title: '实习就业', title: '实习就业',
itemList: [ itemList: [
{ {
tenant: '',
name: '敬请期待', name: '敬请期待',
href: '' href: ''
} }
...@@ -198,6 +215,8 @@ export const homeList = [ ...@@ -198,6 +215,8 @@ export const homeList = [
title: '企业培训', title: '企业培训',
itemList: [ itemList: [
{ {
tenant: '',
name: '敬请期待', name: '敬请期待',
href: '' href: ''
} }
......
...@@ -33,8 +33,15 @@ ...@@ -33,8 +33,15 @@
</el-popover> </el-popover>
</div> </div>
<div class="banner_homeList"> <div class="banner_homeList">
<div v-for="(itemRoad, indexRoad) in homeList" :key="indexRoad"> <div v-for="(itemRoad, indexRoad) in homeListNew" :key="indexRoad">
<el-popover trigger="hover" popper-class="popover" :placement="itemRoad.position" v-model="itemRoad.isShow"> <el-popover
trigger="hover"
popper-class="popover"
:placement="itemRoad.position"
v-model="itemRoad.isShow"
:title="itemRoad.project_name"
@show="handleShow(itemRoad)"
>
<div> <div>
<div v-for="(it, indexItem) in itemRoad.itemList" :key="indexItem" class="project_name"> <div v-for="(it, indexItem) in itemRoad.itemList" :key="indexItem" class="project_name">
<AppLink :data="it"> <AppLink :data="it">
...@@ -57,12 +64,13 @@ ...@@ -57,12 +64,13 @@
baseUrl="/internationalDegree" baseUrl="/internationalDegree"
></ProjectCard> ></ProjectCard>
<ProjectCard title="留学中心" :list="studyAbroadProjectList" baseUrl="/studyAbroad"></ProjectCard> <ProjectCard title="留学中心" :list="studyAbroadProjectList" baseUrl="/studyAbroad"></ProjectCard>
{{ learningInfo }}
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { roadMapList, homeList } from '@/assets/roadMap' import { roadMapList, homeMapList } from '@/assets/roadMap'
import ProjectCard from '@/components/ProjectCard.vue' import ProjectCard from '@/components/ProjectCard.vue'
import AppLink from '@/components/Link.vue' import AppLink from '@/components/Link.vue'
...@@ -130,12 +138,45 @@ export default { ...@@ -130,12 +138,45 @@ export default {
} else { } else {
return this.roadList return this.roadList
} }
},
homeListNew() {
if (this.learning.length > 0) {
console.log(this.homeList, '0000')
this.homeList.map(item => {
// 最新在读显示 弹框 显示我的项目
if (item.itemList.find(it => it.tenant === this.learningInfo[0].tenant)) {
item.isShow = true
item.project_name = '我的项目:'
} else if (
!this.otherInfo.find(item => item.status === '1') &&
this.otherInfo.find(item => item.status === '0')
) {
this.graduateInfo[0].isShow = true
this.graduateInfo[0].project_name = '我的项目:'
}
const arr = []
this.otherInfo.forEach(itL => {
item.itemList.forEach(itP => {
if (itL.tenant === itP.tenant) {
arr.push(itP)
item.project_name = '我的项目:'
}
})
})
if (item.project_name === '我的项目:') {
item.itemList = arr
}
})
return this.homeList
} else {
return this.homeList
}
} }
}, },
data() { data() {
return { return {
roadList: roadMapList, roadList: roadMapList,
homeList: homeList, homeList: homeMapList,
// 热门专业 // 热门专业
internationalDegreeProjectList: [ internationalDegreeProjectList: [
{ {
...@@ -171,8 +212,9 @@ export default { ...@@ -171,8 +212,9 @@ export default {
methods: { methods: {
// 展示时触发 ,只显示一个 // 展示时触发 ,只显示一个
handleShow(val) { handleShow(val) {
if (this.list) { const allList = [...this.list, ...this.homeListNew]
this.list.map(item => { if (allList) {
allList.map(item => {
if (item.title !== val.title) { if (item.title !== val.title) {
item.isShow = false item.isShow = false
} }
...@@ -212,7 +254,7 @@ export default { ...@@ -212,7 +254,7 @@ export default {
cursor: pointer; cursor: pointer;
} }
.project_name:hover { .project_name:hover {
text-shadow: 2px 2px 5px rgb(143, 141, 141); text-shadow: 2px 2px 5px #aa1941;
} }
.line { .line {
width: 281px; width: 281px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论