index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  1. <template>
  2. <scroll-view class="entry-page" scroll-y>
  3. <view class="hero">
  4. <image class="hero-bg" src="/static/entry/bg.png" mode="widthFix" />
  5. <view class="hero-mask"></view>
  6. <view class="hero-content">
  7. <view class="status-row"></view>
  8. <view class="profile-row">
  9. <view class="avatar-wrap">
  10. <image
  11. style="
  12. width: 50px;
  13. height: 50px;
  14. background-color: transparent;
  15. border-radius: 50%;
  16. "
  17. :src="
  18. userInfo?.avatar ? userInfo?.avatar : '/static/user/avatar.png'
  19. "
  20. ></image>
  21. </view>
  22. <view class="profile-main">
  23. <view class="greeting">{{ greetingText }},{{ displayName }}</view>
  24. </view>
  25. <view
  26. class="notice-wrap"
  27. @click="navigatorTo('/pages/message/index')"
  28. >
  29. <uni-badge :text="messageCount" absolute="rightTop" size="small">
  30. <view class="notice-button">
  31. <image
  32. src="~@/static/home/message.png"
  33. style="
  34. width: 15px;
  35. height: 15px;
  36. background-color: transparent;
  37. "
  38. @click="navigatorTo('/pages/message/index')"
  39. />
  40. </view>
  41. </uni-badge>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="content-shell">
  47. <view class="hero-title">工作台</view>
  48. <view class="section-card">
  49. <view class="section-title">核心功能</view>
  50. <scroll-view class="core-scroll" scroll-x show-scrollbar="false">
  51. <view class="core-list">
  52. <view
  53. v-for="item in coreFeatures"
  54. :key="item.title"
  55. class="core-item"
  56. :class="{ active: item.active }"
  57. @click="navigatorTo(item.path)"
  58. >
  59. <view class="core-icon">
  60. <image
  61. :src="item.iconText"
  62. mode="aspectFit"
  63. style="
  64. width: 40px;
  65. height: 40px;
  66. background-color: transparent;
  67. "
  68. />
  69. </view>
  70. <view class="core-name">{{ item.title }}</view>
  71. <view class="core-desc">{{ item.desc }}</view>
  72. <view class="core-indicator" v-if="item.active"></view>
  73. </view>
  74. </view>
  75. </scroll-view>
  76. </view>
  77. <view class="section-card">
  78. <view class="section-title">PMS常用</view>
  79. <view class="tool-grid">
  80. <view
  81. v-for="item in commonTools"
  82. :key="item.title"
  83. class="tool-item"
  84. @click="navigatorTo(item.path)"
  85. >
  86. <image class="tool-icon" :src="item.icon" mode="aspectFit" />
  87. <view class="tool-title">{{ item.title }}</view>
  88. </view>
  89. </view>
  90. </view>
  91. <view class="section-card">
  92. <view class="section-head">
  93. <view class="section-title">日报入口</view>
  94. <view class="section-tip">
  95. <uni-icons type="personadd" size="16" color="#246BFF" />
  96. <text>按角色显示</text>
  97. </view>
  98. </view>
  99. <view class="daily-list">
  100. <view
  101. v-if="!!userInfo.rhReportFlag"
  102. class="daily-item"
  103. @click="navigatorTo('/pages/ruihen/index?type=edit')"
  104. >
  105. <image
  106. class="daily-icon"
  107. src="/static/entry/ruiheng.png"
  108. mode="aspectFit"
  109. />
  110. <view class="daily-content">
  111. <view class="daily-title">瑞恒日报</view>
  112. <view class="daily-subtitle-wrap">
  113. <view class="daily-subtitle">进入瑞恒日报</view>
  114. <uni-icons type="right" size="12" color="#8090a8" />
  115. </view>
  116. </view>
  117. </view>
  118. <view
  119. class="daily-item"
  120. v-if="!!userInfo.rdReportFlag"
  121. @click="navigatorTo('/pages/ruiDu/index')"
  122. >
  123. <image
  124. class="daily-icon"
  125. src="/static/entry/ruidu.png"
  126. mode="aspectFit"
  127. />
  128. <view class="daily-content">
  129. <view class="daily-title">瑞都日报</view>
  130. <view class="daily-subtitle-wrap">
  131. <view class="daily-subtitle">进入瑞都日报</view>
  132. <uni-icons type="right" size="12" color="#8090a8" />
  133. </view>
  134. </view>
  135. </view>
  136. <view
  137. class="daily-item"
  138. v-if="!!userInfo.ryReportFlag"
  139. @click="navigatorTo('/pages/ruiying/index?type=edit')"
  140. >
  141. <image
  142. class="daily-icon"
  143. src="/static/entry/ruiying.png"
  144. mode="aspectFit"
  145. />
  146. <view class="daily-content">
  147. <view class="daily-title">瑞鹰日报</view>
  148. <view class="daily-subtitle-wrap">
  149. <view class="daily-subtitle">进入瑞鹰日报</view>
  150. <uni-icons type="right" size="12" color="#8090a8" />
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. </view>
  156. </view>
  157. </scroll-view>
  158. </template>
  159. <script setup>
  160. import { computed, ref } from "vue";
  161. import { onShow } from "@dcloudio/uni-app";
  162. import dayjs from "dayjs";
  163. import { getLoginUserInfo } from "@/api/login";
  164. import { getUnreadMessageCount } from "@/api/message";
  165. import { getOvertimeTaskList } from "@/api/task";
  166. import { getUserInfo } from "@/utils/auth";
  167. const userInfo = ref({});
  168. const messageCount = ref(0);
  169. const todoStats = ref({
  170. maintenance: 0,
  171. fault: 0,
  172. });
  173. const coreFeatures = [
  174. {
  175. title: "PMS",
  176. desc: "设备生命周期管理",
  177. iconText: "/static/entry/pms.png",
  178. iconBg: "linear-gradient(135deg, #eaf2ff 0%, #d8e7ff 100%)",
  179. iconColor: "#246BFF",
  180. active: true,
  181. path: "/pages/home/index",
  182. },
  183. {
  184. title: "QHSE",
  185. desc: "质量健康安全环保",
  186. iconText: "/static/entry/qhse.png",
  187. iconBg: "linear-gradient(135deg, #ecfff7 0%, #d8f8ea 100%)",
  188. iconColor: "#1eb980",
  189. path: "/pages/qhse/index",
  190. },
  191. {
  192. title: "组态管理",
  193. desc: "流程与仪表组态",
  194. iconText: "/static/entry/zutai.png",
  195. iconBg: "linear-gradient(135deg, #f1edff 0%, #e0d9ff 100%)",
  196. iconColor: "#6d5efc",
  197. path: "/pages/zutai/index",
  198. },
  199. {
  200. title: "智慧连油",
  201. desc: "润滑管理平台",
  202. iconText: "/static/entry/lianyou.png",
  203. iconBg: "linear-gradient(135deg, #e7fbff 0%, #d4f7fb 100%)",
  204. iconColor: "#10a8c6",
  205. path: "/pages/lianyou/index",
  206. },
  207. {
  208. title: "生产运营双周会",
  209. desc: "双周会管理与跟踪",
  210. iconText: "/static/entry/yunying.png",
  211. iconBg: "linear-gradient(135deg, #fff3e8 0%, #ffe3cc 100%)",
  212. iconColor: "#ff8a1f",
  213. path: "/pages/swh/index",
  214. },
  215. ];
  216. const commonTools = [
  217. {
  218. title: "运行记录",
  219. icon: "/static/entry/record.png",
  220. path: "/pages/recordFilling/list",
  221. },
  222. {
  223. title: "保养工单",
  224. icon: "/static/entry/baoyang.png",
  225. path: "/pages/maintenance/index",
  226. },
  227. {
  228. title: "设备维修",
  229. icon: "/static/entry/weixiu.png",
  230. path: "/pages/repair/index",
  231. },
  232. {
  233. title: "巡检工单",
  234. icon: "/static/entry/xunjian.png",
  235. path: "/pages/inspection/index",
  236. },
  237. {
  238. title: "故障上报",
  239. icon: "/static/entry/guzhang.png",
  240. path: "/pages/fault/index",
  241. },
  242. {
  243. title: "库存管理",
  244. icon: "/static/entry/kucun.png",
  245. path: "/pages/inventory/index",
  246. },
  247. {
  248. title: "保养查询",
  249. icon: "/static/entry/byquery.png",
  250. path: "/pages/maintenance/search",
  251. },
  252. {
  253. title: "设备台账",
  254. icon: "/static/entry/taizhang.png",
  255. path: "/pages/ledger/index",
  256. },
  257. {
  258. title: "设备状态变更",
  259. icon: "/static/entry/status.png",
  260. path: "/pages/statusChange/index",
  261. },
  262. {
  263. title: "设备责任人",
  264. icon: "/static/entry/zeren.png",
  265. path: "/pages/deviceUser/index",
  266. },
  267. ];
  268. const dailyEntries = computed(() => [
  269. {
  270. title: "瑞恒日报",
  271. subtitle: "进入瑞恒日报",
  272. path: "/pages/ruihen/index?type=edit",
  273. icon: "/static/entry/ruiheng.png",
  274. visible: !!userInfo.value.rhReportFlag,
  275. },
  276. {
  277. title: "瑞都日报",
  278. subtitle: "进入瑞都日报",
  279. path: "/pages/ruiDu/index",
  280. icon: "/static/entry/ruidu.png",
  281. visible: !!userInfo.value.rdReportFlag,
  282. },
  283. {
  284. title: "瑞鹰日报",
  285. subtitle: "进入瑞鹰日报",
  286. path: "/pages/ruiying/index?type=edit",
  287. icon: "/static/entry/ruiying.png",
  288. visible: !!userInfo.value.ryReportFlag,
  289. },
  290. ]);
  291. const visibleDailyEntries = computed(() => {
  292. const list = dailyEntries.value.filter((item) => item.visible);
  293. if (list.length) return list.slice(0, 3);
  294. return dailyEntries.value
  295. .map((item) => ({ ...item, visible: true }))
  296. .slice(0, 3);
  297. });
  298. const todoCards = computed(() => [
  299. {
  300. title: "保养工单",
  301. icon: "/static/home/baoyang.png",
  302. count: todoStats.value.maintenance,
  303. color: "#1eb980",
  304. },
  305. {
  306. title: "故障上报",
  307. icon: "/static/home/guzhang.png",
  308. count: todoStats.value.fault,
  309. color: "#ff4d4f",
  310. },
  311. ]);
  312. const currentTimeText = computed(() => dayjs().format("H:mm"));
  313. const greetingText = computed(() => {
  314. const hour = dayjs().hour();
  315. if (hour < 12) return "上午好";
  316. if (hour < 18) return "下午好";
  317. return "晚上好";
  318. });
  319. const displayName = computed(
  320. () => userInfo.value.nickname || userInfo.value.username || "张工",
  321. );
  322. const avatarText = computed(() =>
  323. String(displayName.value || "张").slice(0, 1),
  324. );
  325. const projectName = computed(
  326. () =>
  327. userInfo.value.deptName ||
  328. userInfo.value.postGroup ||
  329. userInfo.value.stationName ||
  330. "智慧工厂示例项目",
  331. );
  332. const parseCachedUserInfo = () => {
  333. const cache = getUserInfo();
  334. if (!cache) return {};
  335. try {
  336. const parsed = typeof cache === "string" ? JSON.parse(cache) : cache;
  337. if (typeof parsed === "string") {
  338. return JSON.parse(parsed)?.user || {};
  339. }
  340. return parsed?.user || parsed || {};
  341. } catch (error) {
  342. return {};
  343. }
  344. };
  345. const buildTodoStats = (list) => {
  346. const stats = {
  347. maintenance: 0,
  348. fault: 0,
  349. };
  350. list.forEach((item) => {
  351. const typeText = String(item?.type || "");
  352. if (typeText.includes("保养")) {
  353. stats.maintenance += 1;
  354. }
  355. if (typeText.includes("故障")) {
  356. stats.fault += 1;
  357. }
  358. });
  359. return stats;
  360. };
  361. const loadPageData = async () => {
  362. userInfo.value = parseCachedUserInfo();
  363. try {
  364. const [userRes, messageRes, todoRes] = await Promise.all([
  365. getLoginUserInfo(),
  366. getUnreadMessageCount(),
  367. getOvertimeTaskList({ pageNo: 1, pageSize: 50 }),
  368. ]);
  369. if (userRes?.code === 0 && userRes.data) {
  370. userInfo.value = userRes.data;
  371. }
  372. if (messageRes?.code === 0) {
  373. messageCount.value = messageRes.data || 0;
  374. }
  375. if (todoRes?.code === 0) {
  376. const todoList = todoRes.data?.list || [];
  377. todoStats.value = buildTodoStats(todoList);
  378. }
  379. } catch (error) {
  380. messageCount.value = messageCount.value || 0;
  381. }
  382. };
  383. const navigatorTo = (url) => {
  384. if (!url) return;
  385. uni.navigateTo({ url });
  386. };
  387. onShow(() => {
  388. loadPageData();
  389. });
  390. </script>
  391. <style lang="scss" scoped>
  392. .entry-page {
  393. height: 100vh;
  394. background: linear-gradient(180deg, #edf4ff 0%, #f7f9fc 28%, #f6f8fb 100%);
  395. padding-bottom: 30rpx;
  396. }
  397. .hero {
  398. position: relative;
  399. height: 640rpx;
  400. overflow: hidden;
  401. padding-bottom: 20rpx;
  402. }
  403. .hero-bg {
  404. position: absolute;
  405. inset: 0;
  406. width: 100%;
  407. height: 100%;
  408. }
  409. .hero-mask {
  410. position: absolute;
  411. inset: 0;
  412. height: 55%;
  413. background: linear-gradient(
  414. to bottom,
  415. rgba(255, 255, 255, 0) 0%,
  416. rgb(45, 114, 212, 0.4) 88%,
  417. rgb(45, 114, 212, 0.4) 89%,
  418. rgb(45, 114, 212, 0.7) 91%,
  419. rgb(41, 113, 214, 0.2) 95%,
  420. #f9fbfd 100%
  421. );
  422. pointer-events: none;
  423. }
  424. .hero-content {
  425. position: relative;
  426. z-index: 2;
  427. padding: calc(var(--status-bar-height) + 24rpx) 28rpx 0;
  428. }
  429. .hero-title {
  430. position: absolute;
  431. left: 0%;
  432. top: -8%;
  433. // bottom: -110%;
  434. // background: #f7f9fc;
  435. background: linear-gradient(
  436. to right,
  437. #f7f9fc 0%,
  438. #f7f9fc 50%,
  439. rgba(253, 253, 254, 0.3) 85%,
  440. rgba(253, 253, 254, 0.2) 90%,
  441. rgba(253, 253, 254, 0) 100%
  442. );
  443. border-radius: 16rpx 0rpx 0rpx 0rpx;
  444. padding-top: 20rpx;
  445. padding-bottom: 50rpx;
  446. padding-left: 28rpx;
  447. width: 50%;
  448. height: 80rpx;
  449. font-size: 40rpx;
  450. font-weight: 700;
  451. z-index: -3;
  452. }
  453. .status-row {
  454. display: flex;
  455. align-items: center;
  456. justify-content: space-between;
  457. margin-bottom: 42rpx;
  458. }
  459. .profile-row {
  460. display: flex;
  461. align-items: center;
  462. }
  463. .avatar-wrap {
  464. width: 82rpx;
  465. height: 82rpx;
  466. border-radius: 50%;
  467. display: flex;
  468. align-items: center;
  469. justify-content: center;
  470. backdrop-filter: blur(8px);
  471. }
  472. .avatar-text {
  473. color: #ffffff;
  474. font-size: 34rpx;
  475. font-weight: 700;
  476. }
  477. .profile-main {
  478. flex: 1;
  479. min-width: 0;
  480. margin-left: 22rpx;
  481. }
  482. .greeting {
  483. color: #ffffff;
  484. font-size: 30rpx;
  485. font-weight: 700;
  486. line-height: 1.2;
  487. text-shadow: 0 6rpx 18rpx rgba(0, 31, 90, 0.18);
  488. }
  489. .project-pill {
  490. display: inline-flex;
  491. align-items: center;
  492. gap: 12rpx;
  493. max-width: 100%;
  494. margin-top: 18rpx;
  495. padding: 8rpx 18rpx;
  496. border-radius: 15rpx;
  497. background: rgba(255, 255, 255, 0.18);
  498. color: #ffffff;
  499. backdrop-filter: blur(8px);
  500. }
  501. .project-name {
  502. max-width: 360rpx;
  503. overflow: hidden;
  504. text-overflow: ellipsis;
  505. white-space: nowrap;
  506. font-size: 20rpx;
  507. }
  508. .notice-wrap {
  509. margin-left: 12rpx;
  510. padding-right: 28rpx;
  511. }
  512. .notice-button {
  513. width: 30rpx;
  514. height: 30rpx;
  515. display: flex;
  516. align-items: center;
  517. justify-content: center;
  518. }
  519. .notice-glyph {
  520. font-size: 32rpx;
  521. line-height: 1;
  522. }
  523. .content-shell {
  524. position: relative;
  525. z-index: 2;
  526. margin-top: -325rpx;
  527. padding: 0 24rpx calc(env(safe-area-inset-bottom) + 34rpx);
  528. }
  529. .page-title {
  530. margin: 0 6rpx 22rpx;
  531. color: #071426;
  532. font-size: 72rpx;
  533. font-weight: 800;
  534. letter-spacing: 1rpx;
  535. }
  536. .section-card {
  537. margin-bottom: 22rpx;
  538. padding: 26rpx 22rpx 24rpx;
  539. border-radius: 20rpx;
  540. background: rgba(255, 255, 255, 0.94);
  541. box-shadow: 0 14rpx 24rpx rgba(13, 43, 91, 0.02);
  542. border: 1rpx solid #eef3fc;
  543. }
  544. .section-head {
  545. display: flex;
  546. align-items: center;
  547. justify-content: space-between;
  548. gap: 16rpx;
  549. }
  550. .section-title {
  551. color: #101c2e;
  552. font-size: 36rpx;
  553. font-weight: 700;
  554. }
  555. .section-tip {
  556. display: flex;
  557. align-items: center;
  558. gap: 8rpx;
  559. color: #5572a3;
  560. font-size: 24rpx;
  561. }
  562. .core-scroll {
  563. margin-top: 22rpx;
  564. white-space: nowrap;
  565. }
  566. .core-list {
  567. display: inline-flex;
  568. gap: 18rpx;
  569. padding-bottom: 4rpx;
  570. }
  571. .core-item {
  572. position: relative;
  573. width: 188rpx;
  574. min-height: 238rpx;
  575. padding: 24rpx 18rpx 20rpx;
  576. border-radius: 22rpx;
  577. background: #f9fbfd;
  578. border: 1rpx solid #e5edf8;
  579. box-sizing: border-box;
  580. display: flex;
  581. flex-direction: column;
  582. align-items: center;
  583. }
  584. .core-item.active {
  585. border-color: #246bff;
  586. background: linear-gradient(180deg, #ffffff 0%, #dfebfd 100%);
  587. box-shadow: inset 0 0 0 2rpx rgba(36, 107, 255, 0.08);
  588. .core-name {
  589. color: #0b57f6;
  590. }
  591. }
  592. .core-icon {
  593. width: 84rpx;
  594. height: 84rpx;
  595. border-radius: 24rpx;
  596. display: flex;
  597. align-items: center;
  598. justify-content: center;
  599. text {
  600. font-size: 42rpx;
  601. font-weight: 800;
  602. }
  603. }
  604. .core-name {
  605. margin-top: 22rpx;
  606. color: #111d2f;
  607. font-size: 20rpx;
  608. font-weight: 700;
  609. white-space: normal;
  610. }
  611. .core-desc {
  612. margin-top: 10rpx;
  613. color: #6f7f96;
  614. font-size: 18rpx;
  615. line-height: 1.5;
  616. white-space: normal;
  617. }
  618. .core-indicator {
  619. position: absolute;
  620. left: 50%;
  621. bottom: 16rpx;
  622. width: 34rpx;
  623. height: 8rpx;
  624. margin-left: -17rpx;
  625. border-radius: 999rpx;
  626. background: #246bff;
  627. }
  628. .tool-grid {
  629. display: grid;
  630. grid-template-columns: repeat(5, minmax(0, 1fr));
  631. gap: 18rpx;
  632. margin-top: 22rpx;
  633. }
  634. .tool-item {
  635. min-height: 140rpx;
  636. padding: 22rpx 10rpx 18rpx;
  637. border-radius: 20rpx;
  638. background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  639. border: 1rpx solid #e5edf8;
  640. display: flex;
  641. flex-direction: column;
  642. align-items: center;
  643. justify-content: center;
  644. box-sizing: border-box;
  645. }
  646. .tool-icon {
  647. width: 54rpx;
  648. height: 54rpx;
  649. }
  650. .tool-title {
  651. margin-top: 16rpx;
  652. color: #111d2f;
  653. font-size: 22rpx;
  654. line-height: 1.3;
  655. text-align: center;
  656. }
  657. .daily-list {
  658. display: grid;
  659. grid-template-columns: repeat(3, minmax(0, 1fr));
  660. gap: 5rpx;
  661. margin-top: 22rpx;
  662. }
  663. .daily-item {
  664. padding: 30rpx 0rpx;
  665. border-radius: 16rpx;
  666. background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  667. border: 1rpx solid #e5edf8;
  668. display: flex;
  669. // flex-direction: column;
  670. // align-items: center;
  671. gap: 10rpx;
  672. // min-width: 0;
  673. }
  674. .daily-subtitle-wrap {
  675. display: flex;
  676. align-items: center;
  677. margin-top: 8rpx;
  678. gap: 8rpx;
  679. }
  680. .daily-icon {
  681. width: 64rpx;
  682. height: 64rpx;
  683. flex-shrink: 0;
  684. }
  685. .daily-content {
  686. flex: 1;
  687. min-width: 0;
  688. }
  689. .daily-title {
  690. color: #111d2f;
  691. font-size: 22rpx;
  692. font-weight: 700;
  693. }
  694. .daily-subtitle {
  695. // margin-top: 8rpx;
  696. color: #6f7f96;
  697. font-size: 16rpx;
  698. white-space: nowrap;
  699. overflow: hidden;
  700. text-overflow: ellipsis;
  701. }
  702. .todo-list {
  703. display: grid;
  704. grid-template-columns: repeat(2, minmax(0, 1fr));
  705. gap: 18rpx;
  706. margin-top: 22rpx;
  707. }
  708. .todo-item {
  709. min-width: 0;
  710. padding: 22rpx 20rpx;
  711. border-radius: 22rpx;
  712. background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  713. border: 1rpx solid #e5edf8;
  714. display: flex;
  715. align-items: center;
  716. gap: 16rpx;
  717. }
  718. .todo-icon {
  719. width: 58rpx;
  720. height: 58rpx;
  721. flex-shrink: 0;
  722. }
  723. .todo-content {
  724. flex: 1;
  725. min-width: 0;
  726. }
  727. .todo-title {
  728. color: #111d2f;
  729. font-size: 26rpx;
  730. font-weight: 700;
  731. }
  732. .todo-subtitle {
  733. margin-top: 8rpx;
  734. color: #6f7f96;
  735. font-size: 22rpx;
  736. }
  737. .todo-right {
  738. display: flex;
  739. align-items: flex-end;
  740. gap: 6rpx;
  741. }
  742. .todo-count {
  743. font-size: 48rpx;
  744. font-weight: 800;
  745. line-height: 1;
  746. }
  747. .todo-unit {
  748. margin-bottom: 6rpx;
  749. color: #6f7f96;
  750. font-size: 22rpx;
  751. }
  752. </style>