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

427 lines
10 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-03 13:42:38 +08:00
<!-- 右侧悬浮 -->
<div class="slid" v-if="path == '/home'">
2021-08-03 13:42:38 +08:00
<div class="item-box">
<el-tooltip class="item" effect="dark" placement="left-start">
<div class="tip_img" slot="content">
2021-08-17 08:41:33 +08:00
<img src="@/assets/image/wx.jpg" alt="" />
2021-08-03 13:42:38 +08:00
</div>
<div>
<img src="@/assets/image/weixin.png" />
<div class="text">公众号</div>
</div>
</el-tooltip>
</div>
<div class="item-box">
<el-tooltip class="item" effect="dark" placement="left-start">
<div class="tip_img" slot="content">
2021-08-17 08:41:33 +08:00
<img src="@/assets/image/qq.jpg" alt="" />
2021-08-03 13:42:38 +08:00
</div>
<div>
<img src="@/assets/image/qq.png" />
<div class="text">QQ群</div>
</div>
</el-tooltip>
</div>
<router-link to="/customerService" target="_blank">
<div class="item-box">
2021-08-13 11:51:16 +08:00
<img src="@/assets/image/service.png" />
<div class="text">在线客服</div>
</div>
</router-link>
2021-08-03 13:42:38 +08:00
</div>
2021-08-02 17:40:23 +08:00
<!-- <div class="img_box">
2021-08-03 13:42:38 +08:00
<img src="@/assets/image/toubu.png" alt="" />
</div> -->
2021-08-02 17:40:23 +08:00
<!-- 整体宽度 -->
<div class="content">
<!-- 头部 -->
2021-08-04 08:39:11 +08:00
<div class="header p0-100">
<div class="login_btn" v-if="!avatar">
2021-08-02 17:57:56 +08:00
<el-button type="text" @click="handlePage">登录</el-button>
2021-08-02 17:40:23 +08:00
<i class="mark">|</i>
2021-08-02 17:57:56 +08:00
<el-button type="text" @click="handlePage">注册</el-button>
2021-08-02 17:40:23 +08:00
</div>
2021-08-06 16:06:02 +08:00
<div class="avatar-wrapper" v-else @click="handlePath('/mine')">
2021-08-18 11:40:20 +08:00
<!-- <span>
<i>20</i>
</span> -->
<el-badge :value="200" :max="10" class="item">
<img :src="avatar" class="user-avatar" />
</el-badge>
2021-08-03 14:35:04 +08:00
</div>
2021-08-02 17:40:23 +08:00
<div class="img2_box">
<img src="@/assets/image/02.png" alt="" />
<div class="search">
2021-08-06 16:05:39 +08:00
<el-input
v-model.trim="input"
placeholder="请输入搜索关键字"
2021-08-06 16:06:02 +08:00
@keyup.enter.native="toSearch"
2021-08-06 16:05:39 +08:00
></el-input>
<el-button type="warning" @click="toSearch">一站搜</el-button>
<!-- <router-link
target="_blank"
:to="{ path: '/search', query: { val: input } }"
>
<el-button type="warning">一站搜</el-button>
</router-link> -->
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">
2021-08-04 08:39:11 +08:00
<div class="lis content p0-100">
2021-08-02 17:40:23 +08:00
<ul>
<li
:class="path == item.path ? 'is-active' : ''"
v-for="item in lisList"
:key="item.path"
2021-08-02 17:57:56 +08:00
@click="handlePath(item.path)"
2021-08-02 17:40:23 +08:00
>
{{ item.name }}
<!-- <router-link :to="item.path">
{{ item.name }}
</router-link> -->
</li>
</ul>
</div>
</div>
<!-- 路由站位 -->
2021-08-17 08:41:33 +08:00
<div class="content" style="padding: 10px 0">
2021-08-02 17:40:23 +08:00
<router-view></router-view>
</div>
2021-08-03 13:42:38 +08:00
<div class="my_footer">
2021-08-17 08:41:33 +08:00
<div style="height: 4px; background: #ffa32c"></div>
2021-08-03 13:42:38 +08:00
<div class="footer_one content">
2021-08-18 11:40:20 +08:00
<!-- <p>
2021-08-03 13:42:38 +08:00
<span>
2021-08-17 08:41:33 +08:00
<i><img src="@/assets/image/icon1.png" alt="" /></i>
2021-08-03 13:42:38 +08:00
总浏览量1020</span
>
<span>
2021-08-17 08:41:33 +08:00
<i><img src="@/assets/image/icon1.png" alt="" /></i>
2021-08-03 13:42:38 +08:00
今日浏览1020</span
>
2021-08-18 11:40:20 +08:00
</p> -->
2021-08-03 13:42:38 +08:00
<div class="footer_two">
<div class="footer_left">
<div class="footer_left_one">
<span class="footer_left_l">版权声明</span>
<span class="footer_left_r">
2021-08-20 14:26:33 +08:00
<i><img src="@/assets/image/icon3.png" alt=""/></i>
2021-08-03 13:42:38 +08:00
客服热线(周一至周五8:30-18:00)
</span>
</div>
<div class="footer_left_two">
<span class="footer_left_l">用户协议</span>
</div>
<div class="footer_left_three">
<span class="footer_left_l">意见反馈</span>
<span class="footer_left_r">
2021-08-20 14:26:33 +08:00
<i><img src="@/assets/image/icon2.png" alt=""/></i>
2021-08-03 13:42:38 +08:00
公司地址安徽省合肥市蜀山区黄山市601号412-414
</span>
</div>
</div>
<div class="footer_right">
<div class="item">
2021-08-17 08:41:33 +08:00
<img src="@/assets/image/wx.jpg" alt="" />
2021-08-03 13:42:38 +08:00
<div>嘉策公众号</div>
</div>
<div class="item">
2021-08-17 08:41:33 +08:00
<img src="@/assets/image/qq.jpg" alt="" />
2021-08-03 13:42:38 +08:00
<div>QQ群</div>
</div>
</div>
</div>
<div class="footer_three">
<div>
<span>商务合作</span>
<span>政策服务</span>
<span>在线解答</span>
</div>
<p>版权服务合肥嘉策信息技术服务有限公司 皖ICP备45619723号</p>
</div>
</div>
</div>
2021-08-02 09:31:25 +08:00
</div>
</template>
<script>
2021-08-03 14:35:04 +08:00
import { mapGetters } from 'vuex';
2021-08-02 09:31:25 +08:00
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-20 14:26:33 +08:00
name: '首页'
2021-08-02 17:40:23 +08:00
},
{
2021-08-02 17:52:28 +08:00
path: '/notice',
2021-08-20 14:26:33 +08:00
name: '通知公告'
2021-08-02 17:40:23 +08:00
},
{
2021-08-02 17:52:28 +08:00
path: '/demand',
2021-08-20 14:26:33 +08:00
name: '企业需求'
2021-08-02 17:40:23 +08:00
},
{
2021-08-02 17:52:28 +08:00
path: '/achievements',
2021-08-20 14:26:33 +08:00
name: '科技成果'
2021-08-02 17:40:23 +08:00
},
{
2021-08-02 17:52:28 +08:00
path: '/declare',
2021-08-20 14:26:33 +08:00
name: '高企申报'
2021-08-02 17:40:23 +08:00
},
{
2021-08-02 17:52:28 +08:00
path: '/qualifications',
2021-08-20 14:26:33 +08:00
name: '资质申报'
2021-08-02 17:40:23 +08:00
},
{
2021-08-02 17:52:28 +08:00
path: '/assessment',
2021-08-20 14:26:33 +08:00
name: '智能评估'
}
2021-08-02 17:40:23 +08:00
],
2021-08-20 14:26:33 +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-03 14:35:04 +08:00
computed: {
2021-08-20 14:26:33 +08:00
...mapGetters(['avatar'])
2021-08-03 14:35:04 +08:00
},
2021-08-02 14:40:12 +08:00
methods: {
2021-08-06 16:05:39 +08:00
toSearch() {
if (!this.input.length) return this.msgError('请输入搜索关键字');
this.$router.push({ path: '/search', query: { val: this.input } });
// let routerJump = this.$router.resolve({
// path: '/search',
// query: { val: this.input }
// });
// window.open(routerJump.href, '_blank');
},
2021-08-02 17:57:56 +08:00
handlePage() {
2021-08-02 14:40:12 +08:00
this.$router.push({ path: '/login' });
2021-08-02 17:40:23 +08:00
},
2021-08-02 17:57:56 +08:00
handlePath(path) {
2021-08-02 17:40:23 +08:00
this.path = path;
this.$router.push({ path });
2021-08-20 14:26:33 +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-03 13:42:38 +08:00
.slid {
width: 82px;
height: 246px;
position: fixed;
left: 50%;
border: 1px solid #dcdcdc;
border-bottom: 0;
background: #ffffff;
margin-left: 720px;
top: 400px;
.item-box {
text-align: center;
padding: 15px 0;
border-bottom: 1px solid #dcdcdc;
.text {
font-size: 16px;
color: #666;
}
}
}
2021-08-02 14:40:12 +08:00
.header {
height: 206px;
background-image: url(../assets/image/01.png);
2021-08-03 14:35:04 +08:00
.login_btn {
height: 60px;
2021-08-02 14:40:12 +08:00
text-align: right;
.el-button {
font-size: 16px;
color: #4097e7;
font-weight: bold;
2021-08-02 14:40:12 +08:00
}
.mark {
width: 1px;
color: #dcdcdc;
margin: 0 14px;
}
}
2021-08-03 14:35:04 +08:00
.avatar-wrapper {
text-align: right;
2021-08-18 11:40:20 +08:00
.el-badge {
// display: block;
// position: relative;
.user-avatar {
vertical-align: middle;
cursor: pointer;
2021-08-20 14:26:33 +08:00
width: 40px;
height: 40px;
2021-08-18 11:40:20 +08:00
border-radius: 50%;
}
2021-08-03 14:35:04 +08:00
}
}
2021-08-02 17:40:23 +08:00
.img2_box {
display: flex;
justify-content: space-between;
height: 63px;
2021-08-20 14:26:33 +08:00
margin-top: 75px;
2021-08-02 17:40:23 +08:00
img {
width: 392px;
height: 100%;
}
/deep/.el-input--medium .el-input__inner {
height: 40px;
line-height: 40px;
border-radius: 6px 0 0 6px;
2021-08-02 17:40:23 +08:00
border: 1px solid #ffa32c;
border-right: 0;
2021-08-02 17:40:23 +08:00
}
.search {
display: flex;
height: 40px;
.el-button {
border-radius: 0 6px 6px 0;
2021-08-02 17:40:23 +08:00
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;
2021-08-04 08:39:11 +08:00
padding: 0 41px;
2021-08-02 17:40:23 +08:00
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%);
}
}
}
}
2021-08-03 13:42:38 +08:00
.my_footer {
.footer_one {
p {
text-align: center;
font-size: 14px;
color: #666;
span {
i {
margin-right: 3px;
img {
vertical-align: middle;
}
}
}
span:nth-child(2) {
margin-left: 40px;
}
}
}
.footer_two {
border-bottom: 1px solid #dcdcdc;
display: flex;
justify-content: space-between;
align-items: center;
.footer_left {
padding: 50px 0;
.footer_left_two {
margin: 20px 0;
}
.footer_left_l {
font-size: 18px;
color: #333;
margin-right: 30px;
}
.footer_left_r {
2021-08-18 11:40:20 +08:00
font-size: 16px;
color: #666;
2021-08-03 13:42:38 +08:00
i {
img {
vertical-align: middle;
}
}
}
}
.footer_right {
display: flex;
.item {
font-size: 18px;
color: #333;
margin-right: 50px;
text-align: center;
}
}
}
.footer_three {
text-align: center;
padding: 36px 0;
div {
font-size: 16px;
color: #3394ff;
span:nth-child(2) {
margin: 0 39px;
}
}
p {
font-size: 14px;
color: #333;
}
}
}
2021-08-02 14:40:12 +08:00
}
2021-08-18 11:40:20 +08:00
/deep/.el-badge__content.is-fixed {
top: 10px;
right: 15px;
}
2021-08-02 09:31:25 +08:00
@media (max-width: 1024px) {
.chart-wrapper {
padding: 8px;
}
}
</style>