1 |
- <view class="page"><cu-custom vue-id="ce5d3348-1" isBack="{{false}}" bind:__l="__l"></cu-custom><view class="header" style="{{'top:'+(topHeader+'px')+';'}}"><view class="header-title header-switch"><view data-event-opts="{{[['tap',[['changeTab',['schedule']]]]]}}" class="{{['header-title-main',(type==='schedule')?'cur':'']}}" bindtap="__e"><view class="margin-bottom-xs">日程表</view><view class="point"></view></view><view data-event-opts="{{[['tap',[['changeTab',['mine']]]]]}}" class="{{['header-title-main margin-left-lg',(type==='mine')?'cur':'']}}" bindtap="__e"><view class="margin-bottom-xs">我的</view><view class="point"></view></view></view><block wx:if="{{type==='mine'}}"><view style="width:120px;"><swiper-tab vue-id="ce5d3348-2" menuList="{{menuList}}" activeTab="{{currentIndex}}" data-event-opts="{{[['^changeTab',[['swipe']]]]}}" bind:changeTab="__e" bind:__l="__l"></swiper-tab></view></block></view><block wx:if="{{type==='schedule'}}"><view><scroll-view style="{{'margin-top:'+('56px')+';'+('height:'+('calc(100vh - 114px - '+topHeader+'px)')+';')}}" scroll-y="true"><uni-calendar class="uni-calendar--hook" style="padding-top:100px;" vue-id="ce5d3348-3" selected="{{info.selected}}" showMonth="{{false}}" data-event-opts="{{[['^change',[['changeDay']]],['^monthSwitch',[['monthSwitch']]]]}}" bind:change="__e" bind:monthSwitch="__e" bind:__l="__l"></uni-calendar><view class="cu-card margin-top-xs padding-xs"><view class="cu-item day-info"><view class="day-title flex justify-between solid-bottom padding text-lg"><view>{{"应到上课节数:"+present.be_section_num+"节"}}</view><view>{{"实际上课节数: "+present.actual_section_num+"节"}}</view></view><view class="day-chart flex justify-between padding"><block wx:for="{{attendance}}" wx:for-item="chart" wx:for-index="key" wx:key="key"><view class="flex-sub"><canvas style="margin:0 auto;width:100%;height:80px;" canvas-id="{{key}}"></canvas><view style="margin-left:18px;">{{chart.title}}</view></view></block></view></view></view><view class="list margin-top-xs"><block wx:for="{{classList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="cu-card margin-top margin-bottom shadow"><block wx:for="{{item.mark}}" wx:for-item="mark" wx:for-index="i" wx:key="i"><view class="cu-item"><view class="card-header flex justify-end solid-bottom"><view class="text-student course-status">{{''+mark.status_desc+''}}</view></view><view class="card flex"><view class="card-left"><image class="card-image _img" mode="scaleToFill" src="{{mark.avatar}}" alt></image></view><view class="card-right margin-left-sm"><view class="card-title">{{mark.course_name}}</view><view class="card-item margin-top-xs"><text class="card-text">{{mark.start_at}}</text></view><view class="card-item margin-top-xs"><text class="card-text">{{mark.end_at}}</text></view><view class="card-item margin-top-xs"><button data-event-opts="{{[['tap',[['classOperation',['$0'],[[['classList','',index],['mark','',i,'class_plan_id']]]]]]]}}" class="cu-btn round line-cyan button-hover" bindtap="__e">{{''+(mark.status==-1?'查看':'去上课')+''}}</button><button data-event-opts="{{[['tap',[['askLeave',['$0'],[[['classList','',index],['mark','',i,'class_plan_id']]]]]]]}}" class="cu-btn round line-red button-hover margin-left" bindtap="__e">去请假</button></view></view></view></view></block></view></block></view></scroll-view></view></block><block wx:if="{{type==='mine'}}"><view><scroll-view class="scroll-main" style="{{'height:'+('calc(100vh - 114px - '+topHeader+'px)')+';'}}" scroll-y="true" data-event-opts="{{[['scrolltolower',[['loadMore',['$event']]]]]}}" bindscrolltolower="__e"><view class="list"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="cu-card margin-top margin-bottom shadow"><view class="cu-item"><view class="card-header flex justify-between solid-bottom"><block wx:if="{{item.day}}"><view>{{item.day}}</view></block><block wx:if="{{item.status}}"><view class="text-student course-status">{{''+item.status+''}}</view></block><block wx:if="{{currentIndex===1}}"><view class="text-student course-status">已完结</view></block></view><view class="card flex"><view class="card-left"><image class="card-image _img" mode="scaleToFill" src="{{item.image}}" alt></image></view><view class="card-right margin-left-sm"><view class="card-title">{{item.attend_name}}</view><view class="card-item margin-top-xs"><text class="card-label">机构:</text><text class="card-text">{{item.agency_name||'-'}}</text></view><view class="card-item margin-top-xs"><text class="card-label">老师:</text><text class="card-text">{{item.teacher||'-'}}</text></view></view></view></view></view></block></view></scroll-view></view></block><mp-tabbar vue-id="ce5d3348-4" outerSelected="{{1}}" bind:__l="__l"></mp-tabbar></view>
|