提交 2a302611 authored 作者: matian's avatar matian

修改退出按钮颜色

上级 fc7cfc99
...@@ -56,7 +56,12 @@ const isScrolled = computed(() => { ...@@ -56,7 +56,12 @@ const isScrolled = computed(() => {
</div> </div>
<div class="app-header-right"> <div class="app-header-right">
<template v-if="user.isLogin"> <template v-if="user.isLogin">
你好,{{ user.userName }} <span class="app-header-logout" @click="handleLogout">退出</span> 你好,{{ user.userName }}
<div class="app-header-logout" @click="handleLogout">
<img v-if="isScrolled" src="https://webapp-pub.ezijing.com/project/saas/logout.png" />
<img v-else src="https://webapp-pub.ezijing.com/project_online/fi/logout_white.png" />
退出
</div>
</template> </template>
<template v-else> <template v-else>
<a :href="LOGIN_URL" class="button-default">登录</a> <a :href="LOGIN_URL" class="button-default">登录</a>
...@@ -113,11 +118,15 @@ const isScrolled = computed(() => { ...@@ -113,11 +118,15 @@ const isScrolled = computed(() => {
color: #333; color: #333;
.app-header-logout { .app-header-logout {
background: url('https://webapp-pub.ezijing.com/project/saas/logout.png') no-repeat left center; // background: url('https://webapp-pub.ezijing.com/project/saas/logout.png') no-repeat left center;
background-size: auto 16px;
padding-left: 22px; padding-left: 22px;
margin-left: 40px; margin-left: 40px;
cursor: pointer; cursor: pointer;
display: flex;
img {
width: 18px;
margin-right: 10px;
}
} }
.button-default { .button-default {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论