This commit is contained in:
daihh
2022-10-31 23:54:36 +08:00
2 changed files with 12 additions and 2 deletions

View File

@@ -37,7 +37,7 @@
<div class="content-bottom">
<div class="medal-list">
<div class="medal-info" v-for="(m,midx) in medalList" :key="m.id" v-if="midx<3">
<img :src="fileBaseUrl+m.medalIcon" alt="">
<img v-if="m.medalId != 5" :src="fileBaseUrl+m.medalIcon" alt="">
</div>
</div>
<el-button class="medalbutt" v-if="medalList.length > 0" type="text" @click="toPage('/user/medal')">更多 <i class="el-icon-d-arrow-right"></i> </el-button>

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;