1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <view class="class-container" style="height: {{height}}px;overflow-y: {{overflow}}">
- <radio-group bindchange="radioChange">
- <view class="class-view" wx:for="{{list}}" wx:for-item="head" wx:key="index">
- <view class="class-date" wx:if="{{head.date}}">{{head.date}} {{head.week}}</view>
- <view class="class-list">
- <view class="class-box" wx:for="{{head.items}}" wx:key="index">
- <view class="class-name" style="{{!showTime ? 'width: 700rpx;' : ''}}"><text
- class="class-type">{{item.kindId == 1 ? '1v1':'集体'}}</text>{{item.classesName}}
- </view>
- <view class="class-time" wx:if="{{showTime}}">{{item.bt}} ~ {{item.et}}</view>
- <view class="get-box" wx:if="{{showRadio}}">
- <radio value="{{head.date}}#{{item.attendTeacherId}}#{{item.bt}}" checked="" color="#cc6031" />
- </view>
- <view class="class-detail-box">
- <view class="class-room">{{item.roomName}}</view>
- <view class="class-teacher">老师:{{item.teacherName}}</view>
- </view>
- <view wx:if="{{showLevel}}">
- <view class="class-teacher">等级:{{item.levelName ? item.levelName : '无'}}</view>
- </view>
- <view class="class-flag" wx:if="{{showFlag}}">
- <span wx:if="{{item.status == 0 || item.status == 11 || item.status == 12 || item.status == 4}}">{{item.isAttend == 1 ?'已' : '待'}}上课</span>
- <span wx:if="{{item.status == 2}}">已请假</span>
- <span wx:if="{{item.status == 3}}">已调出</span>
- <span wx:if="{{item.status == 11 || item.status == 12}}">加课</span>
- <span wx:if="{{item.status == 5}}">补课</span>
- </view>
- <view class="class-btn-box" wx:if="{{showBtn}}">
- <view class="add-btn class-btn" bindtap="toPages" data-url="/pages/targetList/targetList" data-id="{{item.id}}" data-action="{{action}}">申请{{actionName}}课</view>
- </view>
- <view class="class-btn-box" wx:if="{{item.leaveFlag}}">
- <view class="add-btn class-btn" bindtap="toPages" data-url="/pages/leaveDetail/leaveDetail" data-id="{{item.id}}" data-action="{{action}}">请假</view>
- </view>
- <view class="class-btn-box" wx:if="{{item.transferFlag}}">
- <view class="add-btn class-btn" bindtap="toPages" data-url="/pages/targetList/targetList" data-id="{{item.id}}" data-action="{{action}}">调课</view>
- </view>
- <view wx:if="{{showLeaveNum && (item.status == 0 || item.status == 2 || item.status == 4)}}" class="last-leave-num" bindtap="getLeaveNumList">本课程请假余额 {{item.leaveCount}} 次</view>
- </view>
-
- </view>
- </view>
- </radio-group>
- <view class="choose-bg" wx:if="{{bottom == 0}}" bindtap="hideChoose"></view>
- <view class="class-choose" animation="{{animation}}" style="bottom:{{bottom}}rpx">
- <view wx:if="{{action == '1' || action=='2' || action=='3'}}">
- <view class="title">待{{actionName}}课程</view>
- <view class="choose-list">
- <view class="choose-box">
- <view class="choose-title">{{source.week}}, {{source.date}}</view>
- <view class="choose-time">{{source.bt}} ~ {{source.et}}</view>
- <view class="choose-name">{{source.classesName}}</view>
- <view class="choose-room">{{source.roomName}}</view>
- <view class="choose-teacher">授课老师:{{source.teacherName}}</view>
- </view>
- </view>
- <view class="title">目标课程</view>
- <view class="choose-list">
- <view class="choose-box">
- <view class="choose-title">{{target.week}}, {{target.date}}</view>
- <view class="choose-time">{{target.bt}} ~ {{target.et}}</view>
- <view class="choose-name">{{target.classesName}}</view>
- <view class="choose-room">{{target.roomName}}</view>
- <view class="choose-teacher">授课老师:{{target.teacherName}}</view>
- </view>
- </view>
- <view class="choose-btn-view">
- <view class="choose-btn" bindtap="doSave">确认{{actionName}}课</view>
- </view>
- </view>
- </view>
- </view>
|