taskDetails.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  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 offsetTop="0" customNavHeight="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" :style="{'height': state.isSticky ? 'calc(100% - 296rpx)' : 'calc(100% - 96rpx)'}">
  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,index) in state.tabListData" :Key="index">
  121. <view class="created_progress_status">
  122. <text class="created_by">{{item.studentName}}</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/navBar.vue';
  159. import {
  160. queryTeacherMinitorDetailData
  161. } from '@/reqApi/studentStudy.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. const query = instance && instance.proxy
  228. ? uni.createSelectorQuery().in(instance.proxy)
  229. : uni.createSelectorQuery();
  230. query.select('.task_desc_all').boundingClientRect();
  231. query.select('.task_desc').boundingClientRect();
  232. query.select('.page_content_data').boundingClientRect();
  233. query.exec((res) => {
  234. const rectAll = res[0];
  235. const rectShort = res[1];
  236. const rectPageData = res[2];
  237. const taskDescAllHeight = rectAll?.height || 0;
  238. const taskDescHeight = rectShort?.height || 0;
  239. state.searchBoxTop = rectPageData?.top || 0;
  240. state.showExpandBtn = taskDescAllHeight > taskDescHeight + 1;
  241. });
  242. });
  243. }
  244. // 展开收起切换
  245. const toggleExpand = () => {
  246. state.isExpand = !state.isExpand;
  247. nextTick(() => {
  248. const instance = getCurrentInstance();
  249. // 自动选择查询上下文,消除重复if‑else
  250. const query = instance && instance.proxy
  251. ? uni.createSelectorQuery().in(instance.proxy)
  252. : uni.createSelectorQuery();
  253. // 只注册查询,不在回调做赋值
  254. query.select('.page_content_data').boundingClientRect();
  255. // exec才真正执行查询,res[0]对应上面select的结果
  256. query.exec((res) => {
  257. const rect = res?.[0];
  258. state.searchBoxTop = rect?.top || 0;
  259. });
  260. });
  261. }
  262. //切换tab
  263. const SelectTabsValue = (val) => {
  264. state.tabsSelected = val;
  265. OnLoadData(true);
  266. }
  267. //搜索
  268. const HandleSearchInput = (val) => {
  269. state.searchWord = val;
  270. OnLoadData(true);
  271. }
  272. /*
  273. *详情
  274. * initPage:初始分页 从第一开始
  275. * initData:初始加载
  276. */
  277. const OnLoadData = (initPage,initData = false) => {
  278. if (initPage) state.pageNum = 1; //如果是下拉刷新、重新查询 默认加载第一页
  279. state.isLoading = true;
  280. state.loadStatus = 'loading';
  281. queryTeacherMinitorDetailData({
  282. id: state.id,
  283. learnStatus: state.tabsSelected,
  284. queryStr: state.searchWord,
  285. pageSize: state.pageSize,
  286. pageNum: state.pageNum
  287. }).then(res => {
  288. if (res.code == 200) {
  289. state.details = res?.data || null;
  290. let total = 0,
  291. tabListData = []; //总数
  292. if (res?.data?.courseType === 0) { //必修任务
  293. tabListData = res?.data?.tableTaskData?.records || [];
  294. total = res?.data?.tableTaskData?.total || '0';
  295. } else {
  296. if (state.tabsSelected == '4') { //自主研修-已完成
  297. tabListData = res?.data?.tableSelfOverData?.records || [];
  298. total = res?.data?.tableSelfOverData?.total || '0';
  299. } else { //自主研修-学习中
  300. tabListData = res?.data?.tableSelfUnOverData?.records || [];
  301. total = res?.data?.tableSelfUnOverData?.total || '0';
  302. }
  303. }
  304. const pages = Math.ceil(total / state.pageSize); //总页数
  305. state.tabListData = initPage ? tabListData : [...state.tabListData, ...tabListData];
  306. state.noMoreData = state.pageNum == pages;
  307. state.pageNum++;
  308. if(initData){
  309. checkTextOverflow();
  310. }
  311. }
  312. }).finally(() => {
  313. state.isLoading = false;
  314. state.isRefreshing = false; //下拉刷新未被触发
  315. if (state.noMoreData) {
  316. state.loadStatus = 'no-more';
  317. } else {
  318. state.loadStatus = 'more';
  319. }
  320. //返回到页面顶部
  321. if (initPage) {
  322. GoTop();
  323. }
  324. })
  325. }
  326. // 自定义下拉刷新被触发 下拉刷新
  327. const OnRefresh = () => {
  328. state.isRefreshing = true; //下拉刷新已经被触发
  329. OnLoadData(true);
  330. }
  331. //滚动到底部/右边 触发上拉刷新
  332. const OnLoadMore = () => {
  333. if (state.isLoading || state.noMoreData) return;
  334. OnLoadData(false);
  335. }
  336. // 滚动时触发
  337. const OnScroll = (e) => {
  338. const scrollTop = e.detail.scrollTop;
  339. if(scrollTop > state.searchBoxTop){
  340. state.isSticky = true;
  341. }else{
  342. state.isSticky = false;
  343. }
  344. state.oldScrollTop = scrollTop;
  345. }
  346. //返回到顶部
  347. const GoTop = () => {
  348. // 解决view层不同步的问题
  349. state.scrollTop = state.oldScrollTop;
  350. nextTick(() => {
  351. state.scrollTop = 0
  352. });
  353. }
  354. //返回
  355. const GoBack = () => {
  356. uni.navigateBack({
  357. delta: 1
  358. });
  359. }
  360. </script>
  361. <style scoped lang="scss">
  362. .page_body{
  363. display: flex;
  364. flex-direction: column;
  365. height: 100%;
  366. min-height: auto;
  367. .scroll_view_box{
  368. width: 100%;
  369. display: flex;
  370. flex-direction: column;
  371. // height: calc(100% - 96rpx);
  372. }
  373. .scroll_view_y {
  374. height: 100%;
  375. .refresh_loading {
  376. padding: 10rpx 0;
  377. }
  378. }
  379. }
  380. .page_content {
  381. &.padding_btm {
  382. padding-bottom: 24rpx;
  383. .task_title {
  384. font-weight: 500;
  385. font-size: 32rpx;
  386. color: #333333;
  387. margin-top: 24rpx;
  388. }
  389. .task_class_collect {
  390. display: flex;
  391. align-items: flex-start;
  392. width: 100%;
  393. margin-top: 16rpx;
  394. .task_class_name {
  395. display: inline-flex;
  396. align-items: center;
  397. flex-wrap: wrap;
  398. flex: 1;
  399. gap: 16rpx;
  400. .class_item {
  401. font-weight: 400;
  402. font-size: 24rpx;
  403. color: #999999;
  404. }
  405. }
  406. .task_collect {
  407. display: inline-flex;
  408. gap: 40rpx;
  409. .preview,
  410. .collect {
  411. display: inline-flex;
  412. align-items: center;
  413. }
  414. .img {
  415. width: 24rpx;
  416. height: 24rpx;
  417. margin-right: 12rpx;
  418. }
  419. .text {
  420. font-weight: 400;
  421. font-size: 24rpx;
  422. color: #999999;
  423. }
  424. }
  425. }
  426. .task_time {
  427. display: flex;
  428. align-items: flex-start;
  429. width: 100%;
  430. margin-top: 16rpx;
  431. .time_day {
  432. display: inline-flex;
  433. align-items: center;
  434. flex-wrap: wrap;
  435. flex: 1;
  436. .time_item {
  437. font-weight: 400;
  438. font-size: 24rpx;
  439. line-height: 48rpx;
  440. color: #999999;
  441. &:nth-child(2) {
  442. margin: 0 8rpx;
  443. }
  444. &:nth-child(4) {
  445. color: #2E64FA;
  446. margin-left: 16rpx;
  447. }
  448. }
  449. }
  450. .task_status {
  451. display: inline-flex;
  452. align-items: center;
  453. height: 48rpx;
  454. padding: 0 12rpx;
  455. border-radius: 8rpx;
  456. font-weight: 400;
  457. font-size: 24rpx;
  458. &.going {
  459. background: rgba(43, 198, 68, 0.1);
  460. color: #2BC644;
  461. }
  462. &.finished {
  463. background: rgba(245, 108, 108, 0.1);
  464. color: #F56C6C;
  465. }
  466. }
  467. }
  468. .task_desc {
  469. margin-top: 24rpx;
  470. display: flex;
  471. width: 100%;
  472. padding-top: 24rpx;
  473. border-top: 2rpx solid #F3F3F3;
  474. font-weight: 400;
  475. font-size: 28rpx;
  476. color: #999999;
  477. line-height: 44rpx;
  478. box-sizing: border-box;
  479. position: relative;
  480. &.over {
  481. max-height: 168rpx;
  482. overflow: hidden;
  483. transition: all 0.25s;
  484. display: -webkit-box;
  485. -webkit-line-clamp: 3;
  486. -webkit-box-orient: vertical;
  487. }
  488. }
  489. .task_desc_all {
  490. display: flex;
  491. width: 100%;
  492. padding-top: 24rpx;
  493. border-top: 2rpx solid #F3F3F3;
  494. font-weight: 400;
  495. font-size: 28rpx;
  496. color: #999999;
  497. line-height: 44rpx;
  498. box-sizing: border-box;
  499. position: absolute;
  500. left: -9999px;
  501. top: 0;
  502. visibility: hidden; // 不可见但占据空间(不影响布局,因为absolute)
  503. pointer-events: none;
  504. }
  505. .expand_btn {
  506. width: 100%;
  507. height: 40rpx;
  508. background-color: #FFFFFF;
  509. display: flex;
  510. justify-content: flex-end;
  511. align-items: center;
  512. .expand_text {
  513. font-weight: 400;
  514. font-size: 28rpx;
  515. color: #2E64FA;
  516. margin-right: 8rpx;
  517. }
  518. .expand_icon {
  519. font-size: 32rpx !important;
  520. color: #2E64FA !important;
  521. }
  522. }
  523. }
  524. }
  525. .row_gap {
  526. background-color: #F8F9FD;
  527. width: 100%;
  528. height: 24rpx;
  529. }
  530. :deep(.search_tabs){
  531. display: flex;
  532. width: 100%;
  533. flex-direction: column;
  534. background-color: #FFFFFF;
  535. .search_box {
  536. display: flex;
  537. align-items: center;
  538. box-sizing: border-box;
  539. width: 100%;
  540. padding: 24rpx;
  541. box-sizing: border-box;
  542. background-color: #FFFFFF;
  543. .is-input-border {
  544. border-radius: 8rpx;
  545. border: 2rpx solid #DCDFE6;
  546. border-color: #DCDFE6 !important;
  547. }
  548. .search_icon {
  549. width: 32rpx;
  550. height: 32rpx;
  551. margin-left: 24rpx;
  552. }
  553. .uni-easyinput__content-input {
  554. padding-left: 8rpx !important;
  555. font-size: 28rpx;
  556. color: #333333;
  557. height: 72rpx;
  558. }
  559. }
  560. }
  561. .scroll_tabs {
  562. margin-top:0;
  563. background-color: #FFFFFF;
  564. }
  565. .total {
  566. width: 100%;
  567. display: flex;
  568. font-weight: 400;
  569. font-size: 28rpx;
  570. color: #333333;
  571. padding: 24rpx 0;
  572. border-bottom: 2rpx solid #F3F3F3;
  573. }
  574. .list_item {
  575. display: flex;
  576. flex-direction: column;
  577. width: 100%;
  578. padding: 24rpx 0;
  579. border-bottom: 2rpx solid #F3F3F3;
  580. .created_progress_status {
  581. display: flex;
  582. width: 100%;
  583. justify-content: space-between;
  584. align-items: center;
  585. .created_by {
  586. flex: 1;
  587. font-weight: 500;
  588. font-size: 32rpx;
  589. color: #333333;
  590. }
  591. .item_progress {
  592. display: inline-flex;
  593. align-items: center;
  594. width: 346rpx;
  595. .progress_bar {
  596. width: 200rpx;
  597. height: 12rpx;
  598. background-color: #E2E6F0;
  599. border-radius: 14rpx;
  600. position: relative;
  601. flex-shrink: 0;
  602. .bar_width {
  603. position: absolute;
  604. left: 0;
  605. top: 0;
  606. height: 12rpx;
  607. background-color: #2E64FA;
  608. border-radius: 14rpx;
  609. }
  610. }
  611. .progress_label {
  612. flex: 1;
  613. margin-left: 24rpx;
  614. font-weight: 400;
  615. font-size: 32rpx;
  616. color: #666666;
  617. }
  618. }
  619. .item_status {
  620. display: inline-flex;
  621. align-items: center;
  622. justify-content: center;
  623. width: 96rpx;
  624. height: 48rpx;
  625. border-radius: 8rpx;
  626. font-weight: 400;
  627. font-size: 24rpx;
  628. margin-left: 30rpx;
  629. &.await {
  630. background-color: rgba(46, 100, 250, 0.1);
  631. color: #2E64FA;
  632. }
  633. &.finish {
  634. background-color: rgba(43, 198, 68, 0.1);
  635. color: #2BC644;
  636. }
  637. }
  638. }
  639. .item_time {
  640. display: flex;
  641. width: 100%;
  642. align-items: center;
  643. flex-wrap: wrap;
  644. gap: 16rpx;
  645. margin-top: 18rpx;
  646. .time {
  647. font-weight: 400;
  648. font-size: 24rpx;
  649. color: #999999;
  650. }
  651. }
  652. }
  653. .no_data{
  654. margin-top: 24rpx;
  655. }
  656. </style>