提交 b6e16a71 authored 作者: matian's avatar matian

updates

上级 14df9204
...@@ -45,7 +45,7 @@ textarea { ...@@ -45,7 +45,7 @@ textarea {
.main-banner { .main-banner {
display: block; display: block;
height: 1.2rem; height: 1.2rem;
object-fit: cover; /* object-fit: cover; */
} }
.main-content .title { .main-content .title {
padding: 0.3rem 0 0.1rem; padding: 0.3rem 0 0.1rem;
......
...@@ -37,6 +37,11 @@ export const roadMapList = [ ...@@ -37,6 +37,11 @@ export const roadMapList = [
tenant: 'ciis', tenant: 'ciis',
name: '应用心理学MAP', name: '应用心理学MAP',
href: 'https://ciis.ezijing.com' href: 'https://ciis.ezijing.com'
},
{
tenant: 'sofia',
name: '金融方向MBA',
href: 'https://sofia.ezijing.com'
} }
], ],
checkList: [ checkList: [
...@@ -143,60 +148,75 @@ export const roadMapList = [ ...@@ -143,60 +148,75 @@ export const roadMapList = [
] ]
} }
] ]
export const homeList = [ export const homeMapList = [
{ {
position: 'top', project_name: '项目名称:',
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() {
Notify({ type: 'primary', 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'
} }
] ]
}, },
{ {
position: 'top-end', position: 'top-start',
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: '',
name: '敬请期待', name: '敬请期待',
href: '' href: ''
} }
] ]
}, },
{ {
position: 'top', position: 'top-start',
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: '',
name: '敬请期待', name: '敬请期待',
href: '' href: ''
} }
......
...@@ -247,6 +247,7 @@ export default { ...@@ -247,6 +247,7 @@ export default {
}, },
logout() { logout() {
this.$store.dispatch('logout') this.$store.dispatch('logout')
window.location.reload()
} }
}, },
mounted() { mounted() {
......
...@@ -32,8 +32,15 @@ ...@@ -32,8 +32,15 @@
</el-popover> </el-popover>
</div> </div>
<div class="homeList" v-if="homeList && homeList.length"> <div class="homeList" v-if="homeList && homeList.length">
<div class="homeList_con" v-for="(itemRoad, index) in homeList" :key="index"> <div class="homeList_con" v-for="(itemRoad, index) in homeListNew" :key="index">
<el-popover trigger="click" popper-class="popover" :placement="itemRoad.position" v-model="itemRoad.isShow"> <el-popover
trigger="click"
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">
...@@ -56,7 +63,7 @@ ...@@ -56,7 +63,7 @@
:list="internationalDegreeProjectList" :list="internationalDegreeProjectList"
baseUrl="/internationalDegree" baseUrl="/internationalDegree"
></ProjectCard> ></ProjectCard>
<ProjectCard title="留学中" :list="studyAbroadProjectList" baseUrl="/studyAbroad"></ProjectCard> <ProjectCard title="留学中" :list="studyAbroadProjectList" baseUrl="/studyAbroad"></ProjectCard>
</div> </div>
</div> </div>
</template> </template>
...@@ -130,6 +137,39 @@ export default { ...@@ -130,6 +137,39 @@ 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() {
...@@ -169,11 +209,14 @@ export default { ...@@ -169,11 +209,14 @@ export default {
}, },
methods: { methods: {
handleShow(val) { handleShow(val) {
this.list.map(item => { const allList = [...this.list, ...this.homeListNew]
if (item.title !== val.title) { if (allList) {
item.isShow = false allList.map(item => {
} if (item.title !== val.title) {
}) item.isShow = false
}
})
}
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论