From 4aa2fecce79f77b201207aaa884fbfa0f2822416 Mon Sep 17 00:00:00 2001 From: yangjie <812952667@qq.com> Date: Mon, 17 May 2021 14:38:25 +0800 Subject: [PATCH] =?UTF-8?q?1.=E9=85=8D=E7=BD=AEH5=202.=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=9C=B0=E5=9B=BEKey?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 9 +++++++-- pages/tabBar/category/category.vue | 2 +- pages/tabBar/home/home.vue | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index a21e87d..62d0015 100644 --- a/manifest.json +++ b/manifest.json @@ -74,14 +74,19 @@ }, "h5" : { "sdkConfigs" : { - "maps" : {} + "maps" : { + "qqmap" : { + "key" : "7UMBZ-HFEHX-HSD4Q-Z3QY6-OQKN7-2QBDB" + } + } }, "title" : "嗨森逛", "router" : { "mode" : "history" }, "devServer" : { - "port" : 80 + "port" : 80, + "https" : false } } } diff --git a/pages/tabBar/category/category.vue b/pages/tabBar/category/category.vue index 0078e18..377c33a 100644 --- a/pages/tabBar/category/category.vue +++ b/pages/tabBar/category/category.vue @@ -108,7 +108,7 @@ app.globalData.longitude = res.longitude; uni.request({ url: 'https://apis.map.qq.com/ws/geocoder/v1/?location=' + res.latitude + - ',' + res.longitude + '&key=YQDBZ-T54K4-5J6U7-DO3BA-CNZJO-PTFMU', + ',' + res.longitude + '&key=7UMBZ-HFEHX-HSD4Q-Z3QY6-OQKN7-2QBDB', data: {}, success: function(res) { that.city = res.data.result.address_component.city.replace(/市/g, diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue index 1a69816..30a64a0 100644 --- a/pages/tabBar/home/home.vue +++ b/pages/tabBar/home/home.vue @@ -238,7 +238,7 @@ app.globalData.longitude = res.longitude; uni.request({ url: 'https://apis.map.qq.com/ws/geocoder/v1/?location=' + res.latitude + - ',' + res.longitude + '&key=YQDBZ-T54K4-5J6U7-DO3BA-CNZJO-PTFMU', + ',' + res.longitude + '&key=7UMBZ-HFEHX-HSD4Q-Z3QY6-OQKN7-2QBDB', data: {}, success: function(res) { that.city = res.data.result.address_component.city.replace(/市/g,