feat(聊天页面): 根据用户类型显示不同的信息卡片

添加条件渲染逻辑,当用户类型为0时显示教师信息卡片,为1时显示学生信息卡片(学生信息卡片内容暂注释)
This commit is contained in:
yangzhe 2026-01-21 11:41:40 +08:00
parent c7e5b0504c
commit 81c27a5a25
1 changed files with 15 additions and 2 deletions

View File

@ -20,8 +20,8 @@
@scrolltoupper="handleScrollToUpper"
>
<view class="chat-content">
<!-- 教师信息 -->
<div class="teacher-info-card">
<!-- vuex_userType === 0 展示 教师信息 -->
<div class="teacher-info-card" v-if="vuex_userType === 0">
<image
class="teacher-avatar"
:src="receiverHeadSculptureUrl"
@ -62,6 +62,19 @@
</div>
</div>
<!-- vuex_userType === 1 展示 学生信息 -->
<div class="student-info-card" v-if="vuex_userType === 1">
<!-- <image
class="student-avatar"
:src="headSculptureUrl"
></image>
<div class="student-info">
<div class="student-header">
<div class="student-name">{{ vuex_user.name }}</div>
</div>
</div> -->
</div>
<!-- 上拉刷新loading -->
<view class="loading-more" v-if="isLoading">
<u-loading mode="circle" color="#4370fe"></u-loading>