提交 984a02a0 authored 作者: pengxiaohui's avatar pengxiaohui

增加官网链接

上级 622bebb8
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
<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="https://zws-imgs-pub.ezijing.com/static/ezijing/logo/ezijing-logo.svg" />
<div class="line"></div>
<nuxt-link to="/" class="logo"> <nuxt-link to="/" class="logo">
<img src="https://zws-imgs-pub.ezijing.com/static/ezijing/logo/ezijing-logo.svg" />
<div class="line"></div>
<div class="title"> <div class="title">
国际硕士1+1 国际硕士1+1
</div> </div>
...@@ -59,6 +59,9 @@ export default { ...@@ -59,6 +59,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)
...@@ -92,32 +95,29 @@ export default { ...@@ -92,32 +95,29 @@ export default {
.logo { .logo {
flex: 1; flex: 1;
display: flex; display: flex;
}
.logo-box {
flex: 1;
display: flex;
img {
height: 0.26rem;
cursor: pointer;
display: block;
}
.line { .line {
border-right: 0.01rem solid #aa1941; border-right: 0.01rem solid #aa1941;
height: 0.14rem; height: 0.14rem;
margin-left: 0.2rem; margin:0.05rem 0.2rem 0;
margin-top: 0.05rem;
} }
.title { .title {
font-size: 0.14rem; font-size: 0.14rem;
font-weight: 500; font-weight: 500;
line-height: 0.22rem;
color: #aa1941; color: #aa1941;
padding-left: 0.2rem;
padding-top: 0.02rem; padding-top: 0.02rem;
box-sizing: border-box; box-sizing: border-box;
} }
}
.logo-box {
flex: 1;
display: flex;
img {
height: 0.26rem;
cursor: pointer;
display: block;
&:nth-child(2) {
margin-left: 0.1rem;
}
}
.title { .title {
line-height: 0.22rem; line-height: 0.22rem;
} }
......
...@@ -6,16 +6,15 @@ ...@@ -6,16 +6,15 @@
<!-- <nuxt-link to="/"> <!-- <nuxt-link to="/">
<img src="https://zws-imgs-pub.ezijing.com/static/public/307f688850f8308a5c944bd129436fe0.png" /> <img src="https://zws-imgs-pub.ezijing.com/static/public/307f688850f8308a5c944bd129436fe0.png" />
</nuxt-link> --> </nuxt-link> -->
<nuxt-link to="/"> <div class="logo-box">
<div class="logo-box"> <img @click="goWebsite" src="https://zws-imgs-pub.ezijing.com/static/ezijing/logo/ezijing-logo.svg" />
<img src="https://zws-imgs-pub.ezijing.com/static/ezijing/logo/ezijing-logo.svg" /> <div class="line"></div>
<div class="line"></div> <nuxt-link to="/">
<div class="title"> <div class="title">国际硕士1+1</div>
国际硕士1+1 </nuxt-link>
</div> <!-- <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/marywood/marywood_logo.svg" /> -->
<!-- <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/marywood/marywood_logo.svg" /> --> </div>
</div>
</nuxt-link>
<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>
...@@ -49,6 +48,9 @@ export default { ...@@ -49,6 +48,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')
}, },
...@@ -112,21 +114,17 @@ li { ...@@ -112,21 +114,17 @@ li {
height: 55px; height: 55px;
cursor: pointer; cursor: pointer;
display: block; display: block;
&:nth-child(2) {
margin-left: 20px;
}
} }
.line { .line {
border-right: 1px solid #aa1941; border-right: 1px solid #aa1941;
height: 26px; height: 26px;
width: 0; width: 0;
margin-left: 20px; margin:0 20px;
} }
.title { .title {
font-size: 30px; font-size: 30px;
font-weight: 500; font-weight: 500;
color: #aa1941; color: #aa1941;
padding-left: 20px;
box-sizing: border-box; box-sizing: border-box;
white-space: nowrap; white-space: nowrap;
word-wrap: normal; word-wrap: normal;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论