child_list.wxml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <!--pages/child_list/child_list.wxml-->
  2. <import src="../../templates/nodata/nodata.wxml" />
  3. <import src="../../templates/loading/loading.wxml" />
  4. <view class='container'>
  5. <template is='loading-teacher' wx:if='{{!isLoaded}}'></template>
  6. <view class='wrapper' wx:else>
  7. <!-- <view class="tab" style="padding-top:{{statusBar+10}}px;" bindtap="blockInfo">
  8. <image src="../../assets/arrow_gray_right.png" class="tab-img"></image>
  9. <text style="padding-left: 35%;" >{{className}}</text>
  10. </view> -->
  11. <view class="child">
  12. <view class='child-nav' wx:if='{{!isAdd}}'>
  13. <view class='child-nav-items {{navIdx==index?"child-nav-items-active":""}}' wx:for='{{navList}}' wx:key='index' data-idx='{{index}}' bindtap='selectTeacher'>{{item}}</view>
  14. </view>
  15. <view class="child-ranking" data-url="pages/ranking_list/ranking_list" data-paras='{{({isType:3,classId})}}' bindtap="navigateTo">
  16. <image src="../../assets/pai_hang_bang.png" class="child-ranking-img"></image>
  17. <view>排行榜</view>
  18. </view>
  19. </view>
  20. <!-- 学生列表 -->
  21. <view class='li' wx:if='{{navIdx==0}}'>
  22. <view class='li-search'>
  23. <view class='li-search-left'>
  24. <image src='../../assets/search.png' class='li-search-left-img'></image>
  25. <input placeholder='搜索学生姓名' class='li-search-left-input' placeholder-style='li-search-left-input-pla' value='{{searchKey}}' bindinput='inputCtl'></input>
  26. </view>
  27. <view class='li-search-right' bindtap='blurCtl'>搜索</view>
  28. </view>
  29. <view class='li-order'>
  30. <view class="number">
  31. <view class="number-items">
  32. <view>
  33. <text class="number-left">上传人数:</text>
  34. <text class="number-right">{{uploadHomeworkSum}}/{{studentSum}}</text>
  35. </view>
  36. <view>
  37. <text class="number-left">已批改人数:</text>
  38. <text class="number-right">{{correctSum}}</text>
  39. </view>
  40. </view>
  41. <view class="number-record" data-url="pages/ranking_list/ranking_list" data-paras='{{({isType:4,classId})}}' bindtap="navigateTo">
  42. <image src="../../assets/shang_chuan_ji_lu.png" class="number-record-img"></image>
  43. <text>记录</text>
  44. </view>
  45. </view>
  46. <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}}'>
  47. <view wx:for='{{studentList}}' wx:key='index'>
  48. <view class="list-letter" id="{{item.title}}">{{item.title}}</view>
  49. <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">
  50. <view>
  51. <!-- <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> -->
  52. <view class='li-child-info' >
  53. <image src="{{val.imgUrl?baseImgUrl+val.imgUrl:'../../assets/default_headicon2.png'}}" class='li-child-img {{val.serviceType==-1?"close_active":""}}'></image>
  54. <view class='li-child-info-name li-child-items' >
  55. <text style='font-weight:bold; margin-right: 15rpx;' class="{{val.serviceType==-1?'close_color':''}}">{{val.childName}}</text>
  56. <image src='../../assets/huang_guan.png' class='li-tips' wx:if='{{val.serviceType==1||val.serviceType==4||val.serviceType==999}}'></image>
  57. <image src='../../assets/hui_guan.png' class='li-tips' wx:if='{{val.serviceType==0}}'></image>
  58. <image src='../../assets/zuan_shi.png' class='li-tips' wx:if='{{val.serviceType==2}}'></image>
  59. <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>
  60. <view wx:if='{{val.serviceType==-1}}' class="close-serve">服务已关闭</view>
  61. <view class='li-child-info-grades {{val.serviceType==-1?"close_color":""}}'>{{val.grade}}</view>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="li-btn" wx:if='{{val.serviceType!=-1}}'>
  66. <view class="li-btn-red" wx:if='{{val.homeworkStatus==1}}'>已上传</view>
  67. <view class="li-btn-blue" wx:if='{{val.homeworkStatus==2}}'>已批改</view>
  68. </view>
  69. </view>
  70. </view>
  71. </scroll-view>
  72. <!-- <view class="list-shortcut">
  73. <block wx:for="{{list}}" wx:key="index">
  74. <text class="list-shortcut-num {{currentIndex===index?'list-current':''}}" data-id="{{item.title}}" data-idx="{{index}}" bindtap='scrollToview'>{{item.title}}</text>
  75. </block>
  76. </view> -->
  77. </view>
  78. <view class='li-footer' wx:if='{{!isAdd}}' data-url="pages/add_student/add_student" data-paras='{{({classId})}}' bindtap="navigateTo">
  79. <image src='../../assets/jia_hao.png' class='li-footer-img'></image>
  80. <text>添加学生</text>
  81. </view>
  82. <view class='li-class-grade' wx:if='{{isAdd}}'>
  83. <view data-url="pages/kids_information/kids_information" data-paras='{{({classId,className})}}' bindtap="navigateTo">
  84. <image src='../../assets/person_add.png' class='li-class-grade-img'></image>
  85. <text>新建学生</text>
  86. </view>
  87. <view class='li-class-grade-btn' bindtap='addStudent' wx:if='{{list.length>0}}'>确定({{checkNum}})</view>
  88. </view>
  89. </view>
  90. <!-- 老师 -->
  91. <view class='li-content li-order' wx:if='{{navIdx==1}}'>
  92. <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}}'>
  93. <view wx:for='{{teacherList}}' wx:key='index'>
  94. <view class="list-letter" id="{{item.title}}">{{item.title}}</view>
  95. <view class='li-teach {{isAddTeacher?"":"li-between"}}' wx:for="{{item.items}}" wx:for-item="val" wx:for-index="key" wx:key='key'>
  96. <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>
  97. <view data-url="pages/teacher_detail/teacher_detail" data-paras='{{({teacherId:val.teacherId})}}' bindtap="{{isAddTeacher?'':'navigateTo'}}">
  98. <image src='{{val.imgUrl?baseImgUrl+val.imgUrl:"../../assets/default_headicon1.png"}}' class='li-teach-img'></image>
  99. <view class='li-teach-items'>
  100. <view class='li-teach-items-top'>
  101. <text style='font-weight:bold'>{{val.name}}</text>
  102. <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}}'>
  103. {{val1}}
  104. </view>
  105. </view>
  106. <view class='li-teach-items-down'>
  107. <view wx:for='{{val.teacherTypeList}}' wx:key='key' wx:for-item='val2' wx:for-index='key2' style='display:inline-block;margin-right:10rpx;'>
  108. {{val2==2?'现场管理':val2==3?'学科答疑':'作业标注'}}
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. <image src='../../assets/dian_dian.png' class='li-teach-dian' wx:if='{{!isAddTeacher}}' data-id='{{val.teacherId}}' bindtap='addTeacherShow'></image>
  114. </view>
  115. </view>
  116. </scroll-view>
  117. <!-- <view class="list-shortcut" bindtouchmove="tap_drag" bindtouchend="tap_end" bindtouchstart="tap_start">
  118. <block wx:for="{{teacherList}}" wx:key="index" >
  119. <text class="list-shortcut-num {{currentIndex===index?'list-current':''}}" data-id="{{item.title}}" data-idx="{{index}}" bindtap='scrollToview'>{{item.title}}</text>
  120. </block>
  121. </view> -->
  122. <view class='li-footer' wx:if='{{!isAddTeacher}}' data-url="pages/add_teacher/add_teacher" data-paras='{{({classId})}}' bindtap="navigateTo">
  123. <image src='../../assets/jia_hao.png' class='li-footer-img'></image>
  124. <text>添加教师</text>
  125. </view>
  126. <view class='li-class-grade' wx:if='{{isAddTeacher&&teacherList.length>0}}'>
  127. <view></view>
  128. <view class='li-class-grade-btn' bindtap='addTeacherList'>确定({{checkNum}})</view>
  129. </view>
  130. </view>
  131. <!-- 弹幕 -->
  132. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenModel}}'></view>
  133. <view class='model-class' wx:if='{{hiddenModel}}'>
  134. <view class='model-list'>
  135. <view class='model-list-items' bindtap='deleteTeacher'>
  136. <image src='../../assets/yi_chu.png' class='model-list-items-img'></image>
  137. <text>从班级移除此教师</text>
  138. </view>
  139. </view>
  140. <view class='model-footer'>
  141. <view bindtap='allShowModel' bindtap='allShowModel'>取消</view>
  142. </view>
  143. </view>
  144. <template is='nodata' wx:if='{{studentList.length==0&&navIdx==0}}' data='{{...nodata[0]}}'></template>
  145. <template is='nodata' wx:if='{{teacherList.length==0&&navIdx==1}}' data='{{...nodata[1]}}'></template>
  146. </view>
  147. </view>