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

chore: update

上级 a78d9caa
......@@ -152,8 +152,8 @@ export default {
{ label: '纽约州立大学石溪分校金融学硕士项目', value: '1018' },
{ label: '德保罗大学金融学硕士项目', value: '1025' },
{ label: '斯蒂文斯理工学院工程管理硕士项目', value: '1020' },
{ label: '加州浸会大学全日制工商管理博士项目', value: '1017' },
{ label: '加州浸会大学全球科技创新管理学者DBA项目', value: '1023' }
// { label: '加州浸会大学全日制工商管理博士项目', value: '1017' },
// { label: '加州浸会大学全球科技创新管理学者DBA项目', value: '1023' }
]
}
}
......
......@@ -10,8 +10,7 @@
? 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/logo/en-logo.png'
: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/logo/us-logo.png'
"
@click="goPage('/')"
/>
@click="goPage('/')" />
</div>
<template v-if="$route.path === '/roadmap'">
<client-only>
......@@ -53,14 +52,12 @@
:class="$route.path === level2Item.path || level2Item.isShow ? 'li active' : 'li'"
:key="level2Index + 'level2'"
@mouseenter="levelShow(level2Item)"
@mouseleave="levelShow(level2Item, 'out')"
>
@mouseleave="levelShow(level2Item, 'out')">
<div
@click="goPage(level2Item.path, level2Item.pathType)"
class="name"
:class="isEn === true ? 'name1' : ''"
v-html="level2Item.name"
></div>
v-html="level2Item.name"></div>
<div class="el-icon-arrow-right" v-if="level2Item.children"></div>
</div>
</template>
......@@ -72,14 +69,12 @@
:key="level2Index + 'two-level2'"
v-if="level2Item.isShow"
@mouseenter="level3Show"
@mouseleave="level3Show(level2Item, 'out')"
>
@mouseleave="level3Show(level2Item, 'out')">
<div
@click="goPage(level3Item.path, level3Item.pathType)"
:class="isEn === true ? 'name1' : 'name'"
v-for="(level3Item, level3Index) in level2Item.children"
:key="level3Index + level3Item"
>
:key="level3Index + level3Item">
{{ level3Item.name }}
</div>
</div>
......@@ -388,29 +383,29 @@ export default {
pathType: 1
}
]
// },
// },
// {
// name: '工商管理博士DBA',
// isShow: false,
// children: [
// {
// name: '全球科技创新管理学者项目',
// path: 'https://cbu-online.ezijing.com/',
// pathType: 1
// }
// ]
// },
// {
// name: '企业家学者DBA',
// isShow: false,
// children: [
// {
// name: '数字领导力企业家学者(DBA)',
// path: 'https://dld.ezijing.com/',
// pathType: 1
// }
// ]
// {
// name: '工商管理博士DBA',
// isShow: false,
// children: [
// {
// name: '全球科技创新管理学者项目',
// path: 'https://cbu-online.ezijing.com/',
// pathType: 1
// }
// ]
// },
// {
// name: '企业家学者DBA',
// isShow: false,
// children: [
// {
// name: '数字领导力企业家学者(DBA)',
// path: 'https://dld.ezijing.com/',
// pathType: 1
// }
// ]
}
]
},
......@@ -449,23 +444,23 @@ export default {
// pathType: 1
// }
]
},
{
name: this.$t('menu.degreeChild.doctor'),
isShow: false,
children: [
{
name: this.$t('menu.degreeChild.doctorChild.cbu_plus'),
path: 'https://cbu-plus.ezijing.com/',
pathType: 1
}
// {
// name: this.$t('menu.degreeChild.doctorChild.cbu_online'),
// path: 'https://cbu-online.ezijing.com/',
// pathType: 1
// }
]
}
// {
// name: this.$t('menu.degreeChild.doctor'),
// isShow: false,
// children: [
// {
// name: this.$t('menu.degreeChild.doctorChild.cbu_plus'),
// path: 'https://cbu-plus.ezijing.com/',
// pathType: 1
// }
// // {
// // name: this.$t('menu.degreeChild.doctorChild.cbu_online'),
// // path: 'https://cbu-online.ezijing.com/',
// // pathType: 1
// // }
// ]
// }
]
},
{
......@@ -502,8 +497,8 @@ export default {
this.isEn = this.$cookies.get('lang') === 'en-US'
this.$store.dispatch('checkLogin')
if (this.isEn) {
this.navData.map(item => {
item?.children?.map(it => {
this.navData.map((item) => {
item?.children?.map((it) => {
if (it.isShowChild === false) {
it.children = ''
}
......@@ -561,9 +556,9 @@ export default {
}
},
navLeave() {
this.navData.map(item => {
this.navData.map((item) => {
if (item.children) {
item.children.map(cItem => {
item.children.map((cItem) => {
cItem.isShow = false
})
}
......@@ -581,14 +576,14 @@ export default {
},
computed: {
getNameActive() {
return item => {
return (item) => {
const currentPath = this.$route.path
if (currentPath.includes(item.path)) {
return 'name active'
} else {
let className = 'name'
if (item.children) {
item.children.map(cData => {
item.children.map((cData) => {
cData.path === currentPath && (className = 'name active')
})
}
......@@ -600,16 +595,10 @@ export default {
return this.$store.state.user || {}
},
loginURL() {
return process.client
? `${process.env.loginURL}/login/index?redirect_uri=${encodeURIComponent(
location.origin + this.$route.fullPath
)}`
: ''
return process.client ? `${process.env.loginURL}/login/index?redirect_uri=${encodeURIComponent(location.origin + this.$route.fullPath)}` : ''
},
registerURL() {
return process.client
? `${process.env.loginURL}/register?redirect_uri=${encodeURIComponent(location.origin + this.$route.fullPath)}`
: ''
return process.client ? `${process.env.loginURL}/register?redirect_uri=${encodeURIComponent(location.origin + this.$route.fullPath)}` : ''
}
}
}
......
......@@ -4,15 +4,15 @@ import fs from 'fs'
export default {
env: process.env,
server: { port: 2048, host: '0.0.0.0' },
...(process.env.NODE_ENV === 'development' && {
server: {
host: 'dev.ezijing.com',
https: {
key: fs.readFileSync(path.resolve(__dirname, 'dev.ezijing.com.key')),
cert: fs.readFileSync(path.resolve(__dirname, 'dev.ezijing.com.pem'))
}
}
}),
// ...(process.env.NODE_ENV === 'development' && {
// server: {
// host: 'dev.ezijing.com',
// https: {
// key: fs.readFileSync(path.resolve(__dirname, 'dev.ezijing.com.key')),
// cert: fs.readFileSync(path.resolve(__dirname, 'dev.ezijing.com.pem'))
// }
// }
// }),
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: '紫荆教育-在线学位,国际留学,数字经济产业学院',
......
......@@ -180,18 +180,18 @@ export default {
// href: 'https://marywood-plus.ezijing.com/'
// },
{
project_id: '1017',
imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/project_cbu_plus.png',
imgUrlEn: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/project_cbu_plus_en.png',
href: 'https://cbu-plus.ezijing.com/'
},
{
project_id: '1023',
imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/project_cbu_online.png',
imgUrlEn: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/project_cbu_online_en.png',
href: 'https://cbu-online.ezijing.com/'
},
// {
// project_id: '1017',
// imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/project_cbu_plus.png',
// imgUrlEn: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/project_cbu_plus_en.png',
// href: 'https://cbu-plus.ezijing.com/'
// },
// {
// project_id: '1023',
// imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/project_cbu_online.png',
// imgUrlEn: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/project_cbu_online_en.png',
// href: 'https://cbu-online.ezijing.com/'
// },
{
project_id: '1025',
imgUrl: 'https://webapp-pub.ezijing.com/www/pc/studyAbroad/project_depaul_plus.png',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论