taskDetails.vue 20 KB

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