index.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  1. <template>
  2. <div class="agri-file-page" :style="{ height: `calc(100vh - ${tabBarHeight}px)` }">
  3. <farm-header />
  4. <div class="nav-cards">
  5. <div v-for="item in navCards" :key="item.key" class="nav-card"
  6. :class="{ 'is-active': activeNav === item.key }" @click="activeNav = item.key">
  7. <img class="nav-card__icon" :src="item.icon" alt="" />
  8. <span class="nav-card__label">{{ t(item.labelKey) }}</span>
  9. </div>
  10. </div>
  11. <div class="content-panel">
  12. <div v-show="activeNav === 'patrol'">
  13. <div v-for="item in patrolList" :key="item.id" class="tracking-item"
  14. :class="`tracking-item--${item.theme}`" @click="goGrowthTrack(item)">
  15. <div class="tracking-item__header">
  16. <div class="tracking-item__header-row">
  17. <div class="tracking-item__header-left">
  18. <span class="tracking-item__level">
  19. <el-icon><BellFilled /></el-icon>
  20. {{ item.level }}
  21. </span>
  22. <span class="tracking-item__title van-ellipsis">
  23. {{ item.title }}<span v-if="item.zone" class="tracking-item__zone"> ({{ item.zone }})</span>
  24. </span>
  25. </div>
  26. <div class="tracking-item__share" @click.stop>
  27. <Icon size="14" color="#2199F8" name="share" />
  28. <span>{{ t("agriFile.forward") }}</span>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="tracking-item__body">
  33. <div class="tracking-item__action">
  34. <div class="tracking-item__action-main">
  35. <div class="tracking-item__icon">
  36. <img :src="item.icon" alt="" />
  37. <span class="tracking-item__reason">{{ item.subject }}</span>
  38. </div>
  39. <div class="tracking-item__issue">{{ item.issue }}</div>
  40. </div>
  41. <div class="tracking-item__btn" @click.stop="openUploadPopup">
  42. <el-icon>
  43. <Plus />
  44. </el-icon>
  45. <span>{{ t("agriFile.uploadPhoto") }}</span>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="crop-archive">
  51. <div class="crop-archive__title">{{ t("agriFile.cropArchive") }}</div>
  52. <PhenologyTrackTimelineItem :list="cropArchiveList" />
  53. </div>
  54. </div>
  55. <div v-show="activeNav === 'album'">
  56. <div class="map-card" @click="goAlbumMap">
  57. <div ref="mapContainer" class="map-container"></div>
  58. <div v-if="noFarmRange" class="map-mask" @click.stop="goAddZone('farm')">
  59. <div class="mask-content">
  60. <div class="mask-content__title">勾画农场区域,关联作物照片</div>
  61. <div class="mask-content__btn">去勾选</div>
  62. </div>
  63. </div>
  64. <div v-else class="add-zone-btn" @click.stop="goAddZone">
  65. <el-icon>
  66. <Plus />
  67. </el-icon>
  68. <span>{{ t("agriFile.addZone") }}</span>
  69. </div>
  70. <div v-for="item in zoneList" :key="item.id" :ref="(el) => setMarkerEl(item.id, el)"
  71. class="zone-marker">
  72. <div class="zone-marker__label">{{ item.name }}</div>
  73. <div class="zone-marker__thumb">
  74. <img :src="item.cover" alt="" />
  75. <span class="zone-marker__badge">{{ item.count }}</span>
  76. </div>
  77. <div class="zone-marker__arrow"></div>
  78. </div>
  79. </div>
  80. <div class="album-grid">
  81. <div class="album-add" @click.stop="goAddZone">
  82. <el-icon class="album-add__icon">
  83. <Plus />
  84. </el-icon>
  85. <span>{{ t("agriFile.addAlbum") }}</span>
  86. </div>
  87. <div v-for="item in albumList" :key="item.id" class="album-card" :class="{ 'is-empty': !item.count }">
  88. <div class="album-card__cover" @click.stop="goAlbumDetail(item)">
  89. <img v-if="item.count && item.cover" :src="item.cover" alt="" />
  90. <img v-else class="album-card__empty-icon" src="@/assets/img/agricultural/photo.png" alt="" />
  91. <span class="album-card__count">{{ t("agriFile.photoCount", { count: item.count }) }}</span>
  92. <div class="album-card__add" @click.stop="openUploadPopup">
  93. <el-icon>
  94. <Plus />
  95. </el-icon>
  96. </div>
  97. </div>
  98. <div class="album-card__name">{{ item.name }}</div>
  99. </div>
  100. </div>
  101. </div>
  102. <div v-show="activeNav === 'report'">
  103. <div v-for="item in reportList" :key="item.id" class="report-card">
  104. <div class="report-card__cover">
  105. <img :src="item.cover" alt="" />
  106. <span class="report-card__date">{{ item.date }}</span>
  107. <span class="report-card__status">
  108. <i class="report-card__dot"></i>
  109. {{ t("agriFile.reportUpdate") }}
  110. </span>
  111. </div>
  112. <div class="report-card__body">
  113. <div class="report-card__title">{{ item.title }}</div>
  114. <div class="report-card__desc">{{ item.desc }}</div>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. <album-upload-popup v-model:show="showUploadPopup" />
  120. <complete-farm-info-popup v-model:show="showCompleteFarmPopup" @confirm="goCompleteFarmInfo" />
  121. <diagnosis-report-popup v-model:show="showDiagnosisReportPopup" @confirm="goDiagnosisReport" />
  122. <restore-planting-popup
  123. v-model:show="showRestorePlantingPopup"
  124. @change-question="handleChangeRestoreQuestion"
  125. @confirm="handleRestorePlantingConfirm"
  126. />
  127. </div>
  128. </template>
  129. <script setup>
  130. import { computed, nextTick, onActivated, onBeforeUnmount, onMounted, ref, watch } from "vue";
  131. import { useStore } from "vuex";
  132. import { useRouter } from "vue-router";
  133. import Overlay from "ol/Overlay";
  134. import { useI18n } from "@/i18n";
  135. import { Icon } from 'vant';
  136. import FileMap from "./fileMap";
  137. import * as util from "@/common/ol_common.js";
  138. import farmHeader from "@/components/farmHeader.vue";
  139. import albumUploadPopup from "./components/albumUploadPopup.vue";
  140. import completeFarmInfoPopup from "@/components/popup/completeFarmInfoPopup.vue";
  141. import diagnosisReportPopup from "@/components/popup/diagnosisReportPopup.vue";
  142. import restorePlantingPopup from "@/components/popup/restorePlantingPopup.vue";
  143. import PhenologyTrackTimelineItem from "@/components/pageComponents/PhenologyTrackTimelineItem.vue";
  144. const { t } = useI18n();
  145. const store = useStore();
  146. const router = useRouter();
  147. const tabBarHeight = computed(() => store.state.home.tabBarHeight);
  148. const defaultCover = require("@/assets/img/home/banner.png");
  149. const DEFAULT_CENTER = [113.6142086995688, 23.585836479509055];
  150. const activeNav = ref("patrol");
  151. const mapContainer = ref(null);
  152. const fileMap = new FileMap();
  153. const markerEls = {};
  154. const mapOverlays = [];
  155. const noFarmRange = ref(true);
  156. const navCards = [
  157. {
  158. key: "patrol",
  159. labelKey: "agriFile.patrolRecord",
  160. icon: require("@/assets/img/agricultural/icon-1.png"),
  161. },
  162. {
  163. key: "album",
  164. labelKey: "agriFile.agriAlbum",
  165. icon: require("@/assets/img/agricultural/icon-2.png"),
  166. },
  167. {
  168. key: "report",
  169. labelKey: "agriFile.diagnosisReport",
  170. icon: require("@/assets/img/agricultural/icon-3.png"),
  171. },
  172. ];
  173. const zoneList = ref([
  174. { id: 1, name: "", count: 2, cover: defaultCover, longitude: 113.612409, latitude: 23.587036 },
  175. { id: 2, name: "", count: 2, cover: defaultCover, longitude: 113.615809, latitude: 23.586636 },
  176. { id: 3, name: "", count: 2, cover: defaultCover, longitude: 113.613609, latitude: 23.584436 },
  177. { id: 4, name: "", count: 2, cover: defaultCover, longitude: 113.615609, latitude: 23.585036 },
  178. ]);
  179. const albumList = ref([
  180. { id: 1, name: "", count: 0, cover: "" },
  181. { id: 2, name: "", count: 125, cover: defaultCover },
  182. { id: 3, name: "", count: 125, cover: defaultCover },
  183. ]);
  184. const reportCover = require("@/assets/img/common/sd-1.jpg");
  185. const reportList = ref([
  186. { id: 1, title: "", desc: "", date: "", cover: reportCover },
  187. { id: 2, title: "", desc: "", date: "", cover: require("@/assets/img/common/sd-2.jpg") },
  188. { id: 3, title: "", desc: "", date: "", cover: require("@/assets/img/common/sd-3.jpg") },
  189. ]);
  190. const showUploadPopup = ref(false);
  191. const showCompleteFarmPopup = ref(false);
  192. const showDiagnosisReportPopup = ref(false);
  193. // 后续由接口控制是否展示恢复种植服务弹窗
  194. const showRestorePlantingPopup = ref(true);
  195. const patrolList = ref([
  196. {
  197. id: 1,
  198. type: "growth",
  199. theme: "blue",
  200. level: "",
  201. title: "",
  202. subject: "",
  203. issue: "",
  204. icon: require("@/assets/img/report/wh-icon.png"),
  205. },
  206. {
  207. id: 2,
  208. type: "abnormal",
  209. theme: "blue",
  210. level: "",
  211. title: "",
  212. subject: "",
  213. issue: "",
  214. icon: require("@/assets/img/report/wh-icon.png"),
  215. },
  216. ]);
  217. const cropArchiveList = ref([
  218. { id: 1, date: "2025-04-18", zone_name: "", content: "" },
  219. { id: 2, date: "2025-04-18", zone_name: "", content: "" },
  220. { id: 3, date: "2025-04-10", zone_name: "", content: "" },
  221. ]);
  222. const setMarkerEl = (id, el) => {
  223. if (el) markerEls[id] = el;
  224. else delete markerEls[id];
  225. };
  226. const getFarmCenter = () => {
  227. try {
  228. const farm = JSON.parse(localStorage.getItem("selectedFarmData") || "{}");
  229. const wkt = farm.wkt || farm.geom_wkt || farm.farm_location;
  230. if (typeof wkt === "string" && /^POINT\s*\(/i.test(wkt.trim())) {
  231. return util.wktCastGeom(wkt).getFirstCoordinate();
  232. }
  233. } catch {
  234. // ignore
  235. }
  236. return DEFAULT_CENTER;
  237. };
  238. const clearMapOverlays = () => {
  239. if (!fileMap.kmap?.map) {
  240. mapOverlays.length = 0;
  241. return;
  242. }
  243. mapOverlays.forEach((overlay) => fileMap.kmap.map.removeOverlay(overlay));
  244. mapOverlays.length = 0;
  245. };
  246. const bindZoneOverlays = () => {
  247. if (!fileMap.kmap?.map) return;
  248. clearMapOverlays();
  249. zoneList.value.forEach((zone) => {
  250. const el = markerEls[zone.id];
  251. if (!el || zone.longitude == null || zone.latitude == null) return;
  252. const overlay = new Overlay({
  253. element: el,
  254. position: [zone.longitude, zone.latitude],
  255. positioning: "bottom-center",
  256. stopEvent: false,
  257. });
  258. fileMap.kmap.map.addOverlay(overlay);
  259. mapOverlays.push(overlay);
  260. });
  261. };
  262. const initAlbumMap = async () => {
  263. await nextTick();
  264. if (!mapContainer.value) return;
  265. const center = getFarmCenter();
  266. fileMap.initMap(`POINT(${center[0]} ${center[1]})`, mapContainer.value);
  267. await nextTick();
  268. if (noFarmRange.value) {
  269. zoneList.value = [];
  270. albumList.value = [];
  271. return;
  272. }
  273. bindZoneOverlays();
  274. fileMap.kmap?.map?.updateSize?.();
  275. };
  276. const fillMockLabels = () => {
  277. const zoneName = t("agriFile.zoneLabel", { n: 1 });
  278. const albumName = t("agriFile.zoneOne");
  279. zoneList.value = zoneList.value.map((item) => ({ ...item, name: zoneName }));
  280. albumList.value = albumList.value.map((item) => ({ ...item, name: albumName }));
  281. reportList.value = reportList.value.map((item) => ({
  282. ...item,
  283. title: t("agriFile.reportTitle"),
  284. desc: t("agriFile.reportDesc"),
  285. date: t("agriFile.reportDate"),
  286. }));
  287. patrolList.value = patrolList.value.map((item, index) => ({
  288. ...item,
  289. level: t("agriFile.riskLevel2"),
  290. title: t(index === 0 ? "agriFile.patrolGrowthTitle" : "agriFile.patrolAbnormalTitle"),
  291. zone: albumName,
  292. subject: t("agriFile.patrolSubject"),
  293. issue: t("agriFile.patrolIssue"),
  294. }));
  295. cropArchiveList.value = cropArchiveList.value.map((item, index) => ({
  296. ...item,
  297. zone_name: albumName,
  298. content: t(index % 2 === 0 ? "agriFile.cropArchiveMetric" : "agriFile.cropArchiveAbnormal"),
  299. }));
  300. };
  301. const goAddZone = (type) => {
  302. router.push(
  303. {
  304. path: "/add_zone",
  305. query: {
  306. type,
  307. },
  308. }
  309. );
  310. };
  311. const goAlbumMap = () => {
  312. router.push("/album_map");
  313. };
  314. const goGrowthTrack = (item) => {
  315. router.push({
  316. path: "/growth_track",
  317. query: { id: item?.id, type: item?.type || "growth" },
  318. });
  319. };
  320. const openUploadPopup = () => {
  321. showUploadPopup.value = true;
  322. };
  323. const goCompleteFarmInfo = () => {
  324. router.push("/entry_information");
  325. };
  326. const goDiagnosisReport = () => {
  327. activeNav.value = "report";
  328. };
  329. const handleChangeRestoreQuestion = () => {
  330. // 后续对接接口更换问题
  331. };
  332. const handleRestorePlantingConfirm = () => {
  333. // 后续对接接口提交时间
  334. };
  335. const goAlbumDetail = (item) => {
  336. router.push({
  337. path: "/region_albums",
  338. query: {
  339. id: item?.id,
  340. name: item?.name || "",
  341. noImage: item?.count ? "false" : "true",
  342. },
  343. });
  344. };
  345. onMounted(() => {
  346. fillMockLabels();
  347. initAlbumMap();
  348. });
  349. onActivated(() => {
  350. fillMockLabels();
  351. initAlbumMap();
  352. });
  353. onBeforeUnmount(clearMapOverlays);
  354. watch(activeNav, (key) => {
  355. if (key === "album") {
  356. initAlbumMap();
  357. }
  358. });
  359. </script>
  360. <style lang="scss" scoped>
  361. .agri-file-page {
  362. position: relative;
  363. display: flex;
  364. flex-direction: column;
  365. width: 100%;
  366. height: 100%;
  367. overflow: hidden;
  368. background: linear-gradient(180deg, #D1EBFF 0%, #FFFFFF 100%);
  369. .nav-cards {
  370. position: relative;
  371. z-index: 2;
  372. display: flex;
  373. justify-content: space-around;
  374. padding: 10px 10px;
  375. margin-bottom: 10px;
  376. .nav-card {
  377. position: relative;
  378. display: flex;
  379. flex-direction: column;
  380. align-items: center;
  381. justify-content: center;
  382. border-radius: 8px;
  383. background: #fff;
  384. width: 90px;
  385. height: 64px;
  386. box-shadow: 0px 4px 4px 0px #0000000D;
  387. .nav-card__icon {
  388. width: 26px;
  389. height: 26px;
  390. margin-bottom: 4px;
  391. }
  392. &.is-active {
  393. background: linear-gradient(180deg, #5BB8FF 0%, #2199F8 100%);
  394. box-shadow: 0 4px 10px rgba(33, 153, 248, 0.28);
  395. .nav-card__icon {
  396. filter: brightness(0) invert(1);
  397. }
  398. .nav-card__label {
  399. color: #fff;
  400. }
  401. &::after {
  402. content: "";
  403. position: absolute;
  404. left: 50%;
  405. bottom: -5px;
  406. transform: translateX(-50%);
  407. border-left: 6px solid transparent;
  408. border-right: 6px solid transparent;
  409. border-top: 6px solid #2199F8;
  410. z-index: 3;
  411. }
  412. }
  413. }
  414. }
  415. .content-panel {
  416. flex: 1;
  417. overflow-y: auto;
  418. background: linear-gradient(360deg, rgba(229, 243, 255, 0.55) 0%, rgba(255, 255, 255, 0.55) 100%);
  419. border-radius: 20px 20px 0 0;
  420. border: 1px solid #FFFFFF;
  421. padding: 18px 10px;
  422. &::-webkit-scrollbar {
  423. display: none;
  424. }
  425. .map-card {
  426. position: relative;
  427. height: 210px;
  428. }
  429. .map-container {
  430. width: 100%;
  431. height: 100%;
  432. clip-path: inset(0px round 8px);
  433. }
  434. .map-mask {
  435. position: absolute;
  436. top: 0;
  437. left: 0;
  438. z-index: 5;
  439. width: 100%;
  440. height: 100%;
  441. background: rgba(0, 0, 0, 0.5);
  442. border-radius: 8px;
  443. display: flex;
  444. align-items: center;
  445. justify-content: center;
  446. pointer-events: auto;
  447. cursor: pointer;
  448. .mask-content {
  449. background: rgba(255, 255, 255, 0.2);
  450. backdrop-filter: blur(4px);
  451. padding: 8px 10px;
  452. border-radius: 4px;
  453. width: fit-content;
  454. display: flex;
  455. flex-direction: column;
  456. align-items: center;
  457. justify-content: center;
  458. gap: 12px;
  459. color: #fff;
  460. pointer-events: none;
  461. &__title {
  462. font-size: 18px;
  463. font-family: "PangMenZhengDao";
  464. }
  465. &__btn {
  466. padding: 0 24px;
  467. height: 32px;
  468. line-height: 32px;
  469. border-radius: 24px;
  470. background: #2199F8;
  471. }
  472. }
  473. }
  474. .zone-marker {
  475. display: flex;
  476. flex-direction: column;
  477. align-items: center;
  478. pointer-events: none;
  479. &__label {
  480. padding: 3px 14px;
  481. border-radius: 25px;
  482. background: #fff;
  483. color: #0A0A0A;
  484. font-size: 12px;
  485. }
  486. &__thumb {
  487. position: relative;
  488. width: 42px;
  489. height: 42px;
  490. margin-top: 8px;
  491. img {
  492. width: 100%;
  493. height: 100%;
  494. object-fit: cover;
  495. border: 2px solid #fff;
  496. border-radius: 6px;
  497. box-sizing: border-box;
  498. }
  499. }
  500. &__badge {
  501. position: absolute;
  502. top: -6px;
  503. right: -6px;
  504. min-width: 18px;
  505. height: 18px;
  506. line-height: 16px;
  507. border-radius: 50%;
  508. background: #fff;
  509. color: #0A0A0A;
  510. font-size: 12px;
  511. text-align: center;
  512. }
  513. &__arrow {
  514. width: 0;
  515. height: 0;
  516. border-left: 5px solid transparent;
  517. border-right: 5px solid transparent;
  518. border-top: 6px solid #fff;
  519. }
  520. }
  521. .add-zone-btn {
  522. position: absolute;
  523. right: 5px;
  524. bottom: 10px;
  525. z-index: 5;
  526. display: flex;
  527. align-items: center;
  528. gap: 2px;
  529. padding: 5px 10px;
  530. border-radius: 4px;
  531. background: #fff;
  532. color: #2199F8;
  533. font-weight: 500;
  534. }
  535. .album-grid {
  536. display: grid;
  537. grid-template-columns: 1fr 1fr;
  538. gap: 16px;
  539. margin-top: 16px;
  540. box-sizing: border-box;
  541. .album-add {
  542. align-self: start;
  543. display: flex;
  544. flex-direction: column;
  545. align-items: center;
  546. justify-content: center;
  547. width: 100%;
  548. aspect-ratio: 1;
  549. border-radius: 5px;
  550. background: #FFFFFF;
  551. color: #969494;
  552. font-size: 16px;
  553. &__icon {
  554. margin-bottom: 6px;
  555. font-size: 20px;
  556. }
  557. }
  558. .album-card {
  559. width: 100%;
  560. &.is-empty {
  561. .album-card__cover {
  562. display: flex;
  563. align-items: center;
  564. justify-content: center;
  565. overflow: hidden;
  566. border-radius: 8px;
  567. background: linear-gradient(180deg, #E0F1FF 0%, #C2E4FF 100%);
  568. }
  569. }
  570. &__cover {
  571. position: relative;
  572. width: 100%;
  573. aspect-ratio: 1;
  574. img:not(.album-card__empty-icon) {
  575. width: 100%;
  576. height: 100%;
  577. object-fit: cover;
  578. border-radius: 6px;
  579. }
  580. }
  581. &__empty-icon {
  582. width: 50px;
  583. height: 50px;
  584. }
  585. &__count {
  586. position: absolute;
  587. top: 1px;
  588. right: 0;
  589. padding: 1px 5px;
  590. border-radius: 0 5px 0 5px;
  591. background: rgba(0, 0, 0, 0.4);
  592. backdrop-filter: blur(4px);
  593. color: #fff;
  594. }
  595. &__add {
  596. position: absolute;
  597. right: 8px;
  598. bottom: 8px;
  599. z-index: 1;
  600. display: flex;
  601. align-items: center;
  602. justify-content: center;
  603. width: 44px;
  604. height: 44px;
  605. border-radius: 50%;
  606. background: #2199F8;
  607. color: #fff;
  608. font-size: 20px;
  609. box-shadow: 0 2px 8px rgba(33, 153, 248, 0.35);
  610. }
  611. &__name {
  612. margin-top: 10px;
  613. color: #1F1F1F;
  614. }
  615. }
  616. }
  617. .report-card {
  618. margin-bottom: 10px;
  619. border-radius: 8px;
  620. background: #fff;
  621. &:last-child {
  622. margin-bottom: 0;
  623. }
  624. &__cover {
  625. position: relative;
  626. width: 100%;
  627. height: 158px;
  628. img {
  629. display: block;
  630. width: 100%;
  631. height: 100%;
  632. object-fit: cover;
  633. border-radius: 5px;
  634. }
  635. }
  636. &__date {
  637. position: absolute;
  638. top: 0;
  639. padding: 5px 12px;
  640. border-radius: 4px;
  641. background: rgba(0, 0, 0, 0.45);
  642. backdrop-filter: blur(4px);
  643. color: #fff;
  644. font-size: 16px;
  645. border-radius: 5px 0 5px 0;
  646. }
  647. &__status {
  648. position: absolute;
  649. top: 10px;
  650. right: 0;
  651. display: flex;
  652. align-items: center;
  653. gap: 4px;
  654. padding: 2px 13px;
  655. border-radius: 20px 0 0 20px;
  656. background: #FF5454;
  657. color: #fff;
  658. font-size: 12px;
  659. }
  660. &__dot {
  661. width: 6px;
  662. height: 6px;
  663. border-radius: 50%;
  664. background: #fff;
  665. }
  666. &__body {
  667. padding: 10px;
  668. margin-top: 4px;
  669. }
  670. &__title {
  671. font-size: 16px;
  672. font-weight: 500;
  673. }
  674. &__desc {
  675. margin-top: 4px;
  676. color: #9E9B9B;
  677. }
  678. }
  679. .tracking-item {
  680. width: 100%;
  681. margin-bottom: 16px;
  682. box-shadow: 0px 4px 4px 0px rgba(33, 153, 248, 0.1);
  683. &:last-of-type {
  684. margin-bottom: 0;
  685. }
  686. &__header {
  687. position: relative;
  688. padding: 10px 10px 20px;
  689. border-radius: 10px 10px 0 0;
  690. background: linear-gradient(180deg, #86CAFF 0%, #2199F8 48.5%);
  691. }
  692. &__header-row {
  693. display: flex;
  694. align-items: center;
  695. justify-content: space-between;
  696. }
  697. &__header-left {
  698. display: flex;
  699. align-items: center;
  700. gap: 5px;
  701. }
  702. &__level {
  703. display: flex;
  704. align-items: center;
  705. gap: 4px;
  706. padding: 1px 4px;
  707. border-radius: 2px;
  708. background: #fff;
  709. color: #FF6A6A;
  710. font-size: 12px;
  711. }
  712. &__title {
  713. color: #fff;
  714. font-size: 16px;
  715. font-weight: 500;
  716. }
  717. &__zone {
  718. font-size: 12px;
  719. }
  720. &__share {
  721. display: flex;
  722. align-items: center;
  723. gap: 4px;
  724. padding: 2px 10px;
  725. border-radius: 25px;
  726. background: #fff;
  727. color: #2199F8;
  728. font-size: 12px;
  729. }
  730. &__body {
  731. position: relative;
  732. padding: 10px;
  733. margin-top: -8px;
  734. border-radius: 10px;
  735. background: #fff;
  736. &::before {
  737. content: "";
  738. position: absolute;
  739. top: -7px;
  740. left: 21%;
  741. width: 0;
  742. height: 0;
  743. border-left: 7px solid transparent;
  744. border-right: 7px solid transparent;
  745. border-bottom: 7px solid #fff;
  746. transform: translateX(-50%);
  747. }
  748. }
  749. &__action {
  750. display: flex;
  751. align-items: center;
  752. justify-content: space-between;
  753. border: 1px solid rgba(33, 153, 248, 0.2);
  754. border-radius: 6px;
  755. padding: 8px;
  756. }
  757. &__icon {
  758. display: flex;
  759. align-items: center;
  760. gap: 5px;
  761. img {
  762. width: 18px;
  763. height: 16px;
  764. }
  765. }
  766. &__reason {
  767. color: #2199f8;
  768. font-weight: 500;
  769. }
  770. &__issue {
  771. margin-top: 2px;
  772. color: #2199f8;
  773. font-size: 12px;
  774. }
  775. &__btn {
  776. display: flex;
  777. align-items: center;
  778. gap: 2px;
  779. padding: 7px 10px;
  780. border-radius: 5px;
  781. background: #2199f8;
  782. color: #fff;
  783. font-size: 12px;
  784. }
  785. }
  786. .crop-archive {
  787. padding: 10px;
  788. border-radius: 10px;
  789. background: #fff;
  790. &__title {
  791. position: relative;
  792. display: inline-block;
  793. z-index: 1;
  794. font-size: 16px;
  795. font-weight: 500;
  796. margin-bottom: 5px;
  797. &::after {
  798. content: "";
  799. position: absolute;
  800. left: 0;
  801. bottom: 2px;
  802. z-index: -1;
  803. width: 90px;
  804. height: 6px;
  805. border-radius: 25px;
  806. background: linear-gradient(90deg, #2199f8 0%, rgba(255, 255, 255, 0.37) 100%);
  807. opacity: 0.4;
  808. }
  809. }
  810. }
  811. }
  812. }
  813. </style>