index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747
  1. <template>
  2. <div class="base-container no-events">
  3. <fnHeader showDate></fnHeader>
  4. <div class="content">
  5. <navigation @handleTab="handleTab"></navigation>
  6. <div class="left yes-events">
  7. <tool-list direction="left" :list="leftToolList" @handleActive="handleActiveLeft"></tool-list>
  8. <component :is="components[currentComponent]" />
  9. <!-- 箭头 -->
  10. <div class="arrow" @click="handleShrink">
  11. <el-icon class="icon" color="#141414"><DArrowLeft /></el-icon>
  12. </div>
  13. </div>
  14. <!-- <div class="home-bottom"> -->
  15. <!-- <time-line class="time-wrap yes-events"></time-line>
  16. <img class="fly-icon" src="@/assets/images/home/fly-icon.png" alt=""> -->
  17. <!-- <div class="log-box yes-events">
  18. <chart-box class="overflow">
  19. <template #title-name>
  20. <div class="box-name" @click="handleSelectArea">果园日志</div>
  21. </template>
  22. <div class="log-content">
  23. 2月13日,共抽样193棵树,拍摄了193张照片,{{indicatorChartData.content}}
  24. </div>
  25. <div class="chart-wrap">
  26. <indicator-chart :key="0 + 'log'" type="feature" :chartData="indicatorChartData"></indicator-chart>
  27. </div>
  28. </chart-box>
  29. </div> -->
  30. <!-- <div class="file-box yes-events">
  31. <chart-box name="果园档案">
  32. <template #title-right>
  33. <el-icon class="arrow-icon cursor-pointer" color="#141414"
  34. ><DArrowLeft
  35. /></el-icon>
  36. <div class="edit-btn cursor-pointer" @click="toFilePage">编辑</div>
  37. </template>
  38. <file-bar></file-bar>
  39. </chart-box>
  40. </div> -->
  41. <!-- </div> -->
  42. <div class="right yes-events">
  43. <div class="list">
  44. <chart-box name="农事列表" arrow="arrow-left" :class="{ 'list-wrap': rightIndex === 0 }">
  45. <template v-if="rightIndex === 0">
  46. <album></album>
  47. <!-- <img class="tabs" src="@/assets/images/home/ns-tabs.png" alt="">
  48. <div class="img-box">
  49. <img @click="handleAct(item)" v-for="item in 2" :key="item" :src="require(`@/assets/images/home/0${act<=2&&act==item?item+'-act':item}.png`)" alt="">
  50. </div> -->
  51. </template>
  52. <template v-if="rightIndex === 1">
  53. <div class="img-box1">
  54. <img src="@/assets/images/home/fh01.png" alt="" />
  55. <img src="@/assets/images/home/fh02.png" alt="" />
  56. </div>
  57. </template>
  58. <template v-if="rightIndex === 2">
  59. <div class="btn-wrap">
  60. <div :class="{ active: btnIndex === 0 }" @click="handleBtn(0)">
  61. {{ btnIndex === 0 && btnName != "" ? "采样分区:" + btnName : "选择采样分区" }}
  62. </div>
  63. <div :class="{ active: btnIndex === 1 }" @click="handleBtn(1)">
  64. {{ btnIndex === 1 && btnName != "" ? "单树编号:" + btnName : "选择树" }}
  65. </div>
  66. </div>
  67. <div class="img-box2" v-show="showPoint">
  68. <img v-if="showType === 'point'" src="@/assets/images/home/line-chart.png" alt="" />
  69. <img v-else src="@/assets/images/home/line-chart2.png" alt="" />
  70. <img src="@/assets/images/home/fh01.png" alt="" />
  71. </div>
  72. <div class="img-box2" v-show="!showPoint">
  73. <img v-if="showType === 'point'" src="@/assets/images/home/line-chart1.png" alt="" />
  74. <img v-else src="@/assets/images/home/line-chart3.png" alt="" />
  75. <img src="@/assets/images/home/fh02.png" alt="" />
  76. </div>
  77. </template>
  78. </chart-box>
  79. </div>
  80. <tool-list direction="right" :list="rightToolList" @handleActive="handleActiveRight"></tool-list>
  81. </div>
  82. <!-- 图例 -->
  83. <!-- <img class="legend yes-events" src="@/assets/images/home/legend.png" alt=""> -->
  84. <div class="map-bg map-legend yes-events">
  85. <div class="legend-item legend-title">
  86. <el-checkbox v-model="showMapLegend" @change="handleLegend" label="分区状态" size="large" />
  87. </div>
  88. <div class="item">
  89. <img src="@/assets/images/map/status/status-zc.png" alt="" />
  90. 正常
  91. </div>
  92. <div class="item">
  93. <img src="@/assets/images/map/status/status-szyc.png" alt="" />
  94. 生长异常
  95. </div>
  96. <div class="item">
  97. <img src="@/assets/images/map/status/status-bh.png" alt="" />
  98. 病害异常
  99. </div>
  100. <div class="item">
  101. <img src="@/assets/images/map/status/status-ch.png" alt="" />
  102. 虫害异常
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. <div ref="mapRef" class="bottom-map"></div>
  108. <!-- 图片弹窗 -->
  109. <PicturePreview :imageUrl="urls" :curIndex="urlsIndex"></PicturePreview>
  110. <album-carousel></album-carousel>
  111. <PdfDialog title="果园报告"></PdfDialog>
  112. </template>
  113. <script setup>
  114. import { onMounted, onUnmounted, ref } from "vue";
  115. import config from "@/api/config.js";
  116. import timeLine from "@/components/timeLine.vue";
  117. import PicturePreview from "@/components/PicturePreview.vue";
  118. import fnHeader from "@/components/fnHeader.vue";
  119. import navigation from "@/components/navigation.vue";
  120. import chartBox from "@/components/chartBox.vue";
  121. import toolList from "@/components/toolList.vue";
  122. import fileBar from "@/components/fileBar.vue";
  123. import HomeMap from "./map/homeMap";
  124. import homePage from "./components/homePage.vue";
  125. import weatherPage from "./components/weatherPage.vue";
  126. import phenologyPage from "./components/phenologyPage.vue";
  127. import indicatorChart from "./components/indicatorChart.vue";
  128. import { useRouter } from "vue-router";
  129. import SamplePointLayer from "./map/samplePointLayer";
  130. import { useStore } from "vuex";
  131. import RegionLayer from "./map/regionLayer";
  132. import BlueRegionLayer from "./map/blueRegionLayer";
  133. import eventBus from "@/api/eventBus";
  134. import AlbumCarousel from "./album_compoents/albumCarousel.vue";
  135. import album from "./album/index.vue";
  136. import PdfDialog from "../../components/PdfDialog";
  137. let store = useStore();
  138. const components = {
  139. homePage,
  140. weatherPage,
  141. phenologyPage,
  142. };
  143. //当前农场
  144. const currentFarm = {
  145. id: store.getters.userinfo.curFarmId,
  146. name: store.getters.userinfo.curFarmName,
  147. };
  148. //当前区域
  149. const currentRegion = {
  150. id: null,
  151. name: null,
  152. };
  153. let homeMap = new HomeMap();
  154. let samplePointLayer = null;
  155. let regionLayer = null;
  156. let blueRegionLayer = null;
  157. const router = useRouter();
  158. const mapRef = ref();
  159. onMounted(() => {
  160. homeMap.initMap("POINT(113.61448114737868 23.585550924763083)", mapRef.value);
  161. // homeMap.initMap(store.getters.userinfo.location, mapRef.value);
  162. // regionLayer = new RegionLayer(homeMap.kmap.map, currentFarm, currentRegion)
  163. samplePointLayer = new SamplePointLayer(homeMap.kmap);
  164. blueRegionLayer = new BlueRegionLayer(homeMap.kmap);
  165. getYellow();
  166. // getFarmLog()
  167. //区域切换监听事件
  168. eventBus.on("area:id", areaId);
  169. //选项卡子项事件监听
  170. eventBus.on("handleTabItem", handleTabItem);
  171. });
  172. onUnmounted(() => {
  173. eventBus.off("area:id", areaId);
  174. eventBus.off("handleTabItem", handleTabItem);
  175. });
  176. const blueList = ref([]);
  177. const getBlueRegionList = (callback) => {
  178. VE_API.farm.blueRegionList({ farmId: organId.value, regionId: regionId.value }).then(({ data }) => {
  179. blueList.value = data.map((item) => {
  180. let color = "rgba(255, 255, 255, 0.5)"; //失效区域
  181. if (item.status === 2) {
  182. //物候期风险
  183. color = "rgba(63, 255, 53, 0.5)";
  184. }
  185. if (item.status === 3) {
  186. //生长异常
  187. color = "rgba(255, 252, 61, 0.5)";
  188. }
  189. if (item.status === 4) {
  190. //病虫害
  191. color = "rgba(255, 73, 73, 0.5)";
  192. }
  193. return {
  194. ...item,
  195. color,
  196. };
  197. });
  198. blueRegionLayer.initData(blueList.value);
  199. callback && callback();
  200. });
  201. };
  202. const organId = ref(null);
  203. const regionId = ref(null);
  204. const tabName = ref("");
  205. const tabId = ref(0);
  206. //选项卡事件监听
  207. const handleTab = async ({ name, id, isUpdate, params }) => {
  208. tabName.value = name;
  209. tabId.value = id;
  210. if (id === 0) {
  211. getBlueRegionList(() => {
  212. if (isUpdate) {
  213. handleTabItem(params);
  214. }
  215. });
  216. } else {
  217. getFarmIndexReport(() => {
  218. if (isUpdate) {
  219. handleTabItem(params);
  220. }
  221. });
  222. }
  223. };
  224. //区域切换监听事件
  225. function areaId({ areaId, farmId }) {
  226. organId.value = farmId;
  227. regionId.value = areaId;
  228. samplePointLayer.initData(farmId, areaId);
  229. if (tabId.value === 0) {
  230. getBlueRegionList();
  231. } else {
  232. getFarmIndexReport();
  233. }
  234. }
  235. //选项卡子项事件监听
  236. const handleTabItem = (e) => {
  237. if (reportData.value.blueZoneList) {
  238. const index = reportData.value.blueZoneList.findIndex((item) => item.key === e);
  239. let arr = [];
  240. if (reportData.value.blueZoneList.length) {
  241. arr = blueListConvert(reportData.value.blueZoneList[index].obj, index);
  242. }
  243. blueRegionLayer.initData(arr, "87");
  244. }
  245. };
  246. const reportData = ref({});
  247. const blueListConvert = (data, index) => {
  248. const list = [];
  249. for (let key in data) {
  250. const filterData = reportData.value.blueZoneLegendList[index].list.filter((item) => item.val === key);
  251. const arr = data[key];
  252. arr.forEach((item) => {
  253. const listObj = blueList.value.filter((ele) => ele.blueZoneCode === item);
  254. const updateList = listObj.map((ele) => {
  255. return {
  256. ...ele,
  257. level: key,
  258. name: filterData[0].name,
  259. color: filterData[0].color,
  260. };
  261. });
  262. list.push(...updateList);
  263. });
  264. }
  265. return list;
  266. };
  267. const getFarmIndexReport = (callback) => {
  268. // const params = { farmId:organId.value,regionId:regionId.value, type: tabName.value };
  269. // VE_API.farm.farmIndexReport(params).then(({data,code}) => {
  270. // if (code === 0) {
  271. // reportData.value = data || {};
  272. // let arr = []
  273. // if(data.blueZoneList.length){
  274. // arr = blueListConvert(data.blueZoneList[0].obj,0)
  275. // }
  276. // blueRegionLayer.initData(arr,'87')
  277. // callback && callback()
  278. // }
  279. // });
  280. };
  281. const indicatorChartData = ref({});
  282. const blueZone = ref("ws0y1meyhxp4");
  283. const getFarmLog = () => {
  284. console.log("getfarmlog");
  285. const params = {
  286. id: null,
  287. farmId: 766,
  288. blueZone: blueZone.value,
  289. };
  290. VE_API.warning.fetchFarmLog(params).then(({ data }) => {
  291. indicatorChartData.value = data || {};
  292. eventBus.emit("chart:updateOption", data);
  293. });
  294. };
  295. const urls = ref([]);
  296. const urlsIndex = ref(0);
  297. const getYellow = () => {
  298. VE_API.home.getYellowList().then((res) => {
  299. // urls.value = res.data.map(item =>{
  300. // return {
  301. // ...item,
  302. // imgPath:config.base_img_url2+item.cloudFilename
  303. // }
  304. // })
  305. // urls.value = [
  306. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-07.jpg",
  307. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-08.jpg",
  308. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-09.jpg",
  309. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-10.jpg",
  310. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-11.jpg",
  311. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-12.jpg",
  312. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-13.jpg",
  313. // ]
  314. });
  315. };
  316. const btnIndex = ref(null);
  317. const btnName = ref("");
  318. const handleBtn = (e) => {
  319. btnName.value = "";
  320. btnIndex.value = e;
  321. eventBus.emit("clear:area");
  322. samplePointLayer.updateAreaStatus(e === 0 ? true : false);
  323. regionLayer.resetData();
  324. samplePointLayer.resetPoint();
  325. };
  326. //点击果园日志
  327. const handleSelectArea = () => {
  328. btnName.value = "";
  329. btnIndex.value = null;
  330. eventBus.emit("clear:area");
  331. regionLayer.resetData();
  332. samplePointLayer.resetPoint();
  333. samplePointLayer.updateAreaStatus(true);
  334. };
  335. //农事点击高亮
  336. const act = ref(null);
  337. const handleAct = (v) => {
  338. act.value = v;
  339. samplePointLayer.resetPoint();
  340. if (v === 1) {
  341. regionLayer.selectAreaMultiple([
  342. { value: 2, color: "blue" },
  343. { value: 4, color: "blue1" },
  344. { value: 5, color: "blue2" },
  345. { value: 7, color: "blue" },
  346. { value: 13, color: "blue2" },
  347. ]);
  348. }
  349. if (v === 2) {
  350. regionLayer.selectAreaMultiple([
  351. { value: 1, color: "blue" },
  352. { value: 2, color: "blue1" },
  353. { value: 9, color: "blue2" },
  354. { value: 12, color: "blue2" },
  355. ]);
  356. }
  357. };
  358. //柱状图点击事件监听
  359. eventBus.on("echart:barClick", (e) => {
  360. btnName.value = "";
  361. btnIndex.value = null;
  362. eventBus.emit("clear:area");
  363. samplePointLayer.updateAreaStatus(false);
  364. const arr = ["花穗伸长", "啃食虫害", "毛毡病"];
  365. const isDraw = arr.includes(e);
  366. const index = arr.indexOf(e);
  367. if (isDraw) {
  368. if (index === 0) {
  369. regionLayer.selectAreaMultiple([
  370. { value: 0, color: "green" },
  371. { value: 1, color: "green" },
  372. { value: 2, color: "green" },
  373. { value: 3, color: "green1" },
  374. { value: 4, color: "green1" },
  375. { value: 5, color: "green2" },
  376. { value: 6, color: "green1" },
  377. { value: 7, color: "green2" },
  378. { value: 8, color: "green2" },
  379. { value: 9, color: "green" },
  380. { value: 10, color: "green" },
  381. { value: 11, color: "green1" },
  382. { value: 12, color: "green2" },
  383. { value: 13, color: "green" },
  384. { value: 14, color: "green2" },
  385. ]);
  386. } else if (index === 1) {
  387. regionLayer.selectAreaMultiple([{ value: 6, color: "red" }]);
  388. } else {
  389. regionLayer.selectAreaMultiple([
  390. { value: 12, color: "red2" },
  391. { value: 10, color: "red" },
  392. { value: 1, color: "red" },
  393. ]);
  394. }
  395. }
  396. });
  397. //黄板点击事件监听
  398. eventBus.on("click:yellowBlock", (e) => {
  399. const arr = ["113.61396985128522", "113.61390710255375", "113.61491218688275"];
  400. if (arr[0] == e) {
  401. urls.value = ["HB-ws0y1menggxv"];
  402. urlsIndex.value = 0;
  403. }
  404. if (arr[1] == e) {
  405. urls.value = ["HB-ws0y1mg0pvd"];
  406. urlsIndex.value = 3;
  407. }
  408. if (arr[2] == e) {
  409. urls.value = ["HB-ws0y1mg9wpcp"];
  410. urlsIndex.value = 6;
  411. }
  412. eventBus.emit("dialog:show", true);
  413. });
  414. const showPoint = ref(true);
  415. const showType = ref("point");
  416. eventBus.on("click:updateArea", (e) => {
  417. blueZone.value = e.value;
  418. btnName.value = e.name;
  419. regionLayer.selectArea(e.name * 1 === 0 ? 0 : e.name * 1 - 1, "blue");
  420. //getFarmLog()
  421. });
  422. const currentComponent = ref("homePage");
  423. const handleActiveLeft = (e) => {
  424. currentComponent.value = e.componentName;
  425. if (e.title === "首页") {
  426. router.push("/warningHome");
  427. }
  428. };
  429. const leftToolList = [
  430. {
  431. title: "首页",
  432. name: "home",
  433. componentName: "homePage",
  434. },
  435. {
  436. title: "气象预警",
  437. componentName: "weatherPage",
  438. },
  439. {
  440. title: "物候调节",
  441. componentName: "phenologyPage",
  442. },
  443. {
  444. title: "病虫测报",
  445. },
  446. {
  447. title: "营养评估",
  448. },
  449. ];
  450. const rightIndex = ref(0);
  451. const handleActiveRight = ({ index }) => {
  452. rightIndex.value = index;
  453. btnIndex.value = null;
  454. btnName.value = "";
  455. samplePointLayer.updateAreaStatus(false);
  456. regionLayer.resetData();
  457. samplePointLayer.resetPoint();
  458. if (index !== 0) {
  459. act.value = null;
  460. }
  461. };
  462. const hanleRightIndex = (num) => {
  463. rightIndex.value = num;
  464. eventBus.emit("tool:updateAct", num);
  465. };
  466. const rightToolList = [
  467. {
  468. title: "农事列表",
  469. index: 0,
  470. },
  471. {
  472. title: "处方分析",
  473. index: 2,
  474. },
  475. {
  476. title: "复核对比",
  477. index: 1,
  478. },
  479. ];
  480. // 跳转果园档案
  481. const toFilePage = () => {
  482. router.push("/garden-file");
  483. };
  484. // 地图图例
  485. const showMapLegend = ref(true);
  486. const handleLegend = (e) => {
  487. blueRegionLayer.toggleLayer(e);
  488. };
  489. </script>
  490. <style lang="scss" scoped>
  491. .base-container {
  492. width: 100%;
  493. height: 100vh;
  494. color: #fff;
  495. position: absolute;
  496. box-sizing: border-box;
  497. z-index: 1;
  498. .content {
  499. width: 100%;
  500. height: calc(100% - 74px - 48px);
  501. display: flex;
  502. justify-content: space-between;
  503. box-sizing: border-box;
  504. .left,
  505. .right {
  506. width: calc(376px + 54px);
  507. height: 100%;
  508. margin-top: 10px;
  509. box-sizing: border-box;
  510. display: flex;
  511. position: relative;
  512. }
  513. .left {
  514. background: #101010;
  515. border-radius: 4px;
  516. border: 1px solid #444444;
  517. .arrow {
  518. position: absolute;
  519. right: -16px;
  520. top: calc(50% - 40px);
  521. background: #fff;
  522. width: 16px;
  523. height: 80px;
  524. line-height: 80px;
  525. border-radius: 0 5px 5px 0;
  526. text-align: center;
  527. cursor: pointer;
  528. }
  529. }
  530. .right {
  531. .list {
  532. width: 100%;
  533. height: 100%;
  534. .btn-wrap {
  535. width: 100%;
  536. height: 25px;
  537. line-height: 25px;
  538. margin: 10px 0;
  539. display: flex;
  540. align-items: center;
  541. justify-content: space-between;
  542. div {
  543. width: 48%;
  544. height: 100%;
  545. color: #ffd489;
  546. border: 1px solid rgba(255, 213, 137, 0.6);
  547. border-radius: 2px;
  548. text-align: center;
  549. font-size: 12px;
  550. cursor: pointer;
  551. &.active {
  552. background: #ffd489;
  553. color: #000;
  554. }
  555. }
  556. }
  557. .img-box {
  558. width: 100%;
  559. height: calc(100% - 35px);
  560. overflow: auto;
  561. }
  562. .img-box1 {
  563. width: 100%;
  564. height: calc(100% - 10px);
  565. overflow: auto;
  566. margin-top: 10px;
  567. }
  568. .img-box2 {
  569. width: 100%;
  570. height: calc(100% - 45px);
  571. overflow: auto;
  572. margin-top: 10px;
  573. }
  574. img {
  575. width: 100%;
  576. height: auto;
  577. object-fit: cover;
  578. margin-bottom: 12px;
  579. cursor: pointer;
  580. }
  581. .mt {
  582. margin-top: -12px;
  583. }
  584. .list-wrap {
  585. ::v-deep {
  586. .chart-content {
  587. padding: 16px 0 0 0;
  588. }
  589. }
  590. }
  591. }
  592. }
  593. .overflow {
  594. overflow: auto;
  595. }
  596. .home-bottom {
  597. display: flex;
  598. align-items: flex-end;
  599. width: calc(100% - 60px - 430px * 2);
  600. height: 152px;
  601. align-self: flex-end;
  602. .time-wrap {
  603. height: 85px;
  604. }
  605. .fly-icon {
  606. width: 148px;
  607. height: 100%;
  608. margin-left: 27px;
  609. }
  610. .log-box {
  611. height: 34%;
  612. width: calc(100% - 340px - 28px);
  613. margin-right: 28px;
  614. .box-name {
  615. width: 89px;
  616. height: 22px;
  617. text-align: center;
  618. line-height: 22px;
  619. border-radius: 20px;
  620. margin: 10px 0 5px 6px;
  621. cursor: pointer;
  622. background: linear-gradient(0deg, #bba269 0%, #3d3523 100%);
  623. }
  624. .log-content {
  625. font-size: 12px;
  626. line-height: 1.5;
  627. padding: 0 18px;
  628. }
  629. .chart-wrap {
  630. width: 100%;
  631. height: calc(100% - 50px);
  632. .line {
  633. margin-top: 10px;
  634. margin-bottom: 12px;
  635. }
  636. img {
  637. width: 100%;
  638. margin-bottom: 10px;
  639. }
  640. }
  641. }
  642. .file-box {
  643. height: 25%;
  644. min-height: 210px;
  645. width: 340px;
  646. position: relative;
  647. img {
  648. width: 100%;
  649. margin-top: 12px;
  650. }
  651. .arrow-icon {
  652. top: -32px;
  653. left: 50%;
  654. position: absolute;
  655. background: #fff;
  656. width: 16px;
  657. height: 80px;
  658. line-height: 80px;
  659. border-radius: 5px 0 0 5px;
  660. text-align: center;
  661. transform: translateX(-50%) rotate(270deg);
  662. }
  663. .edit-btn {
  664. padding: 2px 24px;
  665. background: #ffd489;
  666. border-radius: 4px;
  667. color: #000;
  668. }
  669. }
  670. }
  671. .legend {
  672. position: fixed;
  673. bottom: 8px;
  674. right: 64px;
  675. width: 525px;
  676. height: 16px;
  677. }
  678. .map-bg {
  679. position: fixed;
  680. z-index: 2;
  681. background: rgba(35, 35, 35, 0.8);
  682. border-radius: 18px;
  683. padding: 7px 16px;
  684. right: 440px;
  685. }
  686. .map-btn {
  687. top: 19px;
  688. cursor: pointer;
  689. }
  690. .map-legend {
  691. bottom: 34px;
  692. .item {
  693. display: flex;
  694. align-items: center;
  695. font-size: 14px;
  696. img {
  697. width: 16px;
  698. margin-right: 6px;
  699. }
  700. }
  701. .legend-title {
  702. border-bottom: 1px solid rgba(102, 102, 102, 0.35);
  703. }
  704. .item + .item {
  705. padding-top: 10px;
  706. }
  707. }
  708. }
  709. }
  710. .bottom-map {
  711. width: 100%;
  712. height: 100vh;
  713. position: absolute;
  714. z-index: 0;
  715. }
  716. </style>