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,