Commit ef2ce8e1 authored by zhangyanni's avatar zhangyanni

头部点击

parent 3e948559
......@@ -16,8 +16,8 @@
v-for="(item,index) in list">{{$t('topNav.'+item.name)}}
</li>
<div class="childrenLi" v-if="isShowChildren">
<p @click="$router.push('/lndustryfocus')">{{$t('topNav.professionfocusing')}}</p>
<p @click="$router.push('/successfulcase')">{{$t('topNav.cooperationcase')}}</p>
<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>
</ul>
......@@ -195,6 +195,25 @@
}
},
methods: {
handleToIndustryFocus(){
this.currentIndex = 3;
this.$emit("itemNav",3);
globalMsg.$emit("sendItemNav",3);
window.sessionStorage.setItem("currentNav",3);
this.$router.push("/lndustryfocus");
},
handleToCase(){
this.currentIndex = 3;
this.$emit("itemNav",3);
globalMsg.$emit("sendItemNav",3);
window.sessionStorage.setItem("currentNav",3);
this.$router.push("/successfulcase");
},
handleClick(index) {
this.$emit('aboutwebtn',index+'');
if(this.currentIndex!=index){
......@@ -221,8 +240,10 @@
this.$router.push("/bigBusiness/list");
}else this.$router.push("/completeInfoCmpt");
}
this.$emit("itemNav",index);
globalMsg.$emit("sendItemNav",index);
if(index!=3){
this.$emit("itemNav",index);
globalMsg.$emit("sendItemNav",index);
}
},
......
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