student_address_book.wxml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!--pages/student_address_book/student_address_book.wxml-->
  2. <import src="../../templates/footer_teacher/footer.wxml" />
  3. <import src="../../templates/nodata/nodata.wxml" />
  4. <import src="../../templates/loading/loading.wxml" />
  5. <view class='container'>
  6. <template is='loading-teacher' wx:if='{{!isLoaded}}'></template>
  7. <view class='wrapper pb' wx:else>
  8. <view class="log-list">
  9. <view class='search-container'>
  10. <view class='search-wrapper'>
  11. <image class='search-icon' src='../../assets/search.png'></image>
  12. <input type='text' class='search-input' placeholder='搜索学生名字' placeholder-class='input-placeholder' value='{{navList[navIndex]["studentName"]}}' bindblur='blurCtl' bindinput='inputCtl'></input>
  13. </view>
  14. </view>
  15. </view>
  16. <scroll-view scroll-y style="height:1024rpx;white-space:nowrap;" scroll-into-view="{{toView}}" enable-back-to-top bindscroll="viewScroll" scroll-with-animation scroll-top="{{scrollTop}}" wx:if='{{studentList.length>0}}'>
  17. <view id='list-group' class="list-group" wx:for="{{studentList}}" wx:key="index">
  18. <view class="title" id="{{item.title}}">{{item.title}}</view>
  19. <view wx:for="{{item.items}}" wx:for-item="val" wx:key="key" class='list-group-items' >
  20. <view class="list-group-item" data-url="pages/past_record/past_record" data-paras='{{({vipId:val.vipId})}}' bindtap="navigateTo">
  21. <view class='img-list'>
  22. <image class="icon" src="{{val.imgUrl? baseImgUrl + val.imgUrl : '../../assets/default_headicon.png'}}" lazy-load="true"></image>
  23. <image class='icon-tips' src='../../assets/dao.png' wx:if='{{val.checkedIn==1}}'></image>
  24. </view>
  25. <view class='icon-right'>
  26. <view class="log-item">
  27. <text class='words {{val.checkedIn==0?"words-gray":""}}'>{{val.studentName}}</text>
  28. <text class='log-item-noset' wx:if='{{val.exited==1}}'>已不在本馆</text>
  29. </view>
  30. <view >{{val.school}}-{{val.grade}}</view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </scroll-view>
  36. <!-- 侧边字母导航 -->
  37. <view class="list-shortcut">
  38. <block wx:for="{{studentList}}" wx:key="index">
  39. <text class="list-shortcut-num {{currentIndex===index?'current':''}}" data-id="{{item.title}}" data-idx="{{index}}" bindtap='scrollToview'>{{item.title}}</text>
  40. </block>
  41. </view>
  42. <view class='sign-in' data-url="pages/sign_in_out/sign_in_out" data-method='{{({vipId})}}' bindtap="navigateTo" wx:if='{{studentList.length>0}}'>
  43. <image src='../../assets/wei_zhi.png' class='sign-in-img'></image>
  44. <text>签到签离</text>
  45. </view>
  46. <!-- 固定在顶部的字母导航 -->
  47. <!-- <view class="list-fixed {{fixedTitle=='' ? 'hide':''}}" style="transform:translate3d(0,{{fixedTop}}px,0);">
  48. <view class="fixed-title">
  49. {{fixedTitle}}
  50. </view>
  51. </view> -->
  52. <template is='nodata' wx:if='{{studentList.length==0}}' data='{{...nodata.nodataObj}}'></template>
  53. </view>
  54. <template is='footer' data='{{...footerData}}'></template>
  55. </view>