|
@@ -39,10 +39,6 @@ export default defineComponent({
|
|
|
starGrade() {
|
|
|
const { starGrade } = this.userInfo as any
|
|
|
return Number(starGrade) || 0
|
|
|
- },
|
|
|
-
|
|
|
- tags() {
|
|
|
- return this.userInfo.tag?.split(',') || []
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -141,7 +137,10 @@ export default defineComponent({
|
|
|
}}
|
|
|
>
|
|
|
<Image
|
|
|
- class={[styles.avatar, this.checkBadge('VIP') && styles.avatarActive]}
|
|
|
+ class={[
|
|
|
+ styles.avatar,
|
|
|
+ this.checkBadge('VIP') && styles.avatarActive
|
|
|
+ ]}
|
|
|
round
|
|
|
src={this.userInfo.heardUrl || iconTeacher}
|
|
|
fit="cover"
|
|
@@ -198,8 +197,8 @@ export default defineComponent({
|
|
|
<div class={styles.teacherInfoName}>
|
|
|
{this.userInfo.username || `游客${this.userInfo.userId || ''}`}
|
|
|
</div>
|
|
|
- {this.tags.includes('TEACHER') && <img src={IconXueli} />}
|
|
|
- {this.tags.includes('DEGREE') && <img src={IconJiaozi} />}
|
|
|
+ {this.userInfo.teacherFlag ? <img src={IconXueli} /> : null}
|
|
|
+ {this.userInfo.degreeFlag ? <img src={IconJiaozi} /> : null}
|
|
|
</div>
|
|
|
<div class={styles.teacherHonor}>
|
|
|
<div>勋章:</div>
|