lessonsList.wxml 1.3 KB

12345678910111213141516171819
  1. <view class="lessons-container">
  2. <view class="lessons-view">
  3. <view class="lessons-box" wx:for="{{list}}" wx:key="index">
  4. <view class="lessons-type">{{item.kindId == '1' ? '1v1':'集体'}}</view>
  5. <view class="lessons-title">{{item.classesName}}</view>
  6. <view wx:if="{{action=='1'}}" class="{{item.makeupId == null ? 'lessons-flag' : 'lessons-flag-ed'}}">{{item.makeupId == null ? '未':'已'}}补课</view>
  7. <view class="lessons-room"> {{item.roomName}}</view>
  8. <view class="lessons-teacher">授课老师:{{item.teacherName}}</view>
  9. <view class="lessons-date-box">
  10. <view class="lessons-beginDate">上课时间:{{item.beginTime}}</view>
  11. <view class="lessons-endDate" wx:if="{{action=='1' || action=='2'}}">请假时间:{{item.createdDate}}</view>
  12. </view>
  13. <view class="lessons-btn-box" wx:if="{{action == '1'}}">
  14. <view class="apply-btn" wx:if="{{item.makeupId == null}}" bindtap="toPages" data-url="/pages/targetList/targetList" data-id="{{item.attenceStudentId}}" data-action="1">申请补课</view>
  15. <view class="more-btn" wx:elif="{{item.makeupId != null}}" bindtap="toPages" data-url="/pages/lessonsDetail/lessonsDetail" data-id="{{item.attenceStudentId}}" >查看详情</view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>