10 changed files with 226 additions and 25 deletions
@ -0,0 +1,11 @@ |
|||||
|
<template> |
||||
|
<div>虚拟孵化器</div> |
||||
|
</template> |
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'Fictitious', |
||||
|
data() { |
||||
|
return {}; |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,18 @@ |
|||||
|
<!-- |
||||
|
* @Author: wally |
||||
|
* @email: 18603454788@163.com |
||||
|
* @Date: 2021-01-14 17:34:23 |
||||
|
* @LastEditors: wally |
||||
|
* @LastEditTime: 2021-01-14 17:37:46 |
||||
|
--> |
||||
|
<template> |
||||
|
<div>数智创世代企业孵化器</div> |
||||
|
</template> |
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'Incubator', |
||||
|
data() { |
||||
|
return {}; |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,11 @@ |
|||||
|
<template> |
||||
|
<div>合作伙伴</div> |
||||
|
</template> |
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'Partner', |
||||
|
data() { |
||||
|
return {}; |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,11 @@ |
|||||
|
<template> |
||||
|
<div>创业服务</div> |
||||
|
</template> |
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'Service', |
||||
|
data() { |
||||
|
return {}; |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,11 @@ |
|||||
|
<template> |
||||
|
<div>高新众创空间</div> |
||||
|
</template> |
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'Space', |
||||
|
data() { |
||||
|
return {}; |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,11 @@ |
|||||
|
<template> |
||||
|
<div>创业导师</div> |
||||
|
</template> |
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'Tutor', |
||||
|
data() { |
||||
|
return {}; |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,24 @@ |
|||||
|
<template> |
||||
|
<div class="inner" style="margin-top: 50px; margin-bottom: 100px"> |
||||
|
<left-nav style="float: left" /> |
||||
|
<div style="width: 83%; float: right"> |
||||
|
<router-view></router-view> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import LeftNav from './components/LeftNav.vue'; |
||||
|
export default { |
||||
|
name: 'Hatch', |
||||
|
components: { LeftNav }, |
||||
|
data() { |
||||
|
return { |
||||
|
title: '孵化平台', |
||||
|
arr: [{ name: '孵化平台', url: '' }], |
||||
|
}; |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style scoped lang="stylus"></style> |
@ -0,0 +1,79 @@ |
|||||
|
<!-- |
||||
|
* @Author: wally |
||||
|
* @email: 18603454788@163.com |
||||
|
* @Date: 2021-01-13 17:25:56 |
||||
|
* @LastEditors: wally |
||||
|
* @LastEditTime: 2021-01-14 17:42:17 |
||||
|
--> |
||||
|
<template> |
||||
|
<div class="nav-box"> |
||||
|
<div :class="activeNum === index ? 'nav-box-active' : ''" :key="index" @click="jump(item.url, index)" v-for="(item, index) in list"> |
||||
|
{{ item.title }} |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'LeftNav', |
||||
|
data() { |
||||
|
return { |
||||
|
str: '导航条', |
||||
|
activeNum: 0, |
||||
|
list: [ |
||||
|
{ |
||||
|
title: '高新众创空间', |
||||
|
url: '/Hatch/Space', |
||||
|
}, |
||||
|
{ |
||||
|
title: '数字创时代企业孵化器', |
||||
|
url: '/Hatch/Incubator', |
||||
|
}, |
||||
|
{ |
||||
|
title: '虚拟孵化器', |
||||
|
url: '/Hatch/Fictitious', |
||||
|
}, |
||||
|
{ |
||||
|
title: '创业导师', |
||||
|
url: '/Hatch/Tutor', |
||||
|
}, |
||||
|
{ |
||||
|
title: '合作伙伴', |
||||
|
url: '/Hatch/Partner', |
||||
|
}, |
||||
|
{ |
||||
|
title: '创业服务', |
||||
|
url: '/Hatch/Service', |
||||
|
}, |
||||
|
], |
||||
|
}; |
||||
|
}, |
||||
|
created() { |
||||
|
if (this.$route.fullPath === '/Hatch/Incubator') { |
||||
|
this.activeNum = 1; |
||||
|
} else if (this.$route.fullPath === '/Hatch/Fictitious') { |
||||
|
this.activeNum = 2; |
||||
|
} else if (this.$route.fullPath === '/Hatch/Tutor') { |
||||
|
this.activeNum = 3; |
||||
|
} else if (this.$route.fullPath === '/Hatch/Partner') { |
||||
|
this.activeNum = 4; |
||||
|
} else if (this.$route.fullPath === '/Hatch/Service') { |
||||
|
this.activeNum = 5; |
||||
|
} else { |
||||
|
this.activeNum = 0; |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
jump(url, index) { |
||||
|
if (this.$route.fullPath === url) { |
||||
|
this.$message.success('已在当前界面'); |
||||
|
} else { |
||||
|
this.$router.push(url); |
||||
|
this.activeNum = index; |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style scoped lang="stylus"></style> |
Loading…
Reference in new issue