123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <!--pages/child_list/child_list.wxml-->
- <import src="../../templates/nodata/nodata.wxml" />
- <import src="../../templates/loading/loading.wxml" />
- <view class='container'>
- <template is='loading-teacher' wx:if='{{!isLoaded}}'></template>
- <view class='wrapper' wx:else>
- <view class='child-nav' wx:if='{{!isAdd}}'>
- <view class='child-nav-items {{navIdx==index?"child-nav-items-active":""}}' wx:for='{{navList}}' wx:key='index' data-idx='{{index}}' bindtap='selectTeacher'>{{item}}</view>
- </view>
- <!-- 学生列表height:{{scrollHeight_}}; -->
- <view class='li' wx:if='{{navIdx==0}}'>
- <view class='li-order'>
- <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}}'>
- <view wx:for='{{list}}' wx:key='index'>
- <view class="list-letter" id="{{item.title}}">{{item.title}}</view>
- <view class='li-child' wx:for="{{item.items}}" wx:for-item="val" wx:for-index="key" wx:key='key'>
- <view class="li-child-all-items">
- <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>
- <view class='li-child-info' >
- <image src="{{val.imgUrl?baseImgUrl+val.imgUrl:'../../assets/default_headicon2.png'}}" class='li-child-img'></image>
- <view class='li-child-info-name li-child-items' >
- <text style='font-weight:bold; margin-right: 15rpx;'>{{val.childName}}</text>
- <image src='../../assets/huang_guan.png' class='li-tips' wx:if='{{val.serviceType==1||val.serviceType==4}}'></image>
- <image src='../../assets/hui_guan.png' class='li-tips' wx:if='{{val.serviceType==0}}'></image>
- <image src='../../assets/zuan_shi.png' class='li-tips' wx:if='{{val.serviceType==2}}'></image>
- <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>
- <view class='li-child-info-grades' style="color:{{val.className?'':'#FF6465'}}">{{val.className?val.className:'未分班'}}丨{{val.grade}}</view>
- </view>
- </view>
- </view>
- <view class="li-btn">
- <view class="li-btn-red" wx:if='{{val.endDate}}'>{{val.endDate}}到期</view>
- </view>
- </view>
- </view>
- </scroll-view>
- <!-- <view class="list-shortcut">
- <block wx:for="{{list}}" wx:key="index">
- <text class="list-shortcut-num {{currentIndex===index?'list-current':''}}" data-id="{{item.title}}" data-idx="{{index}}" bindtap='scrollToview'>{{item.title}}</text>
- </block>
- </view> -->
- </view>
- <view class='li-renew'>
- <view class="li-footer-cancel" bindtap="checkAllCtl">
- <text>全选</text>
- </view>
- <view class="li-footer-items">
- <view class="li-footer-item" wx:if='{{libService>0}}'>
- <view class="li-footer-item-text">
- <image src="../../assets/zuan_shi.png" class="li-footer-item-text-img"></image>
- <text class="li-footer-item-num">{{libService}}</text>
- </view>
- </view>
- <!-- <view class="li-footer-item" wx:if='{{platformService>0}}'>
- <text class="li-footer-item-num">{{platformService}}</text>
- <view class="li-footer-item-text">
- <image src="../../assets/huang_guan.png" class="li-footer-item-text-img"></image>
- <text>平台塾币</text>
- </view>
- </view> -->
- </view>
- <view class='li-class-grade-btn' data-url="add_batch_serve" data-method='{{({classId,selectStudentList,vipIdList})}}' bindtap="navigateCtl">确定({{checkNum}})</view>
- </view>
- </view>
- <!-- 老师 -->
- <view class='li li-order' wx:if='{{navIdx==1}}'>
- <view class='li-content-items' wx:for='{{classList}}' wx:key='index' wx:if='{{item.studentSum>0}}'>
- <view class="li-child-all-items">
- <image src='{{item.isCheck=="active"?"../../assets/xuan_zhong.png":"../../assets/gou.png"}}' class='li-content-items-select' data-index='{{index}}' bindtap='selectLiCtl'></image>
- <view class="li-child-info" data-url="pages/child_list/child_list" data-paras='{{({className:item.className,classId:item.classId})}}' bindtap="navigateTo">
- <image src='../../assets/class_one.png' class='li-content-items-logo'></image>
- <view class='li-content-items-class'>
- <view class='li-content-items-class-num'>{{item.className}}</view>
- <view>
- <text>学生: {{item.studentSum}}人</text>
- <text class='li-content-items-class'>教师:{{item.teacherSum}}人</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class='li-renew'>
- <view class="li-footer-cancel" bindtap="checkAllCtl">
- <text>全选</text>
- </view>
- <view class="li-footer-items">
- <view class="li-footer-item" wx:if='{{libService>0}}'>
-
- <view class="li-footer-item-text">
- <image src="../../assets/zuan_shi.png" class="li-footer-item-text-img"></image>
- <text class="li-footer-item-num">{{libService}}</text>
- </view>
- </view>
- <!-- <view class="li-footer-item" wx:if='{{platformService>0}}'>
- <text class="li-footer-item-num">{{platformService}}</text>
- <view class="li-footer-item-text">
- <image src="../../assets/huang_guan.png" class="li-footer-item-text-img"></image>
- <text>平台塾币</text>
- </view>
- </view> -->
- </view>
- <view class='li-class-grade-btn' data-url="add_batch_serve" data-method='{{({classId,classIdList})}}' bindtap="navigateCtl">确定({{classCheckNum}})</view>
- </view>
- </view>
-
- <template is='nodata' wx:if='{{list.length==0&&navIdx==0}}' data='{{...nodata[0]}}'></template>
- <template is='nodata' wx:if='{{teacherList.length==0&&navIdx==1}}' data='{{...nodata[1]}}'></template>
- </view>
- </view>
|