130 lines
5.8 KiB
Plaintext
Raw Permalink Normal View History

2025-06-06 15:17:30 +08:00
<!--pages/teacher/count/count.wxml-->
<view class="page-content">
<mp-bar background="linear-gradient(190deg, #49a5fc 0%, #f7f7f7 800rpx, #f7f7f7 100%)" title="统计" color="#fff" back="{{false}}"></mp-bar>
2025-06-13 14:39:20 +08:00
<block wx:if="{{!isTrainer}}">
<view class="card card1">
<view class="all-item">
<view class="num">{{total}}</view>
<view>总人数</view>
</view>
<view class="all-item">
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/teacher/cccc.png" mode="" />
<view>不及格({{rank['不及格'] || 0}})</view>
</view>
<view class="all-item">
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/teacher/dddd.png" mode="" />
<view>及格({{rank['及格'] || 0}})</view>
</view>
<view class="all-item">
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/teacher/ssss.png" mode="" />
<view>良好({{rank['良好'] || 0}})</view>
</view>
<view class="all-item">
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/teacher/jjjj.png" mode="" />
<view>优秀({{rank['优秀'] || 0}})</view>
</view>
2025-06-06 15:17:30 +08:00
</view>
2025-06-13 14:39:20 +08:00
<view class="tab">
<picker style="width: 30%;" range="{{classList}}" range-key="name" bindchange="pickerChange" data-id="classList" data-key="nowClass">
<view class="tab-item">{{nowClass.name}}
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/teacher/downn-b.png" mode="" />
</view>
</picker>
<picker style="width: 30%;" range="{{projectList}}" range-key="name" bindchange="pickerChange" data-id="projectList" data-key="nowProject">
<view class="tab-item">{{nowProject.name || '暂无'}}
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/teacher/downn-b.png" mode="" />
</view>
</picker>
<picker style="width: 30%;" range="{{gradeList}}" bindchange="pickerChange" data-id="gradeList" data-key="nowGrade">
<view class="tab-item">{{nowGrade}}
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/teacher/downn-b.png" mode="" />
</view>
</picker>
2025-06-06 15:17:30 +08:00
</view>
2025-06-13 14:39:20 +08:00
<view class="card" wx:for="{{studentList}}" wx:key="studentNo" data-item="{{item}}" bind:tap="goDetail">
<view class="left">
<image src="{{item.photo == '' ? 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/room/avater.png': item.photo}}" class="img" />
{{item.studentName}}
</view>
<mp-icon icon="arrow" size="{{13}}" color="#8c8c8c"></mp-icon>
2025-06-06 15:17:30 +08:00
</view>
2025-06-13 14:39:20 +08:00
<view wx:if="{{studentList.length == 0}}" class="nothing">暂无数据 ~~</view>
</block>
<block wx:else>
<view class="tab-item pickerY" bind:tap="showDialog">{{nowCourse.startingEndingTime}}
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/teacher/downn-b.png" mode="" />
2025-06-06 15:17:30 +08:00
</view>
2025-06-13 14:39:20 +08:00
<view class="title">
<view class="title-before"></view>心率统计
</view>
<view class="card canvasCard" >
<view>次/分</view>
<view class="charts" style="width: {{cWidth}}px;height: {{cHeight}}px;">
<canvas canvas-id="mycanvas" type="2d" id="mycanvas" style="width: {{cWidth}}px;height: {{cHeight}}px;" bindtouchstart="touchstart" bindtouchmove="touchmove" bindtouchend="touchend" />
2025-06-06 15:17:30 +08:00
</view>
2025-06-13 14:39:20 +08:00
</view>
2025-06-06 15:17:30 +08:00
2025-06-13 14:39:20 +08:00
<view class="tp">
<view class="table-t">
<view class="no-b no-r">最大心率</view>
<view class="no-b no-r">最小心率</view>
<view class="no-b no-r">平均心率</view>
<view class="no-b">中高强度时长(分钟)</view>
</view>
<view class="table-t">
<view class="no-r">{{nowCourseDetail.maxHR || '- -'}}</view>
<view class="no-r">{{nowCourseDetail.minHR || '- -'}}</view>
<view class="no-r">{{nowCourseDetail.avgHR || '- -'}}</view>
<view>{{nowCourseDetail.highIntensity || '- -'}}</view>
2025-06-06 15:17:30 +08:00
</view>
2025-06-13 14:39:20 +08:00
</view>
2025-06-06 15:17:30 +08:00
2025-06-13 14:39:20 +08:00
<view class="title">
<view class="title-before"></view>学生列表
2025-06-06 15:17:30 +08:00
</view>
2025-06-13 14:39:20 +08:00
<view class="card" wx:for="{{nowCourseDetail.studentTrainingRecordList}}" wx:key="studentNo" data-item="{{item}}" bind:tap="goStudentList">
<view class="left">
<image src="{{item.photo == '' ? 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/room/avater.png': item.photo}}" class="img" />
{{item.studentName}}
<image class="sex" src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/report-icon/sex_{{item.sex}}.png" mode=""/>
<!-- {{item.age}}岁 -->
</view>
<mp-icon icon="arrow" size="{{13}}" color="#8c8c8c"></mp-icon>
</view>
2025-06-06 15:17:30 +08:00
2025-06-13 14:39:20 +08:00
<mp-half-screen-dialog bindbuttontap="buttontap" show="{{showDialog}}" title="课堂记录">
<view slot="desc">
<scroll-view class="modal-scroll" scroll-y bindscrolltolower="getTrainClass" lower-threshold="50">
<view class="list">
<view wx:for="{{courseList}}" wx:key="id" class="list-item {{clickCouse.id == item.id ? 'isClick':''}}" bind:tap="clickCouse" data-item="{{item}}">
{{ item.startingEndingTime }}
<view class="clickIcon" wx:if="{{clickCouse.id == item.id}}">
<mp-icon icon="done" color="#fff" size="{{14}}"></mp-icon>
</view>
</view>
</view>
<!-- 加载更多提示 -->
<view wx:if="{{haveMore}}" class="loading">加载中...</view>
<view wx:if="{{!haveMore}}" class="no-more">没有更多数据了</view>
</scroll-view>
</view>
<view slot="footer" class="footer">
<button bind:tap="closeDialog">取消</button>
<button type="primary" bind:tap="sureClickCouse">确定</button>
</view>
</mp-half-screen-dialog>
</block>
2025-06-06 15:17:30 +08:00
</view>