teacher_detail.wxml 5.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!--pages/teacher_detail/teacher_detail.wxml-->
  2. <view class='container'>
  3. <view class='wrapper'>
  4. <view class='ul'>
  5. <view class='ul-head'>
  6. <view class='ul-head-info'>
  7. <image src='{{imgUrl?baseImgUrl+imgUrl:"../../assets/default_headicon1.png"}}' class='ul-head-info-img'></image>
  8. <view class='ul-head-info-name'>
  9. <view>{{name}}</view>
  10. <view class='ul-head-info-phone'>{{phone}}</view>
  11. </view>
  12. </view>
  13. <image src='../../assets/delete.png' class='ul-head-img' bindtap='teacherShowModel' wx:if='{{isReview==0}}'></image>
  14. </view>
  15. <view class='ul-class'>
  16. <text class='ul-class-sub'>{{isReview?'学科':'选择学科'}}</text>
  17. <text class='ul-class-item {{item.status=="active"?"li-select-acrive":""}}' wx:for='{{subList}}' wx:key='index' data-sidx='{{index}}' bindtap='{{isReview?"":"selectSubject"}}'>{{item.text}}</text>
  18. </view>
  19. <view class='ul-class'>
  20. <text class='ul-class-sub'>{{isReview?'模块':'选择模块'}}</text>
  21. <text class='ul-class-item-info {{item.status=="active"?"li-select-acrive":""}}' wx:for='{{idList}}' wx:key='index' data-xidx='{{index}}' bindtap='{{isReview?"":"selectId"}}'>{{item.text}}</text>
  22. </view>
  23. <view class='li-content li-order' wx:if='{{isReview==0}}'>
  24. <view class='li-content-title'>所在班级</view>
  25. <view class='li-content-items' wx:for='{{list}}' wx:key='index' wx:if='{{list.length>0}}'>
  26. <image src='../../assets/class_one.png' class='li-content-items-img'></image>
  27. <view class='li-content-items-class'>
  28. <view class='li-content-items-class-num'>{{item.className}}</view>
  29. <view>学生:{{item.studentSum}}人</view>
  30. </view>
  31. <view class='li-content-items-class'>教师:{{item.teacherSum}}人</view>
  32. <view class='li-content-items-right' bindtap='classsShowModel' data-id='{{item.classId}}'>
  33. <image src='../../assets/yi_chu.png' class='li-content-items-right-img' style='width:44rpx;height:44rpx;'></image>
  34. </view>
  35. </view>
  36. <view class='li-noData' wx:if='{{list.length==0}}'>
  37. <image src='../../assets/deng_lv_logo.png' class='li-noData-img'></image>
  38. <view>此教师没有所属班级</view>
  39. <view class='li-noData-btn' data-url="pages/select_class/select_class" data-paras='{{({teacherId})}}' bindtap="navigateTo">去添加</view>
  40. </view>
  41. </view>
  42. <view class='li-footer' wx:if='{{list.length>0&&isReview==0}}' data-url="pages/select_class/select_class" data-paras='{{({teacherId})}}' bindtap="navigateTo">
  43. <image src='../../assets/info.png' class='li-footer-image'></image>
  44. <text>新增班级</text>
  45. </view>
  46. <view class='li-class-grade li-margin' wx:if='{{isReview==1}}'>
  47. <view class='li-class-grade-green' data-xid="{{teacherId}}" data-type="{{1}}" bindtap="refuseShow">通过</view>
  48. <view class="li-class-grade-btn" data-xid="{{teacherId}}" data-type="{{2}}" bindtap="refuseShow">拒绝</view>
  49. </view>
  50. <!-- 删除老师弹幕 -->
  51. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{teacherModel}}'></view>
  52. <view class='model' wx:if='{{teacherModel}}'>
  53. <view class='rename'>
  54. <view class='rename-name' style='margin:92rpx 0;'>确定将此教师从校区中移除吗?教师账号将被注销</view>
  55. <view class='rename-footer'>
  56. <view bindtap='allShowModel'>取消</view>
  57. <view class='rename-footer-sure' bindtap='sureDeleteTeacher'>确定</view>
  58. </view>
  59. </view>
  60. </view>
  61. <!-- 删除班级弹幕 -->
  62. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{classModel}}'></view>
  63. <view class='model' wx:if='{{classModel}}'>
  64. <view class='rename'>
  65. <view class='rename-name' style='margin:92rpx 0;'>确定将教师从此班级中移除吗?</view>
  66. <view class='rename-footer'>
  67. <view bindtap='allShowModel'>取消</view>
  68. <view class='rename-footer-sure' bindtap='sureDetachTeacher'>确定</view>
  69. </view>
  70. </view>
  71. </view>
  72. <!-- 拒绝审核弹幕 -->
  73. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{refuseModel}}'></view>
  74. <view class='model' wx:if='{{refuseModel}}'>
  75. <view class='rename'>
  76. <view class='rename-name'>确定拒绝此教师进入校区吗?</view>
  77. <view class='rename-footer'>
  78. <view bindtap='allShowModel' bindtap='allShowModel'>取消</view>
  79. <view class='rename-footer-sure' bindtap='selectRefuse'>确定</view>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>