notSubmit.wxml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <view class="notSubmit" style="height:{{vh}}px">
  2. <van-tabs active="{{ active }}" bind:change="onChange" sticky="true" animated="true" line-height="1" line-width="300rpx" border="{{true}}" color="#1989fa">
  3. <van-tab title="未提交" class="titleActive" title-style="{{active==0?'font-size:28rpx;font-weight:600;background:#f8f9fb':''}}">
  4. <van-row style="height: {{vh-44}}px;">
  5. <van-col span="5">
  6. <van-sidebar active-key="{{ activeKey }}" bind:change="onChangeSidebar">
  7. <van-sidebar-item title="{{item.label}}" wx:for="{{subjectList}}" custom-class="{{activeKey==item.value?'item-style':''}}" />
  8. </van-sidebar>
  9. </van-col>
  10. <van-col span="18">
  11. <scroll-view scroll-y="{{true}}" bindscrolltolower="scrolltolower" style="height: {{vh-44}}px;margin-left: 5px;">
  12. <van-collapse value="{{ activeNames }}" bind:change="onChangeCollapse" wx:if="{{noWorkList.length>0}}" style="border-color: #333;">
  13. <van-collapse-item name="{{index}}" wx:for="{{noWorkList}}">
  14. <view slot="title">
  15. <view class="title">
  16. <view class="t-left">
  17. 第{{Time.getTime(item.createTime)}}期
  18. </view>
  19. <view class="t-right">
  20. {{item.subject}}
  21. </view>
  22. </view>
  23. </view>
  24. <studentCell item="{{item}}"></studentCell>
  25. </van-collapse-item>
  26. </van-collapse>
  27. <van-empty wx:else description="暂未发布新作业" />
  28. </scroll-view>
  29. </van-col>
  30. </van-row>
  31. </van-tab>
  32. <van-tab title="已提交" title-style="{{active==1?'font-size:28rpx;font-weight:600;background:#f8f9fb':''}}">
  33. <van-row>
  34. <van-col span="5">
  35. <van-sidebar active-key="{{ activeKey }}" bind:change="onChangeSidebar">
  36. <van-sidebar-item title="{{item.label}}" wx:for="{{subjectList}}" custom-class="{{activeKey==item.value?'item-style':''}}" />
  37. </van-sidebar>
  38. </van-col>
  39. <van-col span="18">
  40. <scroll-view scroll-y="{{true}}" bindscrolltolower="scrolltolowerOn" style="height: {{vh-44}}px;">
  41. <van-cell-group wx:if="{{workList.length>0}}">
  42. <van-cell center title="{{item.homeworkName}}" wx:for="{{workList}}" is-link label="发布时间:{{Time.getTime(item.createTime)}}" url="/student/pages/correcting/correcting?workId={{item.id}}" />
  43. </van-cell-group>
  44. <van-empty wx:else description="暂无已提交作业" />
  45. </scroll-view>
  46. </van-col>
  47. </van-row>
  48. <!-- <view class="submitted">
  49. <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}}" />
  50. </view> -->
  51. </van-tab>
  52. </van-tabs>
  53. </view>
  54. <wxs src="../../../utils/getTime.wxs" module="Time">
  55. </wxs>