taskDetails.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705
  1. <template>
  2. <view class="page_body">
  3. <!-- 头部 -->
  4. <nav-bar height="96" title="任务详情" :onlyTitle="true" :showHeaderborder="true" @GoBack="GoBack"></nav-bar>
  5. <!-- 吸顶 -->
  6. <uv-sticky style="top:98rpx">
  7. <view class="search_tabs" v-if="state.isSticky">
  8. <!-- 搜索框 -->
  9. <uni-easyinput class="search_box" v-model="state.searchWord" trim="all" :styles="state.searchInputStyles"
  10. :placeholderStyle="state.searchInputPlaceholderStyle" placeholder="请输入关键字搜索" @input="HandleSearchInput">
  11. <template #left>
  12. <image src="/static/image/overview/search.png" class="search_icon"></image>
  13. </template>
  14. </uni-easyinput>
  15. <scroll-view class="scroll_tabs" scroll-x="true" scroll-left="0" :show-scrollbar="false">
  16. <view :class="['tab_item',{'selected':item.value==state.tabsSelected}]" v-for="item in state.tabList"
  17. :key="item.value" @click="SelectTabsValue(item.value)">
  18. {{item.label}}
  19. </view>
  20. </scroll-view>
  21. </view>
  22. </uv-sticky>
  23. <view class="scroll_view_box">
  24. <scroll-view
  25. class="scroll_view_y"
  26. :scroll-top="state.scrollTop"
  27. scroll-y="true"
  28. :refresher-enabled="false"
  29. :enable-back-to-top="true"
  30. :show-scrollbar="false"
  31. :scroll-with-animation="true"
  32. refresher-default-style="none"
  33. refresher-background="#F8F9FD"
  34. :refresher-triggered="state.isRefreshing"
  35. @scrolltolower="OnLoadMore"
  36. @refresherrefresh="OnRefresh"
  37. @scroll="OnScroll">
  38. <view class="refresh_loading" v-if="state.isRefreshing"><uni-load-more status="loading" /></view>
  39. <view class="page_content padding_btm">
  40. <view class="task_title">{{state?.details?.courseName}}</view>
  41. <view class="task_class_collect">
  42. <view class="task_class_name">
  43. <text class="class_item">{{state?.details?.courseType===0?'必修任务':'自主研修'}}</text>
  44. <text class="class_item"
  45. v-if="state?.details?.teachCourseTypeName">{{state?.details?.teachCourseTypeName}}</text>
  46. <text class="class_item"
  47. v-if="state?.details?.teachCourseTypeClassName">{{state?.details?.teachCourseTypeClassName}}</text>
  48. <text class="class_item" v-if="state?.details?.createdBy">{{state?.details?.createdBy}}</text>
  49. </view>
  50. <view class="task_collect">
  51. <view class="preview">
  52. <image class="img" src="@/static/image/icon/preview.png"></image>
  53. <text class="text">{{state?.details?.watchCount || 0}}</text>
  54. </view>
  55. <view class="collect">
  56. <image class="img" src="@/static/image/icon/collect.png"></image>
  57. <text class="text">{{state?.details?.followCount || 0}}</text>
  58. </view>
  59. </view>
  60. </view>
  61. <view class="task_time">
  62. <view class="time_day">
  63. <text class="time_item">{{state?.details?.courseStartDatetime?.split(' ')?.[0]}}</text>
  64. <template v-if="state?.details?.courseType===0">
  65. <text class="time_item">至</text>
  66. <text class="time_item">{{state?.details?.courseEndDatetime?.split(' ')?.[0]}}</text>
  67. </template>
  68. <text class="time_item"
  69. v-if="state?.details?.courseType===0 && state?.details?.courseStatus!=2">剩余{{state?.details?.remainingTime}}</text>
  70. </view>
  71. <view
  72. v-if="state?.details?.courseType===0 || (state?.details?.courseStatus===0 || state?.details?.courseStatus===2)"
  73. :class="['task_status', {'going':state?.details?.courseStatus===0,'finished':state?.details?.courseStatus===2}]">
  74. {{state?.details?.courseStatus===0 ? '进行中' : '已结束'}}
  75. </view>
  76. </view>
  77. <view :class="['task_desc',{'over':!state.isExpand}]">
  78. 课程简介:{{state?.details?.courseContent}}
  79. </view>
  80. <view class="task_desc_all">
  81. 课程简介:{{state?.details?.courseContent}}
  82. </view>
  83. <view class="expand_btn" v-if="state.showExpandBtn" @click="toggleExpand"><text
  84. class="expand_text">{{!state.isExpand?'展开':'收起'}}</text><uni-icons class="expand_icon"
  85. :type="!state.isExpand?'down':'up'"></uni-icons></view>
  86. </view>
  87. <view class="row_gap"></view>
  88. <!-- 吸顶 -->
  89. <!-- <uv-sticky style="top:98rpx"> -->
  90. <view class="search_tabs">
  91. <!-- 搜索框 -->
  92. <uni-easyinput class="search_box" v-model="state.searchWord" trim="all" :styles="state.searchInputStyles"
  93. :placeholderStyle="state.searchInputPlaceholderStyle" placeholder="请输入关键字搜索" @input="HandleSearchInput">
  94. <template #left>
  95. <image src="/static/image/overview/search.png" class="search_icon"></image>
  96. </template>
  97. </uni-easyinput>
  98. <scroll-view class="scroll_tabs" scroll-x="true" scroll-left="0" :show-scrollbar="false">
  99. <view :class="['tab_item',{'selected':item.value==state.tabsSelected}]" v-for="item in state.tabList"
  100. :key="item.value" @click="SelectTabsValue(item.value)">
  101. {{item.label}}
  102. </view>
  103. </scroll-view>
  104. </view>
  105. <!-- </uv-sticky> -->
  106. <view class="page_content page_content_data">
  107. <view class="total">
  108. <template v-if="state?.details?.courseType===0">
  109. <template v-if="state.tabsSelected==''">共 {{state?.details?.learnCount || 0}} 人</template>
  110. <template v-else-if="state.tabsSelected=='3'">共 {{state?.details?.learnUnOverCount || 0}}
  111. 人</template>
  112. <template v-else>共 {{state?.details?.learnFinishCount || 0}} 人</template>
  113. </template>
  114. <template v-else>
  115. <template v-if="state.tabsSelected=='4'">共 {{state?.details?.learnFinishCount || 0}}
  116. 人</template>
  117. <template v-else>共 {{state?.details?.learnUnOverCount || 0}} 人</template>
  118. </template>
  119. </view>
  120. <view class="list_item" v-for="item in state.tabListData" :Key="item.teacherId">
  121. <view class="created_progress_status">
  122. <text class="created_by">{{item.teacherName}}</text>
  123. <view class="item_progress">
  124. <view class="progress_bar">
  125. <view class="bar_width" :style="{'width': `${item.progress.replace(/%/g, '')}%`}">
  126. </view>
  127. </view>
  128. <view class="progress_label">{{`${item.progress.replace(/%/g, '') || '0'}`}}%</view>
  129. </view>
  130. <view
  131. :class="['item_status',{'await':item.learnStatus == 1 || item.learnStatus == 3,'finish':item.learnStatus == 4}]"
  132. v-if="state.courseType==='0' || (state.courseType==='1' && state.tabsSelected =='4')">
  133. {{item.learnStatus == 1 || item.learnStatus == 3 ?'待完成':'已完成'}}
  134. </view>
  135. </view>
  136. <view class="item_time"
  137. v-if="(item.learnStartDatetime && item.learnStartDatetime!='-') || (item.learnEndDatetime && item.learnEndDatetime!='-')">
  138. <text class="time"
  139. v-if="item.learnStartDatetime && item.learnStartDatetime!='-'">开始时间:{{item.learnStartDatetime}}</text>
  140. <text class="time"
  141. v-if="item.learnEndDatetime && item.learnEndDatetime!='-'">结束时间:{{item.learnEndDatetime}}</text>
  142. </view>
  143. </view>
  144. <view class="no_data" v-if="!state.isLoading && state.tabListData.length == 0">
  145. <image class="no_data_img" src="@/static/image/bg/no_data.png"></image>
  146. <text class="no_data_text">暂无数据</text>
  147. </view>
  148. </view>
  149. <uni-load-more v-if="state.tabListData.length > 0" :status="state.loadStatus" />
  150. </scroll-view>
  151. </view>
  152. </view>
  153. </template>
  154. <script setup>
  155. import uniEasyinput from '@/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue';
  156. import uniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue';
  157. import uvSticky from '@/uni_modules/uv-sticky/components/uv-sticky/uv-sticky.vue'; //吸顶
  158. import navBar from '@/components/nav-bar.vue';
  159. import {
  160. queryMinitorDetailData
  161. } from '@/reqApi/teacherStudy.js';
  162. import {
  163. onLoad
  164. } from '@dcloudio/uni-app';
  165. import {
  166. reactive,
  167. ref,
  168. nextTick,
  169. getCurrentInstance,
  170. onMounted
  171. } from 'vue';
  172. const state = reactive({
  173. id: '', //任务id
  174. courseType: '', //研修场景
  175. searchWord: '', //搜索关键词
  176. searchInputStyles: { //搜素框样式
  177. borderColor: '#DCDFE6',
  178. color: '#333333'
  179. },
  180. searchInputPlaceholderStyle: 'color: #C0C4CC;fontSize: 28rpx', //搜素框样式
  181. tabsSelected: '', //默认选中tab值
  182. tabList: [], //tab列表
  183. mustTabList: [{
  184. label: '全部',
  185. value: ''
  186. }, {
  187. label: '待完成',
  188. value: '3'
  189. }, {
  190. label: '已完成',
  191. value: '4'
  192. }], //必修任务
  193. selfTabList: [{
  194. label: '已完成',
  195. value: '4'
  196. }, {
  197. label: '学习中',
  198. value: '3'
  199. }], //自主研修
  200. showExpandBtn: false, //是否显示展开按钮
  201. isExpand: false, //是否展开
  202. pageSize: 10,
  203. pageNum: 1,
  204. scrollTop: 0,
  205. oldScrollTop: 0,
  206. isRefreshing: false, //设置当前下拉刷新状态,true 表示下拉刷新已经被触发,false 表示下拉刷新未被触发
  207. isLoading: true, //加载中
  208. noMoreData: false, //没有更多数据了
  209. loadStatus: 'more', //loading状态
  210. details: {}, //详情信息
  211. tabListData: [], //数据
  212. searchBoxTop:0,//搜索框距离顶部的高度
  213. isSticky:false,//是否吸顶
  214. });
  215. onLoad((option) => {
  216. state.id = option.id;
  217. state.courseType = option.courseType;
  218. state.tabList = option.courseType === '0' ? [...state.mustTabList] : [...state.selfTabList];
  219. state.tabsSelected = option.courseType === '0' ? '' : '4';
  220. })
  221. onMounted(() => {
  222. OnLoadData(true,true); // 数据加载完成后触发 checkTextOverflow
  223. });
  224. const checkTextOverflow = () => {
  225. nextTick(() => {
  226. const instance = getCurrentInstance();
  227. // 安全保护
  228. if (!instance || !instance.proxy) {
  229. // 备用方案:全局查询(要求元素 class 唯一)
  230. let taskDescAllHeight = 0,
  231. taskDescHeight = 0;
  232. const query = uni.createSelectorQuery();
  233. query.select('.task_desc_all').boundingClientRect((rect) => {
  234. taskDescAllHeight = rect?.height || 0;
  235. });
  236. query.select('.task_desc').boundingClientRect((rect) => {
  237. taskDescHeight = rect?.height || 0;
  238. });
  239. query.select('.page_content_data').boundingClientRect((rect) => {
  240. state.searchBoxTop = rect?.top || 0;
  241. });
  242. query.exec(() => {
  243. // 所有回调执行完毕后触发
  244. state.showExpandBtn = taskDescAllHeight > taskDescHeight + 1;
  245. });
  246. return;
  247. }
  248. let taskDescAllHeight = 0,
  249. taskDescHeight = 0;
  250. const query = uni.createSelectorQuery().in(instance.proxy);
  251. query.select('.task_desc_all').boundingClientRect((rect) => {
  252. taskDescAllHeight = rect?.height || 0;
  253. });
  254. query.select('.task_desc').boundingClientRect((rect) => {
  255. taskDescHeight = rect?.height || 0;
  256. });
  257. query.select('.page_content_data').boundingClientRect((rect) => {
  258. state.searchBoxTop = rect?.top || 0;
  259. });
  260. query.exec(() => {
  261. // 所有回调执行完毕后触发
  262. state.showExpandBtn = taskDescAllHeight > taskDescHeight + 1;
  263. });
  264. });
  265. }
  266. // 展开收起切换
  267. const toggleExpand = () => {
  268. state.isExpand = !state.isExpand;
  269. }
  270. //切换tab
  271. const SelectTabsValue = (val) => {
  272. state.tabsSelected = val;
  273. OnLoadData(true);
  274. }
  275. //搜索
  276. const HandleSearchInput = (val) => {
  277. state.searchWord = val;
  278. OnLoadData(true);
  279. }
  280. /*
  281. *详情
  282. * initPage:初始分页 从第一开始
  283. * initData:初始加载
  284. */
  285. const OnLoadData = (initPage,initData = false) => {
  286. if (initPage) state.pageNum = 1; //如果是下拉刷新、重新查询 默认加载第一页
  287. state.isLoading = true;
  288. state.loadStatus = 'loading';
  289. queryMinitorDetailData({
  290. id: state.id,
  291. learnStatus: state.tabsSelected,
  292. queryStr: state.searchWord,
  293. pageSize: state.pageSize,
  294. pageNum: state.pageNum
  295. }).then(res => {
  296. if (res.code == 200) {
  297. state.details = res?.data || null;
  298. let total = 0,
  299. tabListData = []; //总数
  300. if (res?.data?.courseType === 0) { //必修任务
  301. tabListData = res?.data?.tableTaskData?.records || [];
  302. total = res?.data?.tableTaskData?.total || '0';
  303. } else {
  304. if (state.tabsSelected == '4') { //自主研修-已完成
  305. tabListData = res?.data?.tableSelfOverData?.records || [];
  306. total = res?.data?.tableSelfOverData?.total || '0';
  307. } else { //自主研修-学习中
  308. tabListData = res?.data?.tableSelfUnOverData?.records || [];
  309. total = res?.data?.tableSelfUnOverData?.total || '0';
  310. }
  311. }
  312. const pages = Math.ceil(total / state.pageSize); //总页数
  313. state.tabListData = initPage ? tabListData : [...state.tabListData, ...tabListData];
  314. state.noMoreData = state.pageNum == pages;
  315. state.pageNum++;
  316. if(initData){
  317. checkTextOverflow();
  318. }
  319. }
  320. }).finally(() => {
  321. state.isLoading = false;
  322. state.isRefreshing = false; //下拉刷新未被触发
  323. if (state.noMoreData) {
  324. state.loadStatus = 'no-more';
  325. } else {
  326. state.loadStatus = 'more';
  327. }
  328. //返回到页面顶部
  329. if (initPage) {
  330. GoTop();
  331. }
  332. })
  333. }
  334. // 自定义下拉刷新被触发 下拉刷新
  335. const OnRefresh = () => {
  336. state.isRefreshing = true; //下拉刷新已经被触发
  337. OnLoadData(true);
  338. }
  339. //滚动到底部/右边 触发上拉刷新
  340. const OnLoadMore = () => {
  341. if (state.isLoading || state.noMoreData) return;
  342. OnLoadData(false);
  343. }
  344. // 滚动时触发
  345. const OnScroll = (e) => {
  346. const scrollTop = e.detail.scrollTop;
  347. if(scrollTop > state.searchBoxTop){
  348. state.isSticky = true;
  349. }else{
  350. state.isSticky = false;
  351. }
  352. state.oldScrollTop = scrollTop;
  353. }
  354. //返回到顶部
  355. const GoTop = () => {
  356. // 解决view层不同步的问题
  357. state.scrollTop = state.oldScrollTop;
  358. nextTick(() => {
  359. state.scrollTop = 0
  360. });
  361. }
  362. //返回
  363. const GoBack = () => {
  364. uni.navigateBack({
  365. delta: 1
  366. });
  367. }
  368. </script>
  369. <style scoped lang="scss">
  370. .page_body{
  371. height: 100%;
  372. min-height: auto;
  373. .scroll_view_box{
  374. width: 100%;
  375. display: flex;
  376. flex-direction: column;
  377. height: calc(100% - 96rpx);
  378. }
  379. .scroll_view_y {
  380. height: 100%;
  381. .refresh_loading {
  382. padding: 10rpx 0;
  383. }
  384. }
  385. }
  386. .page_content {
  387. &.padding_btm {
  388. padding-bottom: 24rpx;
  389. .task_title {
  390. font-weight: 500;
  391. font-size: 32rpx;
  392. color: #333333;
  393. margin-top: 24rpx;
  394. }
  395. .task_class_collect {
  396. display: flex;
  397. align-items: flex-start;
  398. width: 100%;
  399. margin-top: 16rpx;
  400. .task_class_name {
  401. display: inline-flex;
  402. align-items: center;
  403. flex-wrap: wrap;
  404. flex: 1;
  405. gap: 16rpx;
  406. .class_item {
  407. font-weight: 400;
  408. font-size: 24rpx;
  409. color: #999999;
  410. }
  411. }
  412. .task_collect {
  413. display: inline-flex;
  414. gap: 40rpx;
  415. .preview,
  416. .collect {
  417. display: inline-flex;
  418. align-items: center;
  419. }
  420. .img {
  421. width: 24rpx;
  422. height: 24rpx;
  423. margin-right: 12rpx;
  424. }
  425. .text {
  426. font-weight: 400;
  427. font-size: 24rpx;
  428. color: #999999;
  429. }
  430. }
  431. }
  432. .task_time {
  433. display: flex;
  434. align-items: flex-start;
  435. width: 100%;
  436. margin-top: 16rpx;
  437. .time_day {
  438. display: inline-flex;
  439. align-items: center;
  440. flex-wrap: wrap;
  441. flex: 1;
  442. .time_item {
  443. font-weight: 400;
  444. font-size: 24rpx;
  445. line-height: 48rpx;
  446. color: #999999;
  447. &:nth-child(2) {
  448. margin: 0 8rpx;
  449. }
  450. &:nth-child(4) {
  451. color: #2E64FA;
  452. margin-left: 16rpx;
  453. }
  454. }
  455. }
  456. .task_status {
  457. display: inline-flex;
  458. align-items: center;
  459. height: 48rpx;
  460. padding: 0 12rpx;
  461. border-radius: 8rpx;
  462. font-weight: 400;
  463. font-size: 24rpx;
  464. &.going {
  465. background: rgba(43, 198, 68, 0.1);
  466. color: #2BC644;
  467. }
  468. &.finished {
  469. background: rgba(245, 108, 108, 0.1);
  470. color: #F56C6C;
  471. }
  472. }
  473. }
  474. .task_desc {
  475. margin-top: 24rpx;
  476. display: flex;
  477. width: 100%;
  478. padding-top: 24rpx;
  479. border-top: 2rpx solid #F3F3F3;
  480. font-weight: 400;
  481. font-size: 28rpx;
  482. color: #999999;
  483. line-height: 44rpx;
  484. box-sizing: border-box;
  485. position: relative;
  486. &.over {
  487. max-height: 168rpx;
  488. overflow: hidden;
  489. transition: all 0.25s;
  490. display: -webkit-box;
  491. -webkit-line-clamp: 3;
  492. -webkit-box-orient: vertical;
  493. }
  494. }
  495. .task_desc_all {
  496. display: flex;
  497. width: 100%;
  498. padding-top: 24rpx;
  499. border-top: 2rpx solid #F3F3F3;
  500. font-weight: 400;
  501. font-size: 28rpx;
  502. color: #999999;
  503. line-height: 44rpx;
  504. box-sizing: border-box;
  505. position: absolute;
  506. left: -9999px;
  507. top: 0;
  508. visibility: hidden; // 不可见但占据空间(不影响布局,因为absolute)
  509. pointer-events: none;
  510. }
  511. .expand_btn {
  512. width: 100%;
  513. height: 40rpx;
  514. background-color: #FFFFFF;
  515. display: flex;
  516. justify-content: flex-end;
  517. align-items: center;
  518. .expand_text {
  519. font-weight: 400;
  520. font-size: 28rpx;
  521. color: #2E64FA;
  522. margin-right: 8rpx;
  523. }
  524. .expand_icon {
  525. font-size: 32rpx !important;
  526. color: #2E64FA !important;
  527. }
  528. }
  529. }
  530. }
  531. .row_gap {
  532. background-color: #F8F9FD;
  533. width: 100%;
  534. height: 24rpx;
  535. }
  536. :deep(.search_tabs){
  537. display: flex;
  538. width: 100%;
  539. flex-direction: column;
  540. .search_box {
  541. display: flex;
  542. align-items: center;
  543. box-sizing: border-box;
  544. width: 100%;
  545. padding: 24rpx;
  546. box-sizing: border-box;
  547. background-color: #FFFFFF;
  548. .is-input-border {
  549. border-radius: 8rpx;
  550. border: 2rpx solid #DCDFE6;
  551. border-color: #DCDFE6 !important;
  552. }
  553. .search_icon {
  554. width: 32rpx;
  555. height: 32rpx;
  556. margin-left: 24rpx;
  557. }
  558. .uni-easyinput__content-input {
  559. padding-left: 8rpx !important;
  560. font-size: 28rpx;
  561. color: #333333;
  562. height: 72rpx;
  563. }
  564. }
  565. }
  566. .scroll_tabs {
  567. padding-bottom: 24rpx;
  568. background-color: #FFFFFF;
  569. }
  570. .total {
  571. width: 100%;
  572. display: flex;
  573. font-weight: 400;
  574. font-size: 28rpx;
  575. color: #333333;
  576. padding-bottom: 24rpx;
  577. border-bottom: 2rpx solid #F3F3F3;
  578. }
  579. .list_item {
  580. display: flex;
  581. flex-direction: column;
  582. width: 100%;
  583. padding: 24rpx 0;
  584. border-bottom: 2rpx solid #F3F3F3;
  585. .created_progress_status {
  586. display: flex;
  587. width: 100%;
  588. justify-content: space-between;
  589. align-items: center;
  590. .created_by {
  591. flex: 1;
  592. font-weight: 500;
  593. font-size: 32rpx;
  594. color: #333333;
  595. }
  596. .item_progress {
  597. display: inline-flex;
  598. align-items: center;
  599. width: 346rpx;
  600. .progress_bar {
  601. width: 200rpx;
  602. height: 12rpx;
  603. background-color: #E2E6F0;
  604. border-radius: 14rpx;
  605. position: relative;
  606. flex-shrink: 0;
  607. .bar_width {
  608. position: absolute;
  609. left: 0;
  610. top: 0;
  611. height: 12rpx;
  612. background-color: #2E64FA;
  613. border-radius: 14rpx;
  614. }
  615. }
  616. .progress_label {
  617. flex: 1;
  618. margin-left: 24rpx;
  619. font-weight: 400;
  620. font-size: 32rpx;
  621. color: #666666;
  622. }
  623. }
  624. .item_status {
  625. display: inline-flex;
  626. align-items: center;
  627. justify-content: center;
  628. width: 96rpx;
  629. height: 48rpx;
  630. border-radius: 8rpx;
  631. font-weight: 400;
  632. font-size: 24rpx;
  633. margin-left: 30rpx;
  634. &.await {
  635. background-color: rgba(46, 100, 250, 0.1);
  636. color: #2E64FA;
  637. }
  638. &.finish {
  639. background-color: rgba(43, 198, 68, 0.1);
  640. color: #2BC644;
  641. }
  642. }
  643. }
  644. .item_time {
  645. display: flex;
  646. width: 100%;
  647. align-items: center;
  648. flex-wrap: wrap;
  649. gap: 16rpx;
  650. margin-top: 18rpx;
  651. .time {
  652. font-weight: 400;
  653. font-size: 24rpx;
  654. color: #999999;
  655. }
  656. }
  657. }
  658. .no_data{
  659. margin-top: 24rpx;
  660. }
  661. </style>