taskDetails.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <template>
  2. <view class="page_body">
  3. <!-- 头部 -->
  4. <nav-bar height="96" title="任务详情" :onlyTitle="true" :showHeaderborder="true" @GoBack="GoBack"></nav-bar>
  5. <view class="page_content padding_btm">
  6. <view class="task_title">期中考试集体研讨会的通知期中考试集体研讨会的通知</view>
  7. <view class="task_class_collect">
  8. <view class="task_class_name">
  9. <text class="class_item">必修任务</text>
  10. <text class="class_item">课堂观摩</text>
  11. <text class="class_item">教务处</text>
  12. </view>
  13. <view class="task_collect">
  14. <view class="preview">
  15. <image class="img" src="@/static/image/icon/preview.png"></image>
  16. <text class="text">2761</text>
  17. </view>
  18. <view class="collect">
  19. <image class="img" src="@/static/image/icon/collect.png"></image>
  20. <text class="text">2761</text>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="task_time">
  25. <view class="time_day">
  26. <text class="time_item">2025-02-02</text>
  27. <text class="time_item">至</text>
  28. <text class="time_item">2025-02-02</text>
  29. <text class="time_item">剩余3天</text>
  30. </view>
  31. <view class="task_status finished">进行中</view>
  32. </view>
  33. <view class="task_desc">
  34. 课程简介:文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案文案
  35. <view><text>展开</text></view>
  36. </view>
  37. </view>
  38. <view class="row_gap"></view>
  39. <view class="page_content">
  40. sss
  41. </view>
  42. </view>
  43. </template>
  44. <script setup>
  45. import uniEasyinput from '@/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue';
  46. import navBar from '@/components/nav-bar.vue';
  47. import { selectCourseDetail,addQuestionAnswerData } from '@/reqApi/teacherStudy.js';
  48. import {
  49. onLoad
  50. } from '@dcloudio/uni-app';
  51. import {
  52. reactive,
  53. ref
  54. } from 'vue';
  55. const state = reactive({
  56. id: '', //任务id
  57. });
  58. onLoad((option) => {
  59. state.id = option.id;
  60. })
  61. //返回
  62. const GoBack = () => {
  63. uni.navigateBack({
  64. delta: 1
  65. });
  66. }
  67. </script>
  68. <style scoped lang="scss">
  69. .page_content {
  70. &.padding_btm{
  71. padding-bottom: 24rpx;
  72. .task_title{
  73. font-weight: 500;
  74. font-size: 32rpx;
  75. color: #333333;
  76. margin-top: 24rpx;
  77. }
  78. .task_class_collect{
  79. display: flex;
  80. align-items: flex-start;
  81. width: 100%;
  82. margin-top: 16rpx;
  83. .task_class_name{
  84. display: inline-flex;
  85. align-items: center;
  86. flex-wrap: wrap;
  87. flex: 1;
  88. gap: 16rpx;
  89. .class_item{
  90. font-weight: 400;
  91. font-size: 24rpx;
  92. color: #999999;
  93. }
  94. }
  95. .task_collect{
  96. display: inline-flex;
  97. gap: 40rpx;
  98. .preview,.collect{
  99. display: inline-flex;
  100. align-items: center;
  101. }
  102. .img{
  103. width: 24rpx;
  104. height: 24rpx;
  105. margin-right: 12rpx;
  106. }
  107. .text{
  108. font-weight: 400;
  109. font-size: 24rpx;
  110. color: #999999;
  111. }
  112. }
  113. }
  114. .task_time{
  115. display: flex;
  116. align-items: flex-start;
  117. width: 100%;
  118. margin-top: 16rpx;
  119. .time_day{
  120. display: inline-flex;
  121. align-items: center;
  122. flex-wrap: wrap;
  123. flex: 1;
  124. .time_item{
  125. font-weight: 400;
  126. font-size: 24rpx;
  127. line-height: 48rpx;
  128. color: #999999;
  129. &:nth-child(2){
  130. margin: 0 8rpx;
  131. }
  132. &:nth-child(4){
  133. color: #2E64FA;
  134. margin-left: 16rpx;
  135. }
  136. }
  137. }
  138. .task_status{
  139. display: inline-flex;
  140. align-items: center;
  141. height: 48rpx;
  142. padding: 0 12rpx;
  143. border-radius: 8rpx;
  144. font-weight: 400;
  145. font-size: 24rpx;
  146. &.going{
  147. background: rgba(43,198,68,0.1);
  148. color: #2BC644;
  149. }
  150. &.finished{
  151. background: rgba(245,108,108,0.1);
  152. color: #F56C6C;
  153. }
  154. }
  155. }
  156. .task_desc{
  157. margin-top: 24rpx;
  158. display: flex;
  159. width: 100%;
  160. padding-top: 24rpx;
  161. border-top: 2rpx solid #F3F3F3;
  162. font-weight: 400;
  163. font-size: 28rpx;
  164. color: #999999;
  165. line-height: 44rpx;
  166. max-height: 168rpx;
  167. box-sizing: border-box;
  168. overflow: hidden;
  169. transition: all 0.25s;
  170. display: -webkit-box;
  171. -webkit-line-clamp: 3;
  172. -webkit-box-orient: vertical;
  173. }
  174. }
  175. }
  176. .row_gap{
  177. background-color: #F8F9FD;
  178. width: 100%;
  179. height: 24rpx;
  180. }
  181. </style>