index.vue 26 KB

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