select_class.wxml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!--pages/select_class/select_class.wxml-->
  2. <import src="../../templates/nodata/nodata.wxml" />
  3. <view class='container'>
  4. <view class='wrapper'>
  5. <view class='li-content li-order'>
  6. <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'>
  7. <view wx:for='{{list}}' wx:key='index' wx:if='{{list.length>0}}'>
  8. <view class="list-letter" id="{{item.title}}">{{item.title}}</view>
  9. <view class='li-content-items li-flex' wx:for="{{item.items}}" wx:for-item="val" wx:for-index="key" wx:key='key'>
  10. <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>
  11. <view>
  12. <image src='../../assets/class_one.png' class='li-content-items-img'></image>
  13. <view class='li-content-items-class'>
  14. <view class='li-content-items-class-num'>{{val.className}}</view>
  15. <view>
  16. <text>学生:{{val.studentSum}}人</text>
  17. <text class='li-content-items-class'>教师:{{val.teacherSum}}人</text>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </scroll-view>
  24. <view class="list-shortcut">
  25. <block wx:for="{{list}}" wx:key="index">
  26. <text class="list-shortcut-num {{currentIndex===index?'list-current':''}}" data-id="{{item.title}}" data-idx="{{index}}" bindtap='scrollToview'>{{item.title}}</text>
  27. </block>
  28. </view>
  29. </view>
  30. <view class='li-class-grade'>
  31. <view bindtap='cancel'>取消</view>
  32. <view class='li-class-grade-btn' bindtap='sureConfirmTeacherClass'>确定</view>
  33. </view>
  34. <template is='nodata' wx:if='{{list.length==0}}' data='{{...nodata.nodataObj}}'></template>
  35. </view>
  36. </view>