feat(admissions): 添加无值班教师时的空状态提示

This commit is contained in:
yangzhe 2025-12-11 09:57:48 +08:00
parent 14687adb46
commit cfd0d0f0f2
1 changed files with 42 additions and 34 deletions

View File

@ -18,6 +18,7 @@
<view class="teacher-list"> <view class="teacher-list">
<!-- 教师列表 --> <!-- 教师列表 -->
<view v-if="teacherList.length > 0">
<view <view
class="teacher-item" class="teacher-item"
v-for="(teacher, index) in teacherList" v-for="(teacher, index) in teacherList"
@ -36,7 +37,9 @@
<text>在线</text> <text>在线</text>
</view> </view>
</view> </view>
<view class="teacher-department">{{ teacher.collegeName }}</view> <view class="teacher-department">{{
teacher.collegeName
}}</view>
</view> </view>
<view class="ask-button" @click="handleAskQuestion(teacher)"> <view class="ask-button" @click="handleAskQuestion(teacher)">
立即提问 立即提问
@ -44,6 +47,11 @@
</view> </view>
</view> </view>
</view> </view>
<view v-else style="margin-top: 200rpx">
<u-empty text="今日暂无值班客服教师" mode="list"></u-empty>
</view>
</view>
</view> </view>
<!-- 留言弹出层 --> <!-- 留言弹出层 -->
@ -74,20 +82,20 @@ export default {
{ id: 1, name: "迎新在线" }, { id: 1, name: "迎新在线" },
], ],
teacherList: [ teacherList: [
{ // {
id: 1, // id: 1,
name: "孙老师", // name: "",
department: "招就处", // department: "",
avatar: "/static/common/images/avatar.png", // avatar: "/static/common/images/avatar.png",
online: true, // online: true,
}, // },
{ // {
id: 2, // id: 2,
name: "杨老师", // name: "",
department: "电子信息学院", // department: "",
avatar: "/static/common/images/student.png", // avatar: "/static/common/images/student.png",
online: false, // online: false,
}, // },
], ],
}; };
}, },