feat(admissions): 添加无值班教师时的空状态提示
This commit is contained in:
parent
14687adb46
commit
cfd0d0f0f2
|
|
@ -18,31 +18,39 @@
|
||||||
|
|
||||||
<view class="teacher-list">
|
<view class="teacher-list">
|
||||||
<!-- 教师列表 -->
|
<!-- 教师列表 -->
|
||||||
<view
|
<view v-if="teacherList.length > 0">
|
||||||
class="teacher-item"
|
<view
|
||||||
v-for="(teacher, index) in teacherList"
|
class="teacher-item"
|
||||||
:key="index"
|
v-for="(teacher, index) in teacherList"
|
||||||
>
|
:key="index"
|
||||||
<image
|
>
|
||||||
class="teacher-avatar"
|
<image
|
||||||
src="/static/common/images/avatar.png"
|
class="teacher-avatar"
|
||||||
></image>
|
src="/static/common/images/avatar.png"
|
||||||
<view class="teacher-info">
|
></image>
|
||||||
<view class="teacher-detail">
|
<view class="teacher-info">
|
||||||
<view class="teacher-name">
|
<view class="teacher-detail">
|
||||||
<text>{{ teacher.name }}</text>
|
<view class="teacher-name">
|
||||||
<view v-if="teacher.presence" class="online-status">
|
<text>{{ teacher.name }}</text>
|
||||||
<view class="online-dot"></view>
|
<view v-if="teacher.presence" class="online-status">
|
||||||
<text>在线</text>
|
<view class="online-dot"></view>
|
||||||
|
<text>在线</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="teacher-department">{{
|
||||||
|
teacher.collegeName
|
||||||
|
}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="ask-button" @click="handleAskQuestion(teacher)">
|
||||||
|
立即提问
|
||||||
</view>
|
</view>
|
||||||
<view class="teacher-department">{{ teacher.collegeName }}</view>
|
|
||||||
</view>
|
|
||||||
<view class="ask-button" @click="handleAskQuestion(teacher)">
|
|
||||||
立即提问
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view v-else style="margin-top: 200rpx">
|
||||||
|
<u-empty text="今日暂无值班客服教师" mode="list"></u-empty>
|
||||||
|
</view>
|
||||||
</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,
|
||||||
},
|
// },
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue