外部讲师的默认头像(合并冲突过多重新提)

This commit is contained in:
670788339
2025-12-09 18:15:01 +08:00
parent 9dbb5e2d89
commit 8bed676851

View File

@@ -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">