add_teacher.wxml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <import src="../../templates/nodata/nodata.wxml" />
  2. <import src="../../templates/loading/loading.wxml" />
  3. <view class='container'>
  4. <template is='loading-teacher' wx:if='{{!isLoaded}}'></template>
  5. <view class='wrapper' wx:else>
  6. <!-- 老师 -->
  7. <view class='li-content li-order' >
  8. <scroll-view scroll-y style="height:{{scrollHeight_}}px;overflow: auto;" scroll-into-view="{{toView}}" enable-back-to-top bindscroll="viewScroll" scroll-with-animation scroll-top="{{scrollTop}}" wx:if='{{teacherList.length>0}}'>
  9. <view wx:for='{{teacherList}}' wx:key='index'>
  10. <view class="list-letter" id="{{item.title}}">{{item.title}}</view>
  11. <view class='li-teach' wx:for="{{item.items}}" wx:for-item="val" wx:for-index="key" wx:key='key'>
  12. <image src='{{val.isCheck=="active"?"../../assets/xuan_zhong.png":"../../assets/gou.png"}}' class='li-content-items-right-img li-add-teacher' data-index='{{index}}' data-key='{{key}}' bindtap='selectLiCtl'></image>
  13. <view data-url="pages/teacher_detail/teacher_detail" data-paras='{{({teacherId:val.teacherId})}}' bindtap="navigateTo" class="li-teach-all">
  14. <image src='{{val.imgUrl?baseImgUrl+val.imgUrl:"../../assets/default_headicon1.png"}}' class='li-teach-img'></image>
  15. <view class='li-teach-items'>
  16. <view class='li-teach-items-top'>
  17. <text style='font-weight:bold'>{{val.name}}</text>
  18. <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}}'>
  19. {{val1}}
  20. </view>
  21. </view>
  22. <view class='li-teach-items-down'>
  23. <view wx:for='{{val.teacherTypeList}}' wx:key='key' wx:for-item='val2' wx:for-index='key2' style='display:inline-block;margin-right:10rpx;'>
  24. {{val2==2?'现场管理':val2==3?'学科答疑':'作业标注'}}
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </scroll-view>
  32. <!-- <view class="list-shortcut" bindtouchmove="tap_drag" bindtouchend="tap_end" bindtouchstart="tap_start">
  33. <block wx:for="{{teacherList}}" wx:key="index" >
  34. <text class="list-shortcut-num {{currentIndex===index?'list-current':''}}" data-id="{{item.title}}" data-idx="{{index}}" bindtap='scrollToview'>{{item.title}}</text>
  35. </block>
  36. </view> -->
  37. <view class='li-class-grade' wx:if='{{teacherList.length>0}}'>
  38. <view></view>
  39. <view class='li-class-grade-btn' bindtap='addTeacherList'>确定({{checkNum}})</view>
  40. </view>
  41. </view>
  42. <template is='nodata' wx:if='{{teacherList.length==0}}' data='{{...nodata[0]}}'></template>
  43. </view>
  44. </view>