地图定位搜索问题修复
This commit is contained in:
@@ -2,7 +2,7 @@ import {request} from '@/untils/AxiosUtils.js';
|
|||||||
/*逆地址解析*/
|
/*逆地址解析*/
|
||||||
export const getcoder = (location, key, get_poi) => {
|
export const getcoder = (location, key, get_poi) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/map/ws/geocoder/v1',
|
url: '/qq/map/ws/geocoder/v1',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
location,
|
location,
|
||||||
@@ -15,7 +15,7 @@ export const getcoder = (location, key, get_poi) => {
|
|||||||
/*关键词输入提示*/
|
/*关键词输入提示*/
|
||||||
export const querySearch = (keyword, key) => {
|
export const querySearch = (keyword, key) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/map/ws/place/v1/suggestion',
|
url: '/qq/map/ws/place/v1/suggestion',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
keyword,
|
keyword,
|
||||||
|
|||||||
@@ -60,7 +60,8 @@
|
|||||||
return {
|
return {
|
||||||
longitude: 116.40,
|
longitude: 116.40,
|
||||||
latitude: 39.90,
|
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: {},
|
currentPoint: {},
|
||||||
companyList: [],
|
companyList: [],
|
||||||
markList: [],
|
markList: [],
|
||||||
|
|||||||
@@ -42,7 +42,8 @@
|
|||||||
return {
|
return {
|
||||||
searchResultList: [],
|
searchResultList: [],
|
||||||
inputValue: '',
|
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) {
|
onLoad: function(option) {
|
||||||
|
|||||||
@@ -22,12 +22,20 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
//本地服务接口地址
|
//本地服务接口地址
|
||||||
target: 'http://localhost:8000',
|
target: 'http://39.98.184.58:8000',
|
||||||
ws: true,
|
ws: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/api': '/'
|
'^/api': '/'
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
'/qq/map': {
|
||||||
|
//本地服务接口地址
|
||||||
|
target: 'https://apis.map.qq.com',
|
||||||
|
ws: true,
|
||||||
|
pathRewrite: {
|
||||||
|
'^/qq/map': '/'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user