mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 14:26:43 +08:00
外部讲师的默认头像(合并冲突过多重新提)
This commit is contained in:
@@ -732,21 +732,29 @@
|
||||
title="点击进入他的主页"
|
||||
>
|
||||
<!-- <div class="teacher-text" v-if="item.authorInfo.avatar == ''">{{userAvatarText(item.teacherName)}}</div> -->
|
||||
<div v-if="item.authorInfo.avatar !== ''">
|
||||
<div v-if="item.authorInfo && item.authorInfo.avatar">
|
||||
<el-avatar
|
||||
:src="fileBaseUrl + item.authorInfo.avatar"
|
||||
shape="circle"
|
||||
:size="50"
|
||||
></el-avatar>
|
||||
</div>
|
||||
<div v-else class="teacher-text">
|
||||
<!-- <div v-else class="teacher-text">
|
||||
<div v-if="item.authorInfo.sex === 1">
|
||||
<img src="../../../public/images/Avatarman.png" alt="" />
|
||||
</div>
|
||||
<div v-else>
|
||||
<img src="../../../public/images/Avatarwoman.png" alt="" />
|
||||
</div>
|
||||
</div>-->
|
||||
<div v-else-if="item.photo">
|
||||
<el-avatar :src="item.photo" shape="circle" :size="50"></el-avatar>
|
||||
</div>
|
||||
<div v-else class="teacher-text">
|
||||
<div v-if="item.authorInfo && item.authorInfo.sex === 1"><img src="../../../public/images/Avatarwoman.png" alt=""></div>
|
||||
<div v-else><img src="../../../public/images/Avatarman.png" alt=""></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="teacher-info">
|
||||
<div class="teacher-name">
|
||||
|
||||
Reference in New Issue
Block a user