|
@@ -1,17 +1,17 @@
|
|
|
<template>
|
|
|
<div id='wrap-nav'>
|
|
|
<div class="nav-left">
|
|
|
- <img class="logo" @click="navClick(0,{})" alt="666" src="../../../static/images/icon/logo2.svg"/>
|
|
|
+ <img class="logo" @click="navClick(0,{})" alt="666" :src="nowLanguage === 'zh' ? language_logo_zh : language_logo_en"/>
|
|
|
<!--<object data="../../../static/images/icon/logo2.svg" type="image/svg+xml"></object>-->
|
|
|
</div>
|
|
|
<div class="nav-right">
|
|
|
<div class="nav">
|
|
|
<div v-for="(subItem, subIndex) in languageStatus" :key="subIndex" :class="{nav_active: subItem.id == activeIndex}"
|
|
|
- @click="navClick(subItem.id,subItem)" :style="{width:nowLanguage==='zh'?'3.775em':'4.2em'}">
|
|
|
+ @click="navClick(subItem.id,subItem)" :style="{width:nowLanguage==='zh'?'3.2em':'4.1em'}">
|
|
|
<a class="nav-subItem">
|
|
|
{{ subItem.name }}
|
|
|
<ul class="nav-subMenu">
|
|
|
- <li v-for='(item, index) in subItem.subMenu' :key="index" @click="liIndex=index" :style="{width:nowLanguage==='zh'?'3.775em':'4.2em'}" :class="{li_active: index == liIndex&&subIndex==activeIndex}">
|
|
|
+ <li v-for='(item, index) in subItem.subMenu' :key="index" @click="liIndex=index" :style="{width:nowLanguage==='zh'?'3.2em':'4.1em'}" :class="{li_active: index == liIndex&&subIndex==activeIndex}">
|
|
|
<router-link :style="{fontSize:nowLanguage==='zh'?'0.4em':'0.3em'}" :to="item.hash"><div v-html="item.title"></div></router-link>
|
|
|
<span></span>
|
|
|
</li>
|
|
@@ -71,6 +71,8 @@ export default {
|
|
|
logo: 'http://video.cgaii.com/images/icon/logo.png',
|
|
|
language_en: 'http://video.cgaii.com/images/icon/language_en.png',
|
|
|
language_zh: 'http://video.cgaii.com/images/icon/language_zh.png',
|
|
|
+ language_logo_en: 'http://video.cgaii.com/images/cgaiien.svg',
|
|
|
+ language_logo_zh: 'http://video.cgaii.com/images/cgaiizh.svg',
|
|
|
object: {
|
|
|
Zh: [
|
|
|
{name: '首页', id: 0, url: '/index'},
|
|
@@ -246,14 +248,16 @@ export default {
|
|
|
languageStatus: function () {
|
|
|
switch (this.$store.state.lang) {
|
|
|
case 'zh':
|
|
|
+ this.activeLang = txtArr[0].name
|
|
|
return this.object.Zh
|
|
|
case 'ge':
|
|
|
+ this.activeLang = txtArr[2].name
|
|
|
return this.object.Ge
|
|
|
-
|
|
|
case 'en':
|
|
|
+ this.activeLang = txtArr[1].name
|
|
|
return this.object.En
|
|
|
-
|
|
|
default:
|
|
|
+ this.activeLang = txtArr[0].name
|
|
|
return this.object.Zh
|
|
|
}
|
|
|
},
|