Files
jiace-web/src/views/index.vue

250 lines
5.4 KiB
Vue
Raw Normal View History

2021-08-02 09:31:25 +08:00
<template>
2021-08-02 14:40:12 +08:00
<div class="index_page">
2021-08-02 17:40:23 +08:00
<!-- <div class="img_box">
2021-08-02 14:40:12 +08:00
<img src="@/assets/image/toubu.png" alt="" />
2021-08-02 17:40:23 +08:00
</div> -->
<!-- 整体宽度 -->
<div class="content">
<!-- 头部 -->
<div class="header">
<div class="login">
<el-button type="text" @click="aaa">登录</el-button>
<i class="mark">|</i>
<el-button type="text" @click="aaa">注册</el-button>
</div>
<div class="img2_box">
<img src="@/assets/image/02.png" alt="" />
<div class="search">
<el-input v-model="input" placeholder="请输入搜索关键字"></el-input>
<el-button type="warning">一站搜</el-button>
2021-08-02 14:40:12 +08:00
</div>
</div>
</div>
2021-08-02 17:40:23 +08:00
</div>
<!-- ul li 列表 -->
<div class="uls">
<div class="lis content">
<ul>
<li
:class="path == item.path ? 'is-active' : ''"
v-for="item in lisList"
:key="item.path"
@click="abc(item.path)"
>
{{ item.name }}
<!-- <router-link :to="item.path">
{{ item.name }}
</router-link> -->
</li>
</ul>
</div>
</div>
<!-- 路由站位 -->
<div class="content">
<router-view></router-view>
</div>
2021-08-02 09:31:25 +08:00
</div>
</template>
<script>
export default {
name: 'home',
data() {
2021-08-02 17:40:23 +08:00
return {
input: '',
lisList: [
{
2021-08-02 17:52:28 +08:00
path: '/home',
2021-08-02 17:40:23 +08:00
name: '首页'
},
{
2021-08-02 17:52:28 +08:00
path: '/notice',
2021-08-02 17:40:23 +08:00
name: '通知公告'
},
{
2021-08-02 17:52:28 +08:00
path: '/demand',
2021-08-02 17:40:23 +08:00
name: '企业需求'
},
{
2021-08-02 17:52:28 +08:00
path: '/achievements',
2021-08-02 17:40:23 +08:00
name: '科技成果'
},
{
2021-08-02 17:52:28 +08:00
path: '/declare',
2021-08-02 17:40:23 +08:00
name: '高企申报'
},
{
2021-08-02 17:52:28 +08:00
path: '/qualifications',
2021-08-02 17:40:23 +08:00
name: '资质申报'
},
{
2021-08-02 17:52:28 +08:00
path: '/assessment',
2021-08-02 17:40:23 +08:00
name: '智能评估'
}
],
2021-08-02 17:52:28 +08:00
path: this.$route.path == '/' ? '/home' : this.$route.path
2021-08-02 17:40:23 +08:00
};
2021-08-02 09:31:25 +08:00
},
2021-08-02 14:40:12 +08:00
methods: {
aaa() {
this.$router.push({ path: '/login' });
2021-08-02 17:40:23 +08:00
},
abc(path) {
this.path = path;
this.$router.push({ path });
2021-08-02 14:40:12 +08:00
}
}
2021-08-02 09:31:25 +08:00
};
</script>
<style lang="scss" scoped>
2021-08-02 14:40:12 +08:00
.index_page {
2021-08-02 17:40:23 +08:00
// padding-top: 200px;
// .img_box {
// width: 100%;
// height: 750px;
// position: absolute;
// top: 0;
// left: 0;
// z-index: -1;
// }
2021-08-02 14:40:12 +08:00
.header {
height: 206px;
2021-08-02 17:40:23 +08:00
padding: 0 100px;
2021-08-02 14:40:12 +08:00
background-image: url(../assets/image/01.png);
.login {
text-align: right;
.el-button {
font-size: 16px;
color: #4097e7;
}
.mark {
width: 1px;
color: #dcdcdc;
margin: 0 14px;
}
}
2021-08-02 17:40:23 +08:00
.img2_box {
display: flex;
justify-content: space-between;
height: 63px;
margin-top: 75px;
img {
width: 392px;
height: 100%;
}
/deep/.el-input--medium .el-input__inner {
height: 40px;
line-height: 40px;
border-radius: 0;
border: 1px solid #ffa32c;
}
.search {
display: flex;
height: 40px;
.el-button {
border-radius: 0;
background-color: #ffa32c;
font-size: 18px;
}
}
}
}
.uls {
background-color: #ffa32c;
height: 48px;
line-height: 48px;
.lis {
ul {
margin: 0;
list-style: none;
padding-left: 0;
li {
float: left;
padding: 0 50px;
cursor: pointer;
color: #fff;
font-size: 24px;
}
li:hover {
background-color: #3394ff;
}
.is-active {
position: relative;
background-color: #3394ff;
}
.is-active::after {
content: '';
display: block;
width: 0;
height: 0;
border-top: 7px solid transparent;
border-bottom: 7px solid #fff;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
position: absolute;
bottom: -1px;
left: 50%;
transform: translateX(-50%);
}
}
}
}
.el-tabs--border-card {
border: 0;
}
/deep/.el-tabs--border-card > .el-tabs__header {
background-color: #ffa32c;
border-bottom: 0;
}
/deep/.el-tabs__item {
color: #fff;
font-size: 22px;
}
/deep/.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
position: relative;
color: #fff;
background-color: #3394ff;
border-right-color: #3394ff;
border-left-color: #3394ff;
}
/deep/.el-tabs--border-card
> .el-tabs__header
.el-tabs__item.is-active::after {
content: '';
display: block;
width: 0;
height: 0;
border-top: 5px solid transparent;
border-bottom: 5px solid #fff;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
position: absolute;
bottom: -1px;
left: 50%;
transform: translateX(-50%);
}
/deep/.el-tabs--border-card
> .el-tabs__header
.el-tabs__item:not(.is-disabled):hover {
color: #fff;
background-color: #3394ff;
}
/deep/.el-tabs__item {
padding-left: 30px !important;
padding-right: 30px;
}
/deep/.el-tabs__nav-scroll {
padding: 0 100px;
2021-08-02 14:40:12 +08:00
}
}
2021-08-02 09:31:25 +08:00
@media (max-width: 1024px) {
.chart-wrapper {
padding: 8px;
}
}
</style>