index.vue 18 KB

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