| | |
| | | let lat=event.latLng.getLat(), |
| | | lng=event.latLng.getLng(); |
| | | let url = encodeURI("https://apis.map.qq.com/ws/geocoder/v1/?location=" + lat + "," + lng + |
| | | "&key=KWPBZ-ANNW4-MZ5UU-KCKNC-YCTUO-ZSFO5&output=jsonp&&callback=?"); |
| | | "&key=SWSBZ-PY7EN-VXFFT-SUXJU-H5UY2-JFFJS&output=jsonp&callback=QQmap"); |
| | | getJson(url, 'QQmap', function(res) { |
| | | if (res.status == 0) { |
| | | self.$emit('chose', res.result); |
| | |
| | | return; |
| | | } |
| | | let url = encodeURI( |
| | | 'https://apis.map.qq.com/ws/place/v1/suggestion/?keyword=' + Value + '®ion=' + this.select_city + '&key=KWPBZ-ANNW4-MZ5UU-KCKNC-YCTUO-ZSFO5&output=jsonp&&callback=?' |
| | | 'https://apis.map.qq.com/ws/place/v1/suggestion/?keyword=' + Value + '®ion=' + this.select_city + '&key=SWSBZ-PY7EN-VXFFT-SUXJU-H5UY2-JFFJS&output=jsonp&callback=QQmap' |
| | | ); |
| | | |
| | | getJson(url, 'QQmap', function(res) { |
| | |
| | | value + |
| | | '&boundary=region(' + |
| | | query_city + |
| | | ',0)&page_size=9&page_index=1&key=KWPBZ-ANNW4-MZ5UU-KCKNC-YCTUO-ZSFO5&output=jsonp&&callback=?' |
| | | ',0)&page_size=9&page_index=1&key=SWSBZ-PY7EN-VXFFT-SUXJU-H5UY2-JFFJS&output=jsonp&callback=QQmap' |
| | | ); |
| | | |
| | | /*通过关键字搜索*/ |