This commit is contained in:
zhaofang
2022-10-31 22:48:42 +08:00
parent e68039746d
commit 08d5738684

View File

@@ -63,7 +63,13 @@
<div>
<el-dropdown>
<div style="margin-left: 50px;color: #fff;font-size: 14px;cursor: pointer;">
<el-avatar :src="userInfo.avatar" style="vertical-align: middle;width:40px;height:40px;margin-right:10px;"></el-avatar>{{userInfo.name}}
<el-avatar v-if="userInfo.avatar !== ''" :src="userInfo.avatar" style="vertical-align: middle;width:40px;height:40px;margin-right:10px;"></el-avatar>
<span style="display: inline-block;">
<img v-if="userInfo.sex === 1 " src="../../../../public/images/Avatarman.png" alt="" style="width: 30px;height: 30px;vertical-align: middle;">
<img src="../../../../public/images/Avatarwoman.png" alt="" style="width: 30px;height: 30px;vertical-align: middle;">
</span>
{{userInfo.name}}
</div>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item @click.native="setCurIdentity(1)"><a :href="`${webBaseUrl}${isTiao ? '/uc/study/task' : '/uc/study/courses'}`">个人中心</a></el-dropdown-item>
@@ -258,6 +264,7 @@ export default {
::v-deep.el-dropdown-menu {
text-align: center;
border: none !important;
}
::v-deep .el-avatar{
margin-right: 8px;
@@ -270,6 +277,9 @@ text-align: center;
}
.el-button--text{
color: #fff;
}
img{
}
::v-deep .dialog-signin{
background: transparent;