1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <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-content li-order' >
- <scroll-view scroll-y style="height:{{scrollHeight_}}px;overflow: auto;" scroll-into-view="{{toView}}" enable-back-to-top bindscroll="viewScroll" scroll-with-animation scroll-top="{{scrollTop}}" wx:if='{{teacherList.length>0}}'>
- <view wx:for='{{teacherList}}' wx:key='index'>
- <view class="list-letter" id="{{item.title}}">{{item.title}}</view>
- <view class='li-teach' wx:for="{{item.items}}" wx:for-item="val" wx:for-index="key" wx:key='key'>
- <image src='{{val.isCheck=="active"?"../../assets/xuan_zhong.png":"../../assets/gou.png"}}' class='li-content-items-right-img li-add-teacher' data-index='{{index}}' data-key='{{key}}' bindtap='selectLiCtl'></image>
- <view data-url="pages/teacher_detail/teacher_detail" data-paras='{{({teacherId:val.teacherId})}}' bindtap="navigateTo" class="li-teach-all">
- <image src='{{val.imgUrl?baseImgUrl+val.imgUrl:"../../assets/default_headicon1.png"}}' class='li-teach-img'></image>
- <view class='li-teach-items'>
- <view class='li-teach-items-top'>
- <text style='font-weight:bold'>{{val.name}}</text>
- <view class="li-teach-items-top-sub {{val1=='数学'?'li-blue':val1=='语文'?'li-red':'li-yellow'}}" wx:for='{{val.subject}}' wx:key='key1' wx:for-item='val1' wx:for-index='key1' wx:if='{{val1}}'>
- {{val1}}
- </view>
- </view>
- <view class='li-teach-items-down'>
- <view wx:for='{{val.teacherTypeList}}' wx:key='key' wx:for-item='val2' wx:for-index='key2' style='display:inline-block;margin-right:10rpx;'>
- {{val2==2?'现场管理':val2==3?'学科答疑':'作业标注'}}
- </view>
- </view>
- </view>
- </view>
-
- </view>
- </view>
- </scroll-view>
- <!-- <view class="list-shortcut" bindtouchmove="tap_drag" bindtouchend="tap_end" bindtouchstart="tap_start">
- <block wx:for="{{teacherList}}" 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 class='li-class-grade' wx:if='{{teacherList.length>0}}'>
- <view></view>
- <view class='li-class-grade-btn' bindtap='addTeacherList'>确定({{checkNum}})</view>
- </view>
- </view>
-
- <template is='nodata' wx:if='{{teacherList.length==0}}' data='{{...nodata[0]}}'></template>
- </view>
- </view>
|