提交 cc2ab1fd authored 作者: pengxiaohui's avatar pengxiaohui

增加官网链接

上级 1687d3b5
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<header class="main-header"> <header class="main-header">
<template v-if="!searchVisible"> <template v-if="!searchVisible">
<div class="logo-box"> <div class="logo-box">
<img @click="goWebsite" src="http://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/static/ezijing/logo/ezijing-logo.svg" />
<nuxt-link to="/" class="logo"> <nuxt-link to="/" class="logo">
<img src="http://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/static/ezijing/logo/ezijing-logo.svg" />
<img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/seg-shms/seg-shms-logo.png" /> <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/seg-shms/seg-shms-logo.png" />
</nuxt-link> </nuxt-link>
</div> </div>
...@@ -54,6 +54,9 @@ export default { ...@@ -54,6 +54,9 @@ export default {
} }
}, },
methods: { methods: {
goWebsite() {
window.location.href = 'http://www.ezijing.com'
},
toggleSearch() { toggleSearch() {
this.$store.commit('toggleMenu', false) this.$store.commit('toggleMenu', false)
this.$store.commit('toggleSearch', !this.searchVisible) this.$store.commit('toggleSearch', !this.searchVisible)
...@@ -95,8 +98,8 @@ export default { ...@@ -95,8 +98,8 @@ export default {
height: 0.26rem; height: 0.26rem;
cursor: pointer; cursor: pointer;
display: block; display: block;
&:nth-child(2) { &:nth-child(1) {
margin-left: 0.1rem; margin-right: 0.1rem;
} }
} }
} }
......
...@@ -3,10 +3,17 @@ ...@@ -3,10 +3,17 @@
<div class="color-bar"></div> <div class="color-bar"></div>
<div class="head-top-content"> <div class="head-top-content">
<div class="max-width-content"> <div class="max-width-content">
<nuxt-link to="/"> <!-- <nuxt-link to="/">
<img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/ciis/ezijing-logo.png" /> <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/ciis/ezijing-logo.png" />
<img style="margin-left:20px" src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/seg-shms/seg-shms-logos.png" /> <img style="margin-left:20px" src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/seg-shms/seg-shms-logos.png" />
</nuxt-link> -->
<div class="logo-box">
<img @click="goWebsite" src="http://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/static/ezijing/logo/ezijing-logo.svg" />
<nuxt-link to="/" class="logo">
<img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/seg-shms/seg-shms-logos.png" />
</nuxt-link> </nuxt-link>
</div>
<div class="user" v-if="user.id"> <div class="user" v-if="user.id">
<span>{{ user.realname || user.nickname }}</span <span>{{ user.realname || user.nickname }}</span
><em>|</em><span class="logout" @click="logout">{{ $t('menu.out') }}</span> ><em>|</em><span class="logout" @click="logout">{{ $t('menu.out') }}</span>
...@@ -40,6 +47,9 @@ export default { ...@@ -40,6 +47,9 @@ export default {
return {} return {}
}, },
methods: { methods: {
goWebsite() {
window.location.href = 'http://www.ezijing.com'
},
logout() { logout() {
this.$store.dispatch('logout') this.$store.dispatch('logout')
}, },
...@@ -91,17 +101,28 @@ li { ...@@ -91,17 +101,28 @@ li {
.max-width-content { .max-width-content {
display: flex; display: flex;
align-items: center; align-items: center;
::v-deep { // ::v-deep {
a { // a {
display: flex; // display: flex;
// img {
// height: 55px;
// cursor: pointer;
// display: block;
// }
// img:first-child {
// margin-right: 10px;
// }
// }
// }
.logo-box{
display:flex;
img { img {
height: 55px; height: 55px;
cursor: pointer; cursor: pointer;
display: block; display: block;
} }
img:first-child { img:first-child {
margin-right: 10px; margin-right: 30px;
}
} }
} }
.user { .user {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论