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

chore: update

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