From f9fa168331b678bc619dfe4fb78d986d67a995cf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=87=AA=E5=B8=A6=E5=A4=A7=E4=BD=AC=E6=B0=94=E5=9C=BA?=
<188633308@qq.com>
Date: Tue, 6 Jul 2021 13:48:36 +0800
Subject: [PATCH] add weather
---
web-react/src/util/global/index.js | 5 ++
.../src/views/main/_layout/header/index.jsx | 2 +
.../src/views/main/_layout/header/weather.jsx | 51 +++++++++++++++++++
3 files changed, 58 insertions(+)
create mode 100644 web-react/src/views/main/_layout/header/weather.jsx
diff --git a/web-react/src/util/global/index.js b/web-react/src/util/global/index.js
index 374ca42..2584c5e 100644
--- a/web-react/src/util/global/index.js
+++ b/web-react/src/util/global/index.js
@@ -38,6 +38,11 @@ export const RSA_PUBLIC_KEY = '-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQU
*/
export const CITY = '黄石市'
+/**
+ *
+ */
+export const AMAP_WEBAPI_KEY = 'ca01719fe09757131a1249c273619a17'
+
/**
* 响应式响应宽度
*/
diff --git a/web-react/src/views/main/_layout/header/index.jsx b/web-react/src/views/main/_layout/header/index.jsx
index 0cdf6c8..b3f6dea 100644
--- a/web-react/src/views/main/_layout/header/index.jsx
+++ b/web-react/src/views/main/_layout/header/index.jsx
@@ -6,6 +6,7 @@ import { api } from 'common/api'
import Logo from '../logo'
import Search from './search'
+import Weather from './weather'
import Notice from './notice'
import User from './user'
@@ -53,6 +54,7 @@ export default class index extends Component {