diff --git a/api/map.js b/api/map.js index bed2903..49f8d73 100644 --- a/api/map.js +++ b/api/map.js @@ -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, diff --git a/pages/mapSeach/mapSeach.vue b/pages/mapSeach/mapSeach.vue index 4530281..4944f9b 100644 --- a/pages/mapSeach/mapSeach.vue +++ b/pages/mapSeach/mapSeach.vue @@ -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: [], diff --git a/pages/seach/placeSearch.vue b/pages/seach/placeSearch.vue index 1b4dc9a..f6db148 100644 --- a/pages/seach/placeSearch.vue +++ b/pages/seach/placeSearch.vue @@ -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) { diff --git a/vue.config.js b/vue.config.js index 5d28292..da41f22 100644 --- a/vue.config.js +++ b/vue.config.js @@ -22,12 +22,20 @@ 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': '/' + } + } } } };