add_student.wxml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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'>
  8. <view class='li-search'>
  9. <view class='li-search-left'>
  10. <image src='../../assets/search.png' class='li-search-left-img'></image>
  11. <input placeholder='搜索学生姓名' class='li-search-left-input' placeholder-style='li-search-left-input-pla' value='{{searchKey}}' bindinput='inputCtl'></input>
  12. </view>
  13. <view class='li-search-right' bindtap='blurCtl'>搜索</view>
  14. </view>
  15. <view class='li-order'>
  16. <!-- <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}}'> -->
  17. <view wx:for='{{list}}' wx:key='index'>
  18. <!-- <view class="list-letter" id="{{item.title}}">{{item.title}}</view> -->
  19. <view class='li-child'>
  20. <image src='{{item.isCheck=="active"?"../../assets/xuan_zhong.png":"../../assets/gou.png"}}' class='li-content-items-right-img' data-index='{{index}}' bindtap='selectLiCtl'></image>
  21. <view class='li-child-info' data-url="pages/past_record/past_record" data-paras='{{({vipId:item.vipId,childName:item.childName,imgUrl:item.imgUrl,grade:item.grade,serviceType:item.serviceType,className:item.className,phone:item.phone})}}' bindtap="navigateTo">
  22. <image src="{{item.imgUrl?baseImgUrl+item.imgUrl:'../../assets/default_headicon2.png'}}" class='li-child-img'></image>
  23. <view class='li-child-info-name li-child-items' >
  24. <text style='font-weight:bold; margin-right: 15rpx;'>{{item.childName}}</text>
  25. <image src='../../assets/huang_guan.png' class='li-tips' wx:if='{{item.serviceType==1||item.serviceType==4}}'></image>
  26. <image src='../../assets/hui_guan.png' class='li-tips' wx:if='{{item.serviceType==0}}'></image>
  27. <image src='../../assets/zuan_shi.png' class='li-tips' wx:if='{{item.serviceType==2}}'></image>
  28. <text style='color:{{item.serviceType==0?"#8489A3":item.serviceType==999?"#FF6465":"#E59B36"}};font-size:22rpx;'>{{item.serviceType==0?'当前无服务':item.serviceType==1?'平台服务(家长购买)':item.serviceType==2?'校区服务':item.serviceType==4?'平台服务(校区购买)':item.serviceType==5?'批改服务':'内部用户'}}</text>
  29. <view class='li-child-info-grades'>{{item.grade}}</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. <!-- </scroll-view> -->
  35. <!-- <view class="list-shortcut">
  36. <block wx:for="{{list}}" wx:key="index">
  37. <text class="list-shortcut-num {{currentIndex===index?'list-current':''}}" data-id="{{item.title}}" data-idx="{{index}}" bindtap='scrollToview'>{{item.title}}</text>
  38. </block>
  39. </view> -->
  40. </view>
  41. <view class='li-class-grade'>
  42. <view data-url="pages/kids_information/kids_information" data-paras='{{({classId,className})}}' bindtap="navigateTo">
  43. <image src='../../assets/person_add.png' class='li-class-grade-img'></image>
  44. <text>新建学生</text>
  45. </view>
  46. <view class='li-class-grade-btn' bindtap='addStudent' wx:if='{{list.length>0}}'>确定({{checkNum}})</view>
  47. </view>
  48. </view>
  49. <template is='nodata' wx:if='{{list.length==0}}' data='{{...nodata[0]}}'></template>
  50. </view>
  51. </view>