123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <!--pages/child_list/child_list.wxml-->
- <import src="../../templates/nodata/nodata.wxml" />
- <import src="../../templates/loading/loading.wxml" />
- <view class='container'>
- <template is='loading-teacher' wx:if='{{!isLoaded}}'></template>
- <view class='wrapper' wx:else>
- <!-- <view class="tab" style="padding-top:{{statusBar+10}}px;" bindtap="blockInfo">
- <image src="../../assets/arrow_gray_right.png" class="tab-img"></image>
- <text style="padding-left: 35%;" >{{className}}</text>
- </view> -->
- <view class="child">
- <view class='child-nav' wx:if='{{!isAdd}}'>
- <view class='child-nav-items {{navIdx==index?"child-nav-items-active":""}}' wx:for='{{navList}}' wx:key='index' data-idx='{{index}}' bindtap='selectTeacher'>{{item}}</view>
- </view>
- <view class="child-ranking" data-url="pages/ranking_list/ranking_list" data-paras='{{({isType:3,classId})}}' bindtap="navigateTo">
- <image src="../../assets/pai_hang_bang.png" class="child-ranking-img"></image>
- <view>排行榜</view>
- </view>
- </view>
- <!-- 学生列表 -->
- <view class='li' wx:if='{{navIdx==0}}'>
- <view class='li-search'>
- <view class='li-search-left'>
- <image src='../../assets/search.png' class='li-search-left-img'></image>
- <input placeholder='搜索学生姓名' class='li-search-left-input' placeholder-style='li-search-left-input-pla' value='{{searchKey}}' bindinput='inputCtl'></input>
- </view>
- <view class='li-search-right' bindtap='blurCtl'>搜索</view>
- </view>
- <view class='li-order'>
- <view class="number">
- <view class="number-items">
- <view>
- <text class="number-left">上传人数:</text>
- <text class="number-right">{{uploadHomeworkSum}}/{{studentSum}}</text>
- </view>
- <view>
- <text class="number-left">已批改人数:</text>
- <text class="number-right">{{correctSum}}</text>
- </view>
- </view>
- <view class="number-record" data-url="pages/ranking_list/ranking_list" data-paras='{{({isType:4,classId})}}' bindtap="navigateTo">
- <image src="../../assets/shang_chuan_ji_lu.png" class="number-record-img"></image>
- <text>记录</text>
- </view>
- </view>
- <scroll-view scroll-y style="overflow: scroll;" scroll-into-view="{{toView}}" enable-back-to-top bindscroll="viewScroll" scroll-with-animation scroll-top="{{scrollTop}}" wx:if='{{list.length>0}}'>
- <view wx:for='{{studentList}}' wx:key='index'>
- <view class="list-letter" id="{{item.title}}">{{item.title}}</view>
- <view class='li-child' wx:for='{{item.items}}' wx:for-item="val" wx:for-index="key" wx:key='key' data-url="pages/past_record/past_record" data-paras='{{({vipId:val.vipId})}}' bindtap="navigateTo">
- <view>
- <!-- <image src='{{item.isCheck=="active"?"../../assets/xuan_zhong.png":"../../assets/gou.png"}}' class='li-content-items-right-img' wx:if='{{isAdd}}' data-index='{{index}}' bindtap='selectLiCtl'></image> -->
- <view class='li-child-info' >
- <image src="{{val.imgUrl?baseImgUrl+val.imgUrl:'../../assets/default_headicon2.png'}}" class='li-child-img {{val.serviceType==-1?"close_active":""}}'></image>
- <view class='li-child-info-name li-child-items' >
- <text style='font-weight:bold; margin-right: 15rpx;' class="{{val.serviceType==-1?'close_color':''}}">{{val.childName}}</text>
- <image src='../../assets/huang_guan.png' class='li-tips' wx:if='{{val.serviceType==1||val.serviceType==4||val.serviceType==999}}'></image>
- <image src='../../assets/hui_guan.png' class='li-tips' wx:if='{{val.serviceType==0}}'></image>
- <image src='../../assets/zuan_shi.png' class='li-tips' wx:if='{{val.serviceType==2}}'></image>
- <text style='color:{{val.serviceType==0?"#8489A3":val.serviceType==999?"#FF6465":"#E59B36"}};font-size:22rpx;' wx:if='{{val.serviceType!=-1}}'>{{val.serviceType==0?'当前无服务':val.serviceType==1?'平台服务(家长购买)':val.serviceType==2?'校区服务':val.serviceType==4?'平台服务(校区购买)':val.serviceType==5?'批改服务':'内部用户'}}</text>
- <view wx:if='{{val.serviceType==-1}}' class="close-serve">服务已关闭</view>
- <view class='li-child-info-grades {{val.serviceType==-1?"close_color":""}}'>{{val.grade}}</view>
- </view>
- </view>
- </view>
- <view class="li-btn" wx:if='{{val.serviceType!=-1}}'>
- <view class="li-btn-red" wx:if='{{val.homeworkStatus==1}}'>已上传</view>
- <view class="li-btn-blue" wx:if='{{val.homeworkStatus==2}}'>已批改</view>
- </view>
- </view>
- </view>
- </scroll-view>
- <!-- <view class="list-shortcut">
- <block wx:for="{{list}}" wx:key="index">
- <text class="list-shortcut-num {{currentIndex===index?'list-current':''}}" data-id="{{item.title}}" data-idx="{{index}}" bindtap='scrollToview'>{{item.title}}</text>
- </block>
- </view> -->
- </view>
- <view class='li-footer' wx:if='{{!isAdd}}' data-url="pages/add_student/add_student" data-paras='{{({classId})}}' bindtap="navigateTo">
- <image src='../../assets/jia_hao.png' class='li-footer-img'></image>
- <text>添加学生</text>
- </view>
- <view class='li-class-grade' wx:if='{{isAdd}}'>
- <view data-url="pages/kids_information/kids_information" data-paras='{{({classId,className})}}' bindtap="navigateTo">
- <image src='../../assets/person_add.png' class='li-class-grade-img'></image>
- <text>新建学生</text>
- </view>
- <view class='li-class-grade-btn' bindtap='addStudent' wx:if='{{list.length>0}}'>确定({{checkNum}})</view>
- </view>
- </view>
- <!-- 老师 -->
- <view class='li-content li-order' wx:if='{{navIdx==1}}'>
- <scroll-view scroll-y style="height:{{scrollHeight_}};overflow: auto;" scroll-into-view="{{toView}}" enable-back-to-top bindscroll="viewScroll" scroll-with-animation scroll-top="{{scrollTop}}" wx:if='{{teacherList.length>0}}'>
- <view wx:for='{{teacherList}}' wx:key='index'>
- <view class="list-letter" id="{{item.title}}">{{item.title}}</view>
- <view class='li-teach {{isAddTeacher?"":"li-between"}}' wx:for="{{item.items}}" wx:for-item="val" wx:for-index="key" wx:key='key'>
- <image src='{{val.isCheck=="active"?"../../assets/xuan_zhong.png":"../../assets/gou.png"}}' class='li-content-items-right-img li-add-teacher' wx:if='{{isAddTeacher}}' data-index='{{index}}' data-key='{{key}}' bindtap='selectLiCtl'></image>
- <view data-url="pages/teacher_detail/teacher_detail" data-paras='{{({teacherId:val.teacherId})}}' bindtap="{{isAddTeacher?'':'navigateTo'}}">
- <image src='{{val.imgUrl?baseImgUrl+val.imgUrl:"../../assets/default_headicon1.png"}}' class='li-teach-img'></image>
- <view class='li-teach-items'>
- <view class='li-teach-items-top'>
- <text style='font-weight:bold'>{{val.name}}</text>
- <view class="li-teach-items-top-sub {{val1=='数学'?'li-blue':val1=='语文'?'li-red':'li-yellow'}}" wx:for='{{val.subject}}' wx:key='key1' wx:for-item='val1' wx:for-index='key1' wx:if='{{val1}}'>
- {{val1}}
- </view>
- </view>
- <view class='li-teach-items-down'>
- <view wx:for='{{val.teacherTypeList}}' wx:key='key' wx:for-item='val2' wx:for-index='key2' style='display:inline-block;margin-right:10rpx;'>
- {{val2==2?'现场管理':val2==3?'学科答疑':'作业标注'}}
- </view>
- </view>
- </view>
- </view>
- <image src='../../assets/dian_dian.png' class='li-teach-dian' wx:if='{{!isAddTeacher}}' data-id='{{val.teacherId}}' bindtap='addTeacherShow'></image>
- </view>
- </view>
- </scroll-view>
- <!-- <view class="list-shortcut" bindtouchmove="tap_drag" bindtouchend="tap_end" bindtouchstart="tap_start">
- <block wx:for="{{teacherList}}" wx:key="index" >
- <text class="list-shortcut-num {{currentIndex===index?'list-current':''}}" data-id="{{item.title}}" data-idx="{{index}}" bindtap='scrollToview'>{{item.title}}</text>
- </block>
- </view> -->
- <view class='li-footer' wx:if='{{!isAddTeacher}}' data-url="pages/add_teacher/add_teacher" data-paras='{{({classId})}}' bindtap="navigateTo">
- <image src='../../assets/jia_hao.png' class='li-footer-img'></image>
- <text>添加教师</text>
- </view>
- <view class='li-class-grade' wx:if='{{isAddTeacher&&teacherList.length>0}}'>
- <view></view>
- <view class='li-class-grade-btn' bindtap='addTeacherList'>确定({{checkNum}})</view>
- </view>
- </view>
- <!-- 弹幕 -->
- <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenModel}}'></view>
- <view class='model-class' wx:if='{{hiddenModel}}'>
- <view class='model-list'>
- <view class='model-list-items' bindtap='deleteTeacher'>
- <image src='../../assets/yi_chu.png' class='model-list-items-img'></image>
- <text>从班级移除此教师</text>
- </view>
- </view>
- <view class='model-footer'>
- <view bindtap='allShowModel' bindtap='allShowModel'>取消</view>
- </view>
- </view>
- <template is='nodata' wx:if='{{studentList.length==0&&navIdx==0}}' data='{{...nodata[0]}}'></template>
- <template is='nodata' wx:if='{{teacherList.length==0&&navIdx==1}}' data='{{...nodata[1]}}'></template>
- </view>
- </view>
|