地图定位搜索问题修复

This commit is contained in:
zxy
2024-02-05 10:16:08 +08:00
parent 91172a730c
commit b3a378355f
4 changed files with 16 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ import {request} from '@/untils/AxiosUtils.js';
/*逆地址解析*/
export const getcoder = (location, key, get_poi) => {
return request({
url: '/api/map/ws/geocoder/v1',
url: '/qq/map/ws/geocoder/v1',
method: 'get',
params: {
location,
@@ -15,7 +15,7 @@ export const getcoder = (location, key, get_poi) => {
/*关键词输入提示*/
export const querySearch = (keyword, key) => {
return request({
url: '/api/map/ws/place/v1/suggestion',
url: '/qq/map/ws/place/v1/suggestion',
method: 'get',
params: {
keyword,

View File

@@ -60,7 +60,8 @@
return {
longitude: 116.40,
latitude: 39.90,
key: 'FW3BZ-6JTK6-GCUS5-MZCRR-3GPR5-HJFEI',
// key: 'FW3BZ-6JTK6-GCUS5-MZCRR-3GPR5-HJFEI',
key: 'MTCBZ-WAAWC-H3M22-AL6XI-G4XN6-YZFK5',
currentPoint: {},
companyList: [],
markList: [],

View File

@@ -42,7 +42,8 @@
return {
searchResultList: [],
inputValue: '',
key: 'FW3BZ-6JTK6-GCUS5-MZCRR-3GPR5-HJFEI'
// key: 'FW3BZ-6JTK6-GCUS5-MZCRR-3GPR5-HJFEI'
key: 'MTCBZ-WAAWC-H3M22-AL6XI-G4XN6-YZFK5'
};
},
onLoad: function(option) {

View File

@@ -22,11 +22,19 @@ module.exports = {
proxy: {
'/api': {
//本地服务接口地址
target: 'http://localhost:8000',
target: 'http://39.98.184.58:8000',
ws: true,
pathRewrite: {
'^/api': '/'
}
},
'/qq/map': {
//本地服务接口地址
target: 'https://apis.map.qq.com',
ws: true,
pathRewrite: {
'^/qq/map': '/'
}
}
}
}