|
@@ -72,7 +72,7 @@
|
|
|
import {
|
|
|
useCustomMap
|
|
|
} from "@/components/customMap/useMap.js"
|
|
|
-
|
|
|
+ import config from "@/config.js"
|
|
|
const emits = defineEmits(['close', 'xuanzeAdress', 'currentWeizhi'])
|
|
|
const {
|
|
|
getPositionSearchByKeyword
|
|
@@ -105,7 +105,7 @@
|
|
|
function getCityLocation(city) {
|
|
|
console.log('222222');
|
|
|
console.log('city', city);
|
|
|
- const Key = `KBYBZ-FS3KZ-U2FXR-7VPDX-L7J46-23F55`
|
|
|
+ const Key = config.mapKey
|
|
|
const url = `https://apis.map.qq.com/ws/geocoder/v1`;
|
|
|
const url2 = `https://apis.map.qq.com/ws/geocoder/v1/?address=${city}&key=${Key}`;
|
|
|
// #ifdef H5
|
|
@@ -265,7 +265,7 @@
|
|
|
})
|
|
|
|
|
|
function getCityName(latitude, longitude) {
|
|
|
- const Key = `KBYBZ-FS3KZ-U2FXR-7VPDX-L7J46-23F55`
|
|
|
+ const Key = config.mapKey
|
|
|
const url1 = `https://apis.map.qq.com/ws/geocoder/v1/?location=${latitude},${longitude}&key=${Key}`;
|
|
|
const url = `https://apis.map.qq.com/ws/geocoder/v1`;
|
|
|
//const url = `https://apis.map.qq.com/ws/geocoder/v1/`;
|
|
@@ -342,7 +342,7 @@
|
|
|
}
|
|
|
|
|
|
onLoad(() => {
|
|
|
- console.log('初始化')
|
|
|
+ console.log('初始化',config)
|
|
|
initLocation();
|
|
|
})
|
|
|
</script>
|