main.wxml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <!--pages/main/main.wxml-->
  2. <import src="../../templates/nodata/nodata.wxml" />
  3. <view class='container'>
  4. <view class='wrapper'>
  5. <view wx:if='{{!isLogin}}'>
  6. <view class='li-search'>
  7. <view class='li-search-left'>
  8. <image src='../../assets/search.png' class='li-search-left-img'></image>
  9. <input placeholder='搜索学生姓名' class='li-search-left-input' placeholder-style='li-search-left-input-pla' disabled='true'></input>
  10. </view>
  11. <view class='li-search-right'>搜索</view>
  12. </view>
  13. <view class='li-child' data-url="pages/past_record/past_record" data-paras='{{({vipId:"8b59db64-fee0-47f2-be95-19560e639af4",childName:"游客",imgUrl:"",grade:"一年级",serviceType:1,phone:"16818819921",libId:"6b308989-0988-45a0-853d-537a923ba2e7"})}}' bindtap="navigateTo">
  14. <image src="../../assets/default_headicon.png" class='li-child-img'></image>
  15. <view class='li-child-info'>
  16. <view class='li-child-info-tips'>
  17. <text>游客</text>
  18. <image src='../../assets/huang_guan.png' class='li-tips'></image>
  19. <text style='color:#E59B36;font-size:22rpx;'>平台服务(家长购买)</text>
  20. </view>
  21. <view class='li-child-info-grades'>深圳实验小学 - 一年级</view>
  22. </view>
  23. </view>
  24. <view class='login'>
  25. <image src='../../assets/deng_lv_logo.png' class='login-img'></image>
  26. <view class='login-text'>登录后即可管理学生会员服务、掌握学情数据</view>
  27. <button open-type="getUserInfo" class='login-btn' bindgetuserinfo="getUserInfoCtl">注册丨登录</button>
  28. </view>
  29. </view>
  30. <view wx:if='{{isLogin}}' style='box-shadow:0px 0px 43rpx 0px rgba(246,246,246,1);' class="fixed">
  31. <view class='nav' style="height:{{customBar}}px;padding-top:{{statusBar}}px;">
  32. <image src='{{photo?baseImgUrl+photo:"../../assets/default_headicon1.png"}}' class='nav-img' data-url="pages/teacher_information/teacher_information" bindtap="navigateTo"></image>
  33. <text class='nav-text' style="padding-top:4%;">{{orgName}}</text>
  34. </view>
  35. <view class='li-nav'>
  36. <view class='li-nav-items' wx:for='{{navList}}' wx:key='index' data-idx='{{index}}' bindtap='selectClass'>
  37. <text class='{{navIdx==index?"li-nav-active":""}}'>{{item}}</text>
  38. <text class="li-nav-items-num" wx:if='{{index==3&&reviewNum>0}}'>{{reviewNum}}</text>
  39. </view>
  40. </view>
  41. </view>
  42. <view class='li' wx:if='{{isLogin}}' style="padding-top:{{statusBar+105}}px">
  43. <!-- 班级 -->
  44. <view class='li-content li-order' wx:if='{{navIdx==0}}'>
  45. <view class='li-content-items' wx:for='{{list}}' wx:key='index' wx:if='{{list.length>0}}'>
  46. <view data-url="pages/child_list/child_list" data-paras='{{({className:item.className,classId:item.classId})}}' bindtap="navigateTo">
  47. <image src='../../assets/class_one.png' class='li-content-items-img'></image>
  48. <view class='li-content-items-class'>
  49. <view class='li-content-items-class-num'>{{item.className}}</view>
  50. <view>
  51. <text wx:if='{{item.studentSum>0}}'>签到人数: {{item.signedStudentCount}}/{{item.studentSum}}人</text>
  52. <text wx:if='{{item.studentSum==0}}' class="li-active-red">学生:0人</text>
  53. <text class='li-content-items-class {{item.teacherSum==0?"li-active-red":""}}'>教师:{{item.teacherSum}}人</text>
  54. </view>
  55. </view>
  56. </view>
  57. <view class='li-content-items-right' bindtap='redactClass' data-cname='{{item.className}}' data-id='{{item.classId}}' data-snum='{{item.studentSum}}' data-tnum='{{item.teacherSum}}' data-del='{{index}}'>
  58. <image src='../../assets/dian_dian.png' class='li-content-items-right-img' style='width:44rpx;height:44rpx;'></image>
  59. </view>
  60. </view>
  61. <view class='li-footer' bindtap='renameShow' data-type='0'>
  62. <image src='../../assets/jia_hao.png' class='li-footer-img'></image>
  63. <text>新建班级</text>
  64. </view>
  65. </view>
  66. <!-- 学生列表 -->
  67. <view class='li-content' wx:if='{{navIdx==1}}'>
  68. <view style="height:{{scrollHeight_}};padding-bottom:120rpx;">
  69. <scroll-view scroll-y style="overflow:scroll;height:{{scrollHeight_}};padding-bottom:120rpx;" scroll-into-view="{{toView}}" enable-back-to-top bindscroll="viewScroll" scroll-with-animation scroll-top="{{scrollTop}}" wx:if='{{getList.length>0}}' bindscrolltolower='getData' lower-threshold='50'>
  70. <view wx:for='{{getList}}' wx:key='index' wx:if='{{getList.length>0}}'>
  71. <view class="list-letter" id="{{item.title}}" wx:if="{{item.title}}">{{item.title}}</view>
  72. <view class='li-child' data-url="pages/past_record/past_record" data-paras='{{({vipId:val.vipId})}}' bindtap="navigateTo" wx:for='{{item.items}}' wx:for-item="val" wx:for-index="key" wx:key='key'>
  73. <view class='li-child-info' >
  74. <image src="{{val.imgUrl?baseImgUrl+val.imgUrl:'../../assets/default_headicon2.png'}}" class='li-child-img {{val.serviceType==-1?"close_active":""}}'></image>
  75. <view class='li-child-info-name li-child-items' >
  76. <text style='font-weight:bold; margin-right: 15rpx;' class='{{val.serviceType==-1?"close_color":""}}'>{{val.childName}}</text>
  77. <image src='../../assets/huang_guan.png' class='li-tips' wx:if='{{val.serviceType==1||val.serviceType==4||val.serviceType==999}}'></image>
  78. <image src='../../assets/hui_guan.png' class='li-tips' wx:if='{{val.serviceType==0}}'></image>
  79. <image src='../../assets/zuan_shi.png' class='li-tips' wx:if='{{val.serviceType==2}}'></image>
  80. <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>
  81. <view wx:if='{{val.serviceType==-1}}' class="close-serve">服务已关闭</view>
  82. <view class='li-child-info-grades {{val.serviceType==-1?"close_color":""}}' wx:if='{{val.className}}'>{{val.className?val.className:'未分班'}} 丨 {{val.grade}}</view>
  83. <view class='li-child-info-grades {{val.serviceType==-1?"close_color":"li-active-red"}}' wx:if='{{!val.className}}'>未分班丨 {{val.grade}}</view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </scroll-view>
  89. <view class="list-shortcut">
  90. <block wx:for="{{getList}}" wx:key="index">
  91. <text class="list-shortcut-num {{currentIndex===index?'list-current':''}}" data-id="{{item.title}}" data-idx="{{index}}" bindtap='scrollToview' wx:if='{{item.title!="服务关闭"}}'>{{item.title}}</text>
  92. </block>
  93. </view>
  94. </view>
  95. <view class='li-class-grade'>
  96. <view data-url="pages/kids_information/kids_information" data-paras='{{({classId:""})}}' bindtap="navigateTo">
  97. <image src='../../assets/person_add.png' class='li-class-grade-img'></image>
  98. <text>新建学生</text>
  99. </view>
  100. <view class="batch-btn" data-url="pages/batch_renew/batch_renew" data-paras='{{({libId})}}' bindtap="navigateTo">批量续费</view>
  101. </view>
  102. </view>
  103. <!-- 老师 -->
  104. <view class='li-content li-order' wx:if='{{navIdx==2}}'>
  105. <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}}'>
  106. <view wx:for='{{list}}' wx:key='index' wx:if='{{list.length>0}}'>
  107. <view class="list-letter" id="{{item.title}}" wx:if="{{item.title}}">{{item.title}}</view>
  108. <view class='li-teach' wx:for='{{item.items}}' wx:key='index' data-url="pages/teacher_detail/teacher_detail" data-paras='{{({teacherId:item.teacherId})}}' bindtap="navigateTo">
  109. <image src='{{item.imgUrl?baseImgUrl+item.imgUrl:"../../assets/default_headicon1.png"}}' class='li-teach-img'></image>
  110. <view class='li-teach-items'>
  111. <view class='li-teach-items-top'>
  112. <text style='font-weight:bold'>{{item.name}}</text>
  113. <view class="li-teach-items-top-sub {{val1=='数学'?'li-blue':val1=='语文'?'li-red':'li-yellow'}}" wx:for='{{item.subject}}' wx:key='key1' wx:for-item='val1' wx:for-index='key1' wx:if='{{val1}}'>
  114. {{val1}}
  115. </view>
  116. </view>
  117. <view class='li-teach-items-down'>
  118. <view wx:for='{{item.teacherTypeList}}' wx:key='key' wx:for-item='val' wx:for-index='key' style='display:inline-block;margin-right:10rpx;'>
  119. {{val==2?'现场管理':val==3?'学科答疑':'作业标注'}}
  120. </view>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. </scroll-view>
  126. <view class='li-footer' data-url="pages/new_teacher/new_teacher" data-paras='{{({teacherId:item.teacherId})}}' bindtap="navigateTo">
  127. <image src='../../assets/jia_hao.png' class='li-footer-img'></image>
  128. <text>新建教师</text>
  129. </view>
  130. </view>
  131. <!-- 审核-->
  132. <view class='li-content' wx:if='{{navIdx==3}}' style="padding-top:1rpx">
  133. <view class='child-nav'>
  134. <view class='child-nav-items {{roleIdx==index?"child-nav-items-active":""}}' wx:for='{{roleList}}' wx:key='index' data-idx='{{index}}' bindtap='selectTeacher'>{{item}}</view>
  135. </view>
  136. <!-- 学生 -->
  137. <view class='li-review-items' wx:for='{{list}}' wx:key='index' wx:if='{{list.length>0&&roleIdx==0}}'>
  138. <view class="li-review" >
  139. <view class='li-content-items-class li-flex' style='margin:0' data-url="pages/change_information/change_information" data-paras='{{({isReview:1,...item})}}' bindtap="navigateTo">
  140. <image src="{{item.imgUrl?baseImgUrl+item.imgUrl:'../../assets/default_headicon2.png'}}" class='li-child-img'></image>
  141. <view style="margin-left:10rpx">
  142. <view>
  143. <text class='li-content-items-class-num'> {{item.childName}}</text>
  144. </view>
  145. <view>{{item.grade}}</view>
  146. </view>
  147. </view>
  148. <view class="li-review-btn">
  149. <view class="li-review-pass" data-xid="{{item.vipId}}" data-type="{{1}}" bindtap="refuseShow">通过</view>
  150. <view class="li-review-refuse" data-xid="{{item.vipId}}" data-type="{{2}}" bindtap="refuseShow">拒绝</view>
  151. </view>
  152. </view>
  153. </view>
  154. <!-- 老师 -->
  155. <view class='li-review-items' wx:for='{{teacherAuditList}}' wx:key='index' wx:if='{{teacherAuditList.length>0&&roleIdx==1}}'>
  156. <view class="li-review" >
  157. <view class='li-content-items-class li-flex' style='margin:0' data-url="pages/teacher_detail/teacher_detail" data-paras='{{({isReview:1,...item})}}' bindtap="navigateTo">
  158. <image src="{{item.imgUrl?baseImgUrl+item.imgUrl:'../../assets/default_headicon2.png'}}" class='li-child-img'></image>
  159. <view style="margin-left:10rpx">
  160. <view>
  161. <text class='li-content-items-class-num'> {{item.name}}</text>
  162. </view>
  163. <view>{{item.phone}}</view>
  164. </view>
  165. </view>
  166. <view class="li-review-btn">
  167. <view class="li-review-pass" data-xid="{{item.teacherId}}" data-type="{{1}}" bindtap="refuseShow">通过</view>
  168. <view class="li-review-refuse" data-xid="{{item.teacherId}}" data-type="{{2}}" bindtap="refuseShow">拒绝</view>
  169. </view>
  170. </view>
  171. </view>
  172. </view>
  173. <!-- 弹幕 -->
  174. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenModel}}'></view>
  175. <view class='model-class' wx:if='{{hiddenModel}}'>
  176. <view class='model-list'>
  177. <view class='model-list-class'>{{className}}</view>
  178. <view class='model-list-items' bindtap='renameShow' data-type='1'>
  179. <image src='../../assets/chong_min_ming.png' class='model-list-items-img'></image>
  180. <text>重命名</text>
  181. </view>
  182. <view class='model-list-items' bindtap='{{!isSky?"":"classShow"}}'>
  183. <image src='../../assets/delete.png' class='model-list-items-img'></image>
  184. <text>删除</text>
  185. <text class='model-list-items-tips' wx:if='{{!isSky}}'>(孩子和教师数为0时才能删除班级)</text>
  186. </view>
  187. </view>
  188. <view class='model-footer'>
  189. <view bindtap='allShowModel' bindtap='allShowModel'>取消</view>
  190. </view>
  191. </view>
  192. <!-- 重命名新建班级弹幕 -->
  193. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{renameModel}}'></view>
  194. <view class='model' wx:if='{{renameModel}}'>
  195. <view class='rename'>
  196. <view class='rename-name' wx:if='{{isRename}}'>重命名</view>
  197. <view class='rename-name' wx:if='{{!isRename}}'>新建班级</view>
  198. <view class='rename-input'>
  199. <input placeholder='' class='rename-input-items' wx:if='{{isRename}}' value='{{className}}' bindinput='inputCtl' data-type='className'></input>
  200. <input placeholder='请输入班级名称' class='rename-input-items' wx:if='{{!isRename}}' value='{{className}}' bindinput='inputCtl' data-type='className' ></input>
  201. <image src='../../assets/delete_input.png' class='rename-input-img' bindtap='deleteInput'></image>
  202. </view>
  203. <view class='rename-footer'>
  204. <view bindtap='allShowModel' bindtap='allShowModel'>取消</view>
  205. <view class='rename-footer-sure' bindtap='{{isRename?"sureRename":"sureCreateClass"}}'>确定</view>
  206. </view>
  207. </view>
  208. </view>
  209. <!-- 拒绝审核弹幕 -->
  210. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{refuseModel}}'></view>
  211. <view class='model' wx:if='{{refuseModel}}'>
  212. <view class='rename'>
  213. <view class='rename-name'>确定拒绝此{{roleIdx?'教师':'学生'}}进入校区吗?</view>
  214. <view class='rename-footer'>
  215. <view bindtap='allShowModel' bindtap='allShowModel'>取消</view>
  216. <view class='rename-footer-sure' bindtap='selectRefuse'>确定</view>
  217. </view>
  218. </view>
  219. </view>
  220. <!-- 删除班级弹幕 -->
  221. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{classModel}}'></view>
  222. <view class='model' wx:if='{{classModel}}'>
  223. <view class='rename'>
  224. <view class='rename-name' style='margin:92rpx 0;'>确定删除班级吗?</view>
  225. <view class='rename-footer'>
  226. <view bindtap='allShowModel' bindtap='allShowModel'>取消</view>
  227. <view class='rename-footer-sure' bindtap='sureDeleteClass'>确定</view>
  228. </view>
  229. </view>
  230. </view>
  231. <template is='nodata' wx:if='{{list.length==0&&navIdx==0}}' data='{{...nodata[navIdx]}}' ></template>
  232. <template is='nodata' wx:if='{{getList.length==0&&navIdx==1}}' data='{{...nodata[navIdx]}}' ></template>
  233. <template is='nodata' wx:if='{{list.length==0&&navIdx==2}}' data='{{...nodata[navIdx]}}' ></template>
  234. <template is='nodata' wx:if='{{list.length==0&&navIdx==3&&roleIdx==0}}' data='{{...nodata[navIdx]}}' ></template>
  235. <template is='nodata' wx:if='{{teacherAuditList.length==0&&roleIdx==1}}' data='{{...nodata[navIdx]}}'></template>
  236. </view>
  237. </view>
  238. </view>