12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <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='li'>
- <view class='li-search'>
- <view class='li-search-left'>
- <image src='../../assets/search.png' class='li-search-left-img'></image>
- <input placeholder='搜索学生姓名' class='li-search-left-input' placeholder-style='li-search-left-input-pla' value='{{searchKey}}' bindinput='inputCtl'></input>
- </view>
- <view class='li-search-right' bindtap='blurCtl'>搜索</view>
- </view>
- <view class='li-order'>
- <!-- <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}}'> -->
- <view wx:for='{{list}}' wx:key='index'>
- <!-- <view class="list-letter" id="{{item.title}}">{{item.title}}</view> -->
- <view class='li-child'>
- <image src='{{item.isCheck=="active"?"../../assets/xuan_zhong.png":"../../assets/gou.png"}}' class='li-content-items-right-img' data-index='{{index}}' bindtap='selectLiCtl'></image>
- <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">
- <image src="{{item.imgUrl?baseImgUrl+item.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;'>{{item.childName}}</text>
- <image src='../../assets/huang_guan.png' class='li-tips' wx:if='{{item.serviceType==1||item.serviceType==4}}'></image>
- <image src='../../assets/hui_guan.png' class='li-tips' wx:if='{{item.serviceType==0}}'></image>
- <image src='../../assets/zuan_shi.png' class='li-tips' wx:if='{{item.serviceType==2}}'></image>
- <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>
- <view class='li-child-info-grades'>{{item.grade}}</view>
- </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-class-grade'>
- <view data-url="pages/kids_information/kids_information" data-paras='{{({classId,className})}}' bindtap="navigateTo">
- <image src='../../assets/person_add.png' class='li-class-grade-img'></image>
- <text>新建学生</text>
- </view>
- <view class='li-class-grade-btn' bindtap='addStudent' wx:if='{{list.length>0}}'>确定({{checkNum}})</view>
- </view>
- </view>
- <template is='nodata' wx:if='{{list.length==0}}' data='{{...nodata[0]}}'></template>
- </view>
- </view>
|