student_select_class.wxml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <import src="../../templates/nodata/nodata.wxml" />
  2. <view class='container'>
  3. <view class='wrapper'>
  4. <view class='li-content li-order'>
  5. <scroll-view scroll-y style="height:{{scrollHeight_}};overflow: scroll;" scroll-into-view="{{toView}}" enable-back-to-top bindscroll="viewScroll" scroll-with-animation scroll-top="{{scrollTop}}" wx:if='{{list.length>0}}' class='li-order'>
  6. <view wx:for='{{list}}' wx:key='index' wx:if='{{list.length>0}}'>
  7. <view class="list-letter" id="{{item.title}}">{{item.title}}</view>
  8. <view class='li-content-items li-flex' wx:for="{{item.items}}" wx:for-item="val" wx:for-index="key" wx:key='key'>
  9. <image src='{{val.isCheck=="active"?"../../assets/xuan_zhong.png":"../../assets/gou.png"}}' class='li-content-items-right-img li-margin' bindtap='slectClass' data-id='{{classId}}' data-idx='{{index}}' data-key='{{key}}'></image>
  10. <view>
  11. <image src='../../assets/class_one.png' class='li-content-items-img'></image>
  12. <view class='li-content-items-class'>
  13. <view class='li-content-items-class-num'>{{val.className}}</view>
  14. <view>
  15. <text>学生:{{val.studentSum}}人</text>
  16. <text class='li-content-items-class'>教师:{{val.teacherSum}}人</text>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </scroll-view>
  23. <view class="list-shortcut">
  24. <block wx:for="{{list}}" wx:key="index">
  25. <text class="list-shortcut-num {{currentIndex===index?'list-current':''}}" data-id="{{item.title}}" data-idx="{{index}}" bindtap='scrollToview'>{{item.title}}</text>
  26. </block>
  27. </view>
  28. </view>
  29. <view class='li-class-grade'>
  30. <view bindtap='cancel'>取消</view>
  31. <view class='li-class-grade-btn' bindtap='sureConfirmTeacherClass'>确定</view>
  32. </view>
  33. <template is='nodata' wx:if='{{list.length==0}}' data='{{...nodata.nodataObj}}'></template>
  34. </view>
  35. </view>