fix : 修改右上角用户样式
This commit is contained in:
@@ -6,8 +6,12 @@
|
|||||||
<!-- <bell-socket/>-->
|
<!-- <bell-socket/>-->
|
||||||
<div class="user-box">
|
<div class="user-box">
|
||||||
<div>
|
<div>
|
||||||
<!-- <img :src="userInfo.avatar" alt="" @click.stop="handleVisitedP">-->
|
<el-avatar>{{ userInfo.nickName }}</el-avatar>
|
||||||
<span @click.stop="handleVisitedP">欢迎回来,{{ userInfo.nickName }}</span>
|
<div @click.stop="handleVisitedP">{{ userInfo.nickName }}
|
||||||
|
<el-icon style="margin-left: 5px">
|
||||||
|
<ArrowDownBold/>
|
||||||
|
</el-icon>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="person" v-if="visitedP">
|
<div class="person" v-if="visitedP">
|
||||||
<ul>
|
<ul>
|
||||||
@@ -90,8 +94,6 @@ const handleVisitedP = () => {
|
|||||||
visitedP.value = !visitedP.value
|
visitedP.value = !visitedP.value
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const accountChange = (userId) => {
|
const accountChange = (userId) => {
|
||||||
@@ -123,6 +125,11 @@ const handleLogout = () => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
:deep(.el-avatar--circle) {
|
||||||
|
margin-right: 10px;
|
||||||
|
background-color: #8a7243;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
height: 65px;
|
height: 65px;
|
||||||
padding: 0 15px 0 0;
|
padding: 0 15px 0 0;
|
||||||
@@ -147,8 +154,9 @@ const handleLogout = () => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
> span {
|
> div {
|
||||||
margin-left: 5px;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@@ -168,7 +176,7 @@ const handleLogout = () => {
|
|||||||
width: 280px;
|
width: 280px;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 300;
|
z-index: 300;
|
||||||
top: 46px;
|
top: 54px;
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
@@ -214,10 +222,6 @@ const handleLogout = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-avatar--circle) {
|
|
||||||
margin-right: 10px;
|
|
||||||
background-color: #8a7243;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user