123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <view class="notSubmit" style="height:{{vh}}px">
- <van-tabs active="{{ active }}" bind:change="onChange" sticky="true" animated="true" line-height="1" line-width="300rpx" border="{{true}}" color="#1989fa">
- <van-tab title="未提交" class="titleActive" title-style="{{active==0?'font-size:28rpx;font-weight:600;background:#f8f9fb':''}}">
- <van-row style="height: {{vh-44}}px;">
- <van-col span="5">
- <van-sidebar active-key="{{ activeKey }}" bind:change="onChangeSidebar">
- <van-sidebar-item title="{{item.label}}" wx:for="{{subjectList}}" custom-class="{{activeKey==item.value?'item-style':''}}" />
- </van-sidebar>
- </van-col>
- <van-col span="18">
- <scroll-view scroll-y="{{true}}" bindscrolltolower="scrolltolower" style="height: {{vh-44}}px;margin-left: 5px;">
- <van-collapse value="{{ activeNames }}" bind:change="onChangeCollapse" wx:if="{{noWorkList.length>0}}" style="border-color: #333;">
- <van-collapse-item name="{{index}}" wx:for="{{noWorkList}}">
- <view slot="title">
- <view class="title">
- <view class="t-left">
- 第{{Time.getTime(item.createTime)}}期
- </view>
- <view class="t-right">
- {{item.subject}}
- </view>
- </view>
- </view>
- <studentCell item="{{item}}"></studentCell>
- </van-collapse-item>
- </van-collapse>
- <van-empty wx:else description="暂未发布新作业" />
- </scroll-view>
- </van-col>
- </van-row>
- </van-tab>
- <van-tab title="已提交" title-style="{{active==1?'font-size:28rpx;font-weight:600;background:#f8f9fb':''}}">
- <van-row>
- <van-col span="5">
- <van-sidebar active-key="{{ activeKey }}" bind:change="onChangeSidebar">
- <van-sidebar-item title="{{item.label}}" wx:for="{{subjectList}}" custom-class="{{activeKey==item.value?'item-style':''}}" />
- </van-sidebar>
- </van-col>
- <van-col span="18">
- <scroll-view scroll-y="{{true}}" bindscrolltolower="scrolltolowerOn" style="height: {{vh-44}}px;">
- <van-cell-group wx:if="{{workList.length>0}}">
- <van-cell center title="{{item.homeworkName}}" wx:for="{{workList}}" is-link label="发布时间:{{Time.getTime(item.createTime)}}" url="/student/pages/correcting/correcting?workId={{item.id}}" />
- </van-cell-group>
- <van-empty wx:else description="暂无已提交作业" />
- </scroll-view>
- </van-col>
- </van-row>
- <!-- <view class="submitted">
- <van-cell center title="{{item.homeworkName}}" wx:for="{{signWorkList}}" is-link label="发布时间:{{Time.getTime(item.createTime)}}" url="/student/pages/detail/detail?path={{item.homeworkPath}}&homeworkId={{item.homeworkId}}&studentId={{item.studentId}}" />
- </view> -->
- </van-tab>
- </van-tabs>
- </view>
- <wxs src="../../../utils/getTime.wxs" module="Time">
- </wxs>
|