Commit 05b068d0 authored by zhangyanni's avatar zhangyanni

间距 + 顶部行业动态鼠标滑入滑出

parent f5e17665
...@@ -12,13 +12,16 @@ ...@@ -12,13 +12,16 @@
<li <li
@click.stop="handleClick(index)" @click.stop="handleClick(index)"
@mouseenter="handleShowChildren(index)" @mouseenter="handleShowChildren(index)"
:class="currentIndex==index?'activeLi':''" @mouseout="handleHideChildren(index)"
:class="[currentIndex==index?'activeLi':'',{'relative':index === 3}]"
v-for="(item,index) in list">{{$t('topNav.'+item.name)}} v-for="(item,index) in list">{{$t('topNav.'+item.name)}}
<div class="childrenLi" v-if="isShowChildren && index === 3" @mouseleave="handleIsHide">
<p @click="handleToIndustryFocus">{{$t('topNav.professionfocusing')}}</p>
<p @click="handleToCase" >{{$t('topNav.cooperationcase')}}</p>
</div>
</li> </li>
<div class="childrenLi" v-if="isShowChildren">
<p @click="handleToIndustryFocus">{{$t('topNav.professionfocusing')}}</p>
<p @click="handleToCase">{{$t('topNav.cooperationcase')}}</p>
</div>
<li v-if="userInfo" class="workPlaceLi" @click="handleToWork"><span class="iconfont icon-ic_web" style="color: #ff9e29;"></span>{{$t("topNav.workPlace")}}</li> <li v-if="userInfo" class="workPlaceLi" @click="handleToWork"><span class="iconfont icon-ic_web" style="color: #ff9e29;"></span>{{$t("topNav.workPlace")}}</li>
</ul> </ul>
</div> </div>
...@@ -254,6 +257,14 @@ ...@@ -254,6 +257,14 @@
}, },
handleHideChildren(index){
},
handleIsHide(){
this.isShowChildren = false;
},
//去消息 //去消息
handleToAnnounce(){ handleToAnnounce(){
this.getInitList(); this.getInitList();
...@@ -511,6 +522,9 @@ ...@@ -511,6 +522,9 @@
<style scoped lang="scss"> <style scoped lang="scss">
.relative {
position: relative;
}
.authinfo{ .authinfo{
img{ img{
height: 17px; height: 17px;
...@@ -742,9 +756,10 @@ ...@@ -742,9 +756,10 @@
.childrenLi{ .childrenLi{
background: #fff; background: #fff;
position: absolute; position: absolute;
top:60px; top:40px;
left: 580px; left: 0px;
width: 110px; width: 110px;
z-index: 99;
&>p{ &>p{
text-align: center; text-align: center;
color:#3F3F53; color:#3F3F53;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<div v-for="(item,index) in jsoncont.contentList" class="contentListWrap"> <div v-for="(item,index) in jsoncont.contentList" class="contentListWrap">
<p> <p>
<img :src="item.images" alt=""> <img :src="item.images" alt="">
<span class="imgOrigin">{{item.imgOriginTitle}}</span> <span class="imgOrigin" v-if="item.imgOriginTitle">{{item.imgOriginTitle}}</span>
</p> </p>
<p class="contentTitle" v-if="item.contentTitle">{{item.contentTitle}}</p> <p class="contentTitle" v-if="item.contentTitle">{{item.contentTitle}}</p>
</div> </div>
...@@ -122,7 +122,6 @@ ...@@ -122,7 +122,6 @@
padding: .2rem; padding: .2rem;
border-radius: .03rem; border-radius: .03rem;
line-height: .46rem; line-height: .46rem;
margin-bottom: .3rem;
color: #69697A; color: #69697A;
} }
>p:nth-child(1){ >p:nth-child(1){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment