|
|
@@ -1,7 +1,8 @@
|
|
|
<template>
|
|
|
<header class="v-header clearfix">
|
|
|
+ <div id="nav-space" class="nav-space"></div>
|
|
|
<div id="index-header" :class="headFixed == true ? 'fixedTop' : ''">
|
|
|
- <div class="index-header-box">
|
|
|
+ <div class="index-header-box w1200">
|
|
|
<div class="h-nav-logo">
|
|
|
<nuxt-link to="/">
|
|
|
<img src="~/assets/images/index/logo_icon.png" alt="" srcset="">
|
|
|
@@ -14,7 +15,7 @@
|
|
|
</div>
|
|
|
<div class="i-h-nav">
|
|
|
<ul class="h-nav-list">
|
|
|
- <li>
|
|
|
+ <li class="h-nav-li">
|
|
|
<nuxt-link to="/">首页</nuxt-link>
|
|
|
</li>
|
|
|
<li>
|
|
|
@@ -32,17 +33,17 @@
|
|
|
<i class="el-icon-arrow-down"></i>
|
|
|
</div>
|
|
|
</li>
|
|
|
- <li>
|
|
|
+ <li class="h-nav-li">
|
|
|
<nuxt-link to="/news">新闻资讯</nuxt-link>
|
|
|
</li>
|
|
|
- <li>
|
|
|
- <a href="https://course.zaojiao.net/index" target="_blank" rel="noopener noreferrer">网校中心</a>
|
|
|
+ <li class="h-nav-li">
|
|
|
+ <a href="https://course.zaojiao.net/index" rel="noopener noreferrer">网校中心</a>
|
|
|
<!-- <nuxt-link to="/experice">网校中心</nuxt-link> -->
|
|
|
</li>
|
|
|
- <li>
|
|
|
+ <li class="h-nav-li">
|
|
|
<nuxt-link to="/campus">全国校区</nuxt-link>
|
|
|
</li>
|
|
|
- <li>
|
|
|
+ <li class="h-nav-li">
|
|
|
<nuxt-link to="/cooperate">加盟合作</nuxt-link>
|
|
|
</li>
|
|
|
<li>
|
|
|
@@ -50,13 +51,13 @@
|
|
|
<!-- <nuxt-link to="">关于我们</nuxt-link> -->
|
|
|
<ul class="h-nav-list-child">
|
|
|
<li>
|
|
|
- <nuxt-link to="/about/brand">品牌故事</nuxt-link>
|
|
|
+ <nuxt-link target="_blank" to="/about/brand">品牌故事</nuxt-link>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <nuxt-link to="/about/team">专家团队</nuxt-link>
|
|
|
+ <nuxt-link target="_blank" to="/about/team">专家团队</nuxt-link>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <nuxt-link to="/about/contact">联系我们</nuxt-link>
|
|
|
+ <nuxt-link target="_blank" to="/about/contact">联系我们</nuxt-link>
|
|
|
</li>
|
|
|
</ul>
|
|
|
<div class="expand">
|
|
|
@@ -118,27 +119,32 @@ export default {
|
|
|
<style lang="scss" scoped>
|
|
|
@import '~static/common/style.sass';
|
|
|
|
|
|
+.nav-space {
|
|
|
+ height: 72px;
|
|
|
+}
|
|
|
+
|
|
|
#index-header {
|
|
|
- width: 1200px;
|
|
|
- top: 36px;
|
|
|
- left: 50%;
|
|
|
- transform: translateX(-50%);
|
|
|
- /* width: 100%; */
|
|
|
+ // width: 1200px;
|
|
|
+ // top: 36px;
|
|
|
+ // left: 50%;
|
|
|
+ // transform: translateX(-50%);
|
|
|
+ width: 100%;
|
|
|
/* height: 158px; */
|
|
|
background: #fff;
|
|
|
z-index: 666;
|
|
|
- box-shadow: 0px 2px 35px 0px rgba(6,8,71,0.17);
|
|
|
- border-radius: 8px;
|
|
|
+ // box-shadow: 0px 2px 35px 0px rgba(6,8,71,0.17);
|
|
|
+ // border-radius: 8px;
|
|
|
}
|
|
|
|
|
|
.fixedTop {
|
|
|
position: fixed;
|
|
|
/* top: -100px; */
|
|
|
left: 0;
|
|
|
+ top: 0;
|
|
|
}
|
|
|
|
|
|
.index-header-box {
|
|
|
- height: 82px;
|
|
|
+ height: 72px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
/* background: #fff; */
|
|
|
@@ -150,7 +156,7 @@ export default {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
// width: 1200px;
|
|
|
- height: 82px;
|
|
|
+ height: 72px;
|
|
|
// margin: 0 auto;
|
|
|
font-size: 15px;
|
|
|
// text-align: center;
|
|
|
@@ -193,7 +199,7 @@ ul.h-nav-list {
|
|
|
position: relative;
|
|
|
display: inline-block;
|
|
|
padding: 0 35px;
|
|
|
- line-height: 82px;
|
|
|
+ line-height: 72px;
|
|
|
box-sizing: border-box;
|
|
|
font-size: 15px;
|
|
|
}
|
|
|
@@ -205,15 +211,15 @@ ul.h-nav-list {
|
|
|
.h-nav-list > li > a {
|
|
|
width: 100%;
|
|
|
padding: 22px 0;
|
|
|
- color: $theme_fu_bule;
|
|
|
+ color: $theme_gray333;
|
|
|
-webkit-box-sizing: border-box;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
-webkit-transition: all 0.5s ease;
|
|
|
-o-transition: all 0.5s ease;
|
|
|
transition: all 0.5s ease;
|
|
|
- font-family: PingFangSC-Medium,PingFang SC;
|
|
|
- font-weight: 500;
|
|
|
+ // font-family: PingFangSC-Medium,PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
}
|
|
|
|
|
|
.h-nav-list > li .expand {
|
|
|
@@ -230,18 +236,56 @@ ul.h-nav-list {
|
|
|
}
|
|
|
|
|
|
.h-nav-list > li:hover .expand {
|
|
|
- color: $theme_color_fu;
|
|
|
+ color: $theme_color;
|
|
|
// background-image: url('~assets/images/index/arrow_down_bg_blue.png');
|
|
|
}
|
|
|
|
|
|
.h-nav-list > li:hover > a,
|
|
|
.h-nav-list li .nuxt-link-exact-active,
|
|
|
.h-nav-list li .nuxt-link-active {
|
|
|
- color: $theme_color_fu;
|
|
|
+ position: relative;
|
|
|
+ color: $theme_color;
|
|
|
transition: all 0.3s;
|
|
|
+ font-family: PingFangSC-Medium, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
// border-bottom: 2px solid $theme_color_fu;
|
|
|
}
|
|
|
|
|
|
+.h-nav-list {
|
|
|
+ .h-nav-li {
|
|
|
+ .nuxt-link-exact-active{
|
|
|
+ &:after {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0;
|
|
|
+ background: $theme_color;
|
|
|
+ width: 40px;
|
|
|
+ height: 2px;
|
|
|
+ box-shadow: 0px 2px 4px 0px rgba(85, 141, 253, 0.4);
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // :not(.h-nav-list-child) {
|
|
|
+ // }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// .h-nav-list li.h-nav-li
|
|
|
+// .nuxt-link-exact-active{
|
|
|
+// &:after {
|
|
|
+// content: ''; /*CSS伪类用法*/
|
|
|
+// position: absolute; /*定位背景横线的位置*/
|
|
|
+// bottom: 0;
|
|
|
+// background: $theme_color; /*宽和高做出来的背景横线*/
|
|
|
+// width: 40px;
|
|
|
+// height: 2px;
|
|
|
+// box-shadow: 0px 2px 4px 0px rgba(85, 141, 253, 0.4);
|
|
|
+// left: 50%;
|
|
|
+// transform: translateX(-50%);
|
|
|
+// }
|
|
|
+// }
|
|
|
+
|
|
|
.h-nav-list > li:first-child .nuxt-link-active {
|
|
|
color: $theme_fu_bule;
|
|
|
border-bottom: 2px solid transparent;
|
|
|
@@ -249,7 +293,7 @@ ul.h-nav-list {
|
|
|
|
|
|
.h-nav-list > li:first-child .nuxt-link-active.nuxt-link-exact-active {
|
|
|
// border-bottom: 2px solid $theme_color_fu;
|
|
|
- color: $theme_color_fu;
|
|
|
+ color: $theme_color;
|
|
|
}
|
|
|
// .h-nav-list-child li a.nuxt-link-exact-active {
|
|
|
// // border: none;
|
|
|
@@ -298,7 +342,7 @@ ul.h-nav-list-child li a {
|
|
|
}
|
|
|
|
|
|
ul.h-nav-list-child li a:hover {
|
|
|
- color: $theme_color_fu;
|
|
|
+ color: $theme_color;
|
|
|
}
|
|
|
|
|
|
.h-right {
|