From 740c518ee2c46368da871568fde284685eef8601 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=98lijianhao=E2=80=99?=
Date: Wed, 27 Jul 2022 11:37:37 +0800
Subject: [PATCH 1/2] ''
---
web/client/assets/color.less | 34 ++++++++++++--
.../src/sections/quanju/containers/example.js | 46 ++++++++++---------
2 files changed, 54 insertions(+), 26 deletions(-)
diff --git a/web/client/assets/color.less b/web/client/assets/color.less
index 5ad7b392..0d45e9f2 100644
--- a/web/client/assets/color.less
+++ b/web/client/assets/color.less
@@ -174,7 +174,7 @@ button::-moz-focus-inner,
[type='submit']::-moz-focus-inner {border-style: none;}
fieldset {border: 0;}
legend {color: inherit;}
-mark {background-color: #feffe6;}
+mark {background-color: color(~`colorPalette("@{modal-footer-border-color-split}", 1)`);}
::selection {color: #fff;background: @primary-color;}
.anticon {color: inherit;}
.ant-fade-enter, .ant-fade-appear {animation-fill-mode: both;}
@@ -1149,11 +1149,18 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-mentions-dropdown-menu-item-active {background-color: @item-hover-bg;}
.ant-menu-item-danger.ant-menu-item {color: #ff4d4f;}
.ant-menu-item-danger.ant-menu-item:hover, .ant-menu-item-danger.ant-menu-item-active {color: #ff4d4f;}
+<<<<<<< Updated upstream
.ant-menu-item-danger.ant-menu-item:active {background: color(~`colorPalette("@{modal-header-border-color-split}", 1)`);}
.ant-menu-item-danger.ant-menu-item-selected {color: #ff4d4f;}
.ant-menu-item-danger.ant-menu-item-selected > a, .ant-menu-item-danger.ant-menu-item-selected > a:hover {color: #ff4d4f;}
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {background-color: color(~`colorPalette("@{modal-header-border-color-split}", 1)`);}
+=======
+.ant-menu-item-danger.ant-menu-item:active {background: color(~`colorPalette("@{segmented-label-hover-color}", 1)`);}
+.ant-menu-item-danger.ant-menu-item-selected {color: #ff4d4f;}
+.ant-menu-item-danger.ant-menu-item-selected > a, .ant-menu-item-danger.ant-menu-item-selected > a:hover {color: #ff4d4f;}
+.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {background-color: color(~`colorPalette("@{segmented-label-hover-color}", 1)`);}
+>>>>>>> Stashed changes
.ant-menu-inline .ant-menu-item-danger.ant-menu-item::after {border-right-color: #ff4d4f;}
.ant-menu-dark .ant-menu-item-danger.ant-menu-item, .ant-menu-dark .ant-menu-item-danger.ant-menu-item:hover, .ant-menu-dark .ant-menu-item-danger.ant-menu-item > a {color: #ff4d4f;}
.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {color: #fff;background-color: #ff4d4f;}
@@ -1723,14 +1730,18 @@ tr.ant-table-expanded-row:hover > td {background: @table-expanded-row-bg;}
.ant-tag-checkable:active, .ant-tag-checkable-checked {color: #fff;}
.ant-tag-checkable-checked {background-color: @primary-color;}
.ant-tag-checkable:active {background-color: color(~`colorPalette("@{primary-color}", 7)`);}
+<<<<<<< Updated upstream
.ant-tag-pink {color: #c41d7f;background: color(~`colorPalette("@{component-background}", 1)`);border-color: #ffadd2;}
+=======
+>>>>>>> Stashed changes
.ant-tag-pink {color: #c41d7f;background: #fff0f6;border-color: #ffadd2;}
.ant-tag-pink-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;}
.ant-tag-magenta {color: #c41d7f;background: color(~`colorPalette("@{component-background}", 1)`);border-color: #ffadd2;}
.ant-tag-magenta-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;}
+<<<<<<< Updated upstream
.ant-tag-red {color: #cf1322;background: #fff1f0;border-color: #ffa39e;}
.ant-tag-pink {color: #c41d7f;background: color(~`colorPalette("@{success-color-deprecated-bg}", 1)`);border-color: #ffadd2;}
@@ -1739,21 +1750,25 @@ tr.ant-table-expanded-row:hover > td {background: @table-expanded-row-bg;}
.ant-tag-magenta-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;}
.ant-tag-red {color: #cf1322;background: color(~`colorPalette("@{modal-header-border-color-split}", 1)`);border-color: #ffa39e;}
+=======
+.ant-tag-red {color: #cf1322;background: color(~`colorPalette("@{segmented-label-hover-color}", 1)`);border-color: #ffa39e;}
+>>>>>>> Stashed changes
.ant-tag-red-inverse {color: #fff;background: #f5222d;border-color: #f5222d;}
.ant-tag-volcano {color: #d4380d;background: #fff2e8;border-color: #ffbb96;}
.ant-tag-volcano-inverse {color: #fff;background: #fa541c;border-color: #fa541c;}
-.ant-tag-orange {color: #d46b08;background: #fff7e6;border-color: #ffd591;}
+.ant-tag-orange {color: #d46b08;background: color(~`colorPalette("@{alert-warning-border-color}", 1)`);border-color: #ffd591;}
.ant-tag-orange-inverse {color: #fff;background: #fa8c16;border-color: #fa8c16;}
-.ant-tag-yellow {color: #d4b106;background: #feffe6;border-color: #fffb8f;}
+.ant-tag-yellow {color: #d4b106;background: color(~`colorPalette("@{modal-footer-border-color-split}", 1)`);border-color: #fffb8f;}
.ant-tag-yellow-inverse {color: #fff;background: #fadb14;border-color: #fadb14;}
.ant-tag-gold {color: #d48806;background: #fffbe6;border-color: #ffe58f;}
.ant-tag-gold-inverse {color: #fff;background: #faad14;border-color: #faad14;}
.ant-tag-cyan {color: #08979c;background: #e6fffb;border-color: #87e8de;}
.ant-tag-cyan-inverse {color: #fff;background: #13c2c2;border-color: #13c2c2;}
-.ant-tag-lime {color: #7cb305;background: #fcffe6;border-color: #eaff8f;}
+.ant-tag-lime {color: #7cb305;background: color(~`colorPalette("@{text-color-secondary}", 1)`);border-color: #eaff8f;}
.ant-tag-lime-inverse {color: #fff;background: #a0d911;border-color: #a0d911;}
.ant-tag-green {color: #389e0d;background: #f6ffed;border-color: #b7eb8f;}
.ant-tag-green-inverse {color: #fff;background: #52c41a;border-color: #52c41a;}
+<<<<<<< Updated upstream
.ant-tag-blue {color: #096dd9;background: #e6f7ff;border-color: #91d5ff;}
.ant-tag-blue-inverse {color: #fff;background: #1890ff;border-color: #1890ff;}
@@ -1766,6 +1781,13 @@ tr.ant-table-expanded-row:hover > td {background: @table-expanded-row-bg;}
.ant-tag-geekblue-inverse {color: #fff;background: #2f54eb;border-color: #2f54eb;}
.ant-tag-purple {color: #531dab;background: #f9f0ff;border-color: #d3adf7;}
+=======
+.ant-tag-blue {color: #096dd9;background: #e6f7ff;border-color: #91d5ff;}
+.ant-tag-blue-inverse {color: #fff;background: #1890ff;border-color: #1890ff;}
+.ant-tag-geekblue {color: #1d39c4;background: color(~`colorPalette("@{dropdown-menu-submenu-disabled-bg}", 3)`);border-color: #adc6ff;}
+.ant-tag-geekblue-inverse {color: #fff;background: #2f54eb;border-color: #2f54eb;}
+.ant-tag-purple {color: #531dab;background: color(~`colorPalette("@{alert-error-bg-color}", 1)`);border-color: #d3adf7;}
+>>>>>>> Stashed changes
.ant-tag-purple-inverse {color: #fff;background: #722ed1;border-color: #722ed1;}
.ant-tag-success {color: #52c41a;background: @success-color-deprecated-bg;border-color: @success-color-deprecated-border;}
.ant-tag-processing {color: @primary-color;background: @info-color-deprecated-bg;border-color: @info-color-deprecated-border;}
@@ -2003,11 +2025,15 @@ a.ant-typography.ant-typography-disabled:hover, .ant-typography a.ant-typography
.ant-upload-list-picture .ant-upload-list-item-error, .ant-upload-list-picture-card .ant-upload-list-item-error {border-color: #ff4d4f;}
.ant-upload-list-picture .ant-upload-list-item:hover .ant-upload-list-item-info, .ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info {background: transparent;}
.ant-upload-list-picture .ant-upload-list-item-uploading, .ant-upload-list-picture-card .ant-upload-list-item-uploading {border-style: dashed;}
+<<<<<<< Updated upstream
.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'], .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'] {fill: @error-color-deprecated-bg;}
.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'], .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'] {fill: @error-color-deprecated-bg;}
+=======
+.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'], .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'] {fill: @error-color-deprecated-bg;}
+>>>>>>> Stashed changes
.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#1890ff'], .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#1890ff'] {fill: #ff4d4f;}
.ant-upload-list-picture-card .ant-upload-list-item-info::before {background-color: rgba(0, 0, 0, 0.5);}
.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete {color: rgba(255, 255, 255, 0.85);}
diff --git a/web/client/src/sections/quanju/containers/example.js b/web/client/src/sections/quanju/containers/example.js
index bc93d538..1facdfec 100644
--- a/web/client/src/sections/quanju/containers/example.js
+++ b/web/client/src/sections/quanju/containers/example.js
@@ -25,27 +25,29 @@ const Example = (props) => {
useEffect(() => {
-
- const map = new AMap.Map(MAPID, {
- //resizeEnable: true,
- center: [115.912663, 28.543149],//地图中心点,初始定位加载显示楼块
- // center: [115.857952, 28.683003],//地图中心点
- zoom: 13,//地图显示的缩放级别
- zooms: [8, 18],
- pitch: 65, // 地图俯仰角度,有效范围 0 度- 83 度
- viewMode: '3D', // 地图模式
- // rotation: 60
- // showLabel: false
- });
- let styleName = 'amap://styles/fb26776387242721c2fc32e2cb1daccc';
- map.setMapStyle(styleName);
-
- let mapComplete = false;
- let windowOnload = false;
- window.onload = function () {
- windowOnload = true;
- }
-
+ const timer = setTimeout(() => {
+ const map = new AMap.Map(MAPID, {
+ //resizeEnable: true,
+ center: [115.912663, 28.543149],//地图中心点,初始定位加载显示楼块
+ // center: [115.857952, 28.683003],//地图中心点
+ zoom: 13,//地图显示的缩放级别
+ zooms: [8, 18],
+ pitch: 65, // 地图俯仰角度,有效范围 0 度- 83 度
+ viewMode: '3D', // 地图模式
+ // rotation: 60
+ // showLabel: false
+ });
+ let styleName = 'amap://styles/fb26776387242721c2fc32e2cb1daccc';
+ map.setMapStyle(styleName);
+
+ let mapComplete = false;
+ let windowOnload = false;
+ window.onload = function () {
+ windowOnload = true;
+ }
+
+ }, 50);
+
@@ -59,7 +61,7 @@ const Example = (props) => {
})
map.clearMap();
if (map) map.destroy();
-
+ clearTimeout(timer)
}
}, [])
From 84720d77037f6d3c8b06c0653281ace615ad1fd2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=98lijianhao=E2=80=99?=
Date: Wed, 27 Jul 2022 11:52:30 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E6=9A=82=E6=97=B6?=
=?UTF-8?q?=E6=B3=A8=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/sections/quanju/containers/example.js | 73 +++++++++----------
1 file changed, 33 insertions(+), 40 deletions(-)
diff --git a/web/client/src/sections/quanju/containers/example.js b/web/client/src/sections/quanju/containers/example.js
index 1facdfec..bfb78d30 100644
--- a/web/client/src/sections/quanju/containers/example.js
+++ b/web/client/src/sections/quanju/containers/example.js
@@ -24,46 +24,46 @@ const Example = (props) => {
}
- useEffect(() => {
- const timer = setTimeout(() => {
- const map = new AMap.Map(MAPID, {
- //resizeEnable: true,
- center: [115.912663, 28.543149],//地图中心点,初始定位加载显示楼块
- // center: [115.857952, 28.683003],//地图中心点
- zoom: 13,//地图显示的缩放级别
- zooms: [8, 18],
- pitch: 65, // 地图俯仰角度,有效范围 0 度- 83 度
- viewMode: '3D', // 地图模式
- // rotation: 60
- // showLabel: false
- });
- let styleName = 'amap://styles/fb26776387242721c2fc32e2cb1daccc';
- map.setMapStyle(styleName);
+ // useEffect(() => {
+ // const timer = setTimeout(() => {
+ // const map = new AMap.Map(MAPID, {
+ // //resizeEnable: true,
+ // center: [115.912663, 28.543149],//地图中心点,初始定位加载显示楼块
+ // // center: [115.857952, 28.683003],//地图中心点
+ // zoom: 13,//地图显示的缩放级别
+ // zooms: [8, 18],
+ // pitch: 65, // 地图俯仰角度,有效范围 0 度- 83 度
+ // viewMode: '3D', // 地图模式
+ // // rotation: 60
+ // // showLabel: false
+ // });
+ // let styleName = 'amap://styles/fb26776387242721c2fc32e2cb1daccc';
+ // map.setMapStyle(styleName);
- let mapComplete = false;
- let windowOnload = false;
- window.onload = function () {
- windowOnload = true;
- }
+ // let mapComplete = false;
+ // let windowOnload = false;
+ // window.onload = function () {
+ // windowOnload = true;
+ // }
- }, 50);
+ // }, 50);
- //主题样式
+ // //主题样式
- return () => {
- const amapKeys = Object.keys(localStorage).filter(key => key.match(/^_AMap_/)) // 销毁地图
- amapKeys.forEach(key => {
- localStorage.removeItem(key)
- })
- map.clearMap();
- if (map) map.destroy();
- clearTimeout(timer)
- }
- }, [])
+ // return () => {
+ // const amapKeys = Object.keys(localStorage).filter(key => key.match(/^_AMap_/)) // 销毁地图
+ // amapKeys.forEach(key => {
+ // localStorage.removeItem(key)
+ // })
+ // map.clearMap();
+ // if (map) map.destroy();
+ // clearTimeout(timer)
+ // }
+ // }, [])
return (
@@ -74,20 +74,13 @@ const Example = (props) => {
document.body.clientHeight / 1080
)})`, */
}}>
-
+ {/* */}
- {/* <<<<<<< HEAD */}
- {/* =======
-
-
-
->>>>>>> 385f017aeac33adc39a31e75faf6254a1a881d16 */}
- {/*
*/}