batch_renew.wxml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!--pages/child_list/child_list.wxml-->
  2. <import src="../../templates/nodata/nodata.wxml" />
  3. <import src="../../templates/loading/loading.wxml" />
  4. <view class='container'>
  5. <template is='loading-teacher' wx:if='{{!isLoaded}}'></template>
  6. <view class='wrapper' wx:else>
  7. <view class='child-nav' wx:if='{{!isAdd}}'>
  8. <view class='child-nav-items {{navIdx==index?"child-nav-items-active":""}}' wx:for='{{navList}}' wx:key='index' data-idx='{{index}}' bindtap='selectTeacher'>{{item}}</view>
  9. </view>
  10. <!-- 学生列表height:{{scrollHeight_}}; -->
  11. <view class='li' wx:if='{{navIdx==0}}'>
  12. <view class='li-order'>
  13. <scroll-view scroll-y style="overflow: scroll;" scroll-into-view="{{toView}}" enable-back-to-top bindscroll="viewScroll" scroll-with-animation scroll-top="{{scrollTop}}" wx:if='{{list.length>0}}'>
  14. <view wx:for='{{list}}' wx:key='index'>
  15. <view class="list-letter" id="{{item.title}}">{{item.title}}</view>
  16. <view class='li-child' wx:for="{{item.items}}" wx:for-item="val" wx:for-index="key" wx:key='key'>
  17. <view class="li-child-all-items">
  18. <image src='{{val.isCheck=="active"?"../../assets/xuan_zhong.png":"../../assets/gou.png"}}' class='li-content-items-select' data-index='{{index}}' data-key="{{key}}" bindtap='selectLiCtl'></image>
  19. <view class='li-child-info' >
  20. <image src="{{val.imgUrl?baseImgUrl+val.imgUrl:'../../assets/default_headicon2.png'}}" class='li-child-img'></image>
  21. <view class='li-child-info-name li-child-items' >
  22. <text style='font-weight:bold; margin-right: 15rpx;'>{{val.childName}}</text>
  23. <image src='../../assets/huang_guan.png' class='li-tips' wx:if='{{val.serviceType==1||val.serviceType==4}}'></image>
  24. <image src='../../assets/hui_guan.png' class='li-tips' wx:if='{{val.serviceType==0}}'></image>
  25. <image src='../../assets/zuan_shi.png' class='li-tips' wx:if='{{val.serviceType==2}}'></image>
  26. <text style='color:{{val.serviceType==0?"#8489A3":val.serviceType==999?"#FF6465":"#E59B36"}};font-size:22rpx;'>{{val.serviceType==0?'当前无服务':val.serviceType==1?'平台服务(家长购买)':val.serviceType==2?'校区服务':val.serviceType==4?'平台服务(校区购买)':val.serviceType==5?'批改服务':'内部用户'}}</text>
  27. <view class='li-child-info-grades' style="color:{{val.className?'':'#FF6465'}}">{{val.className?val.className:'未分班'}}丨{{val.grade}}</view>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="li-btn">
  32. <view class="li-btn-red" wx:if='{{val.endDate}}'>{{val.endDate}}到期</view>
  33. </view>
  34. </view>
  35. </view>
  36. </scroll-view>
  37. <!-- <view class="list-shortcut">
  38. <block wx:for="{{list}}" wx:key="index">
  39. <text class="list-shortcut-num {{currentIndex===index?'list-current':''}}" data-id="{{item.title}}" data-idx="{{index}}" bindtap='scrollToview'>{{item.title}}</text>
  40. </block>
  41. </view> -->
  42. </view>
  43. <view class='li-renew'>
  44. <view class="li-footer-cancel" bindtap="checkAllCtl">
  45. <text>全选</text>
  46. </view>
  47. <view class="li-footer-items">
  48. <view class="li-footer-item" wx:if='{{libService>0}}'>
  49. <view class="li-footer-item-text">
  50. <image src="../../assets/zuan_shi.png" class="li-footer-item-text-img"></image>
  51. <text class="li-footer-item-num">{{libService}}</text>
  52. </view>
  53. </view>
  54. <!-- <view class="li-footer-item" wx:if='{{platformService>0}}'>
  55. <text class="li-footer-item-num">{{platformService}}</text>
  56. <view class="li-footer-item-text">
  57. <image src="../../assets/huang_guan.png" class="li-footer-item-text-img"></image>
  58. <text>平台塾币</text>
  59. </view>
  60. </view> -->
  61. </view>
  62. <view class='li-class-grade-btn' data-url="add_batch_serve" data-method='{{({classId,selectStudentList,vipIdList})}}' bindtap="navigateCtl">确定({{checkNum}})</view>
  63. </view>
  64. </view>
  65. <!-- 老师 -->
  66. <view class='li li-order' wx:if='{{navIdx==1}}'>
  67. <view class='li-content-items' wx:for='{{classList}}' wx:key='index' wx:if='{{item.studentSum>0}}'>
  68. <view class="li-child-all-items">
  69. <image src='{{item.isCheck=="active"?"../../assets/xuan_zhong.png":"../../assets/gou.png"}}' class='li-content-items-select' data-index='{{index}}' bindtap='selectLiCtl'></image>
  70. <view class="li-child-info" data-url="pages/child_list/child_list" data-paras='{{({className:item.className,classId:item.classId})}}' bindtap="navigateTo">
  71. <image src='../../assets/class_one.png' class='li-content-items-logo'></image>
  72. <view class='li-content-items-class'>
  73. <view class='li-content-items-class-num'>{{item.className}}</view>
  74. <view>
  75. <text>学生: {{item.studentSum}}人</text>
  76. <text class='li-content-items-class'>教师:{{item.teacherSum}}人</text>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <view class='li-renew'>
  83. <view class="li-footer-cancel" bindtap="checkAllCtl">
  84. <text>全选</text>
  85. </view>
  86. <view class="li-footer-items">
  87. <view class="li-footer-item" wx:if='{{libService>0}}'>
  88. <view class="li-footer-item-text">
  89. <image src="../../assets/zuan_shi.png" class="li-footer-item-text-img"></image>
  90. <text class="li-footer-item-num">{{libService}}</text>
  91. </view>
  92. </view>
  93. <!-- <view class="li-footer-item" wx:if='{{platformService>0}}'>
  94. <text class="li-footer-item-num">{{platformService}}</text>
  95. <view class="li-footer-item-text">
  96. <image src="../../assets/huang_guan.png" class="li-footer-item-text-img"></image>
  97. <text>平台塾币</text>
  98. </view>
  99. </view> -->
  100. </view>
  101. <view class='li-class-grade-btn' data-url="add_batch_serve" data-method='{{({classId,classIdList})}}' bindtap="navigateCtl">确定({{classCheckNum}})</view>
  102. </view>
  103. </view>
  104. <template is='nodata' wx:if='{{list.length==0&&navIdx==0}}' data='{{...nodata[0]}}'></template>
  105. <template is='nodata' wx:if='{{teacherList.length==0&&navIdx==1}}' data='{{...nodata[1]}}'></template>
  106. </view>
  107. </view>