diff --git a/components/sylj-selectLocation/seeLocation.vue b/components/sylj-selectLocation/seeLocation.vue index b7ee674..ba9ca57 100644 --- a/components/sylj-selectLocation/seeLocation.vue +++ b/components/sylj-selectLocation/seeLocation.vue @@ -130,7 +130,7 @@ if (this.option && this.option.apikey) { const script = document.createElement('script') // view 层的页面运行在 www 根目录,其相对路径相对于 www 计算 - script.src = 'http://api.tianditu.gov.cn:9075/api?v=4.0&tk=' + this.option.apikey + script.src = 'https://api.tianditu.gov.cn/api?v=4.0&tk=' + this.option.apikey script.onload = this.initEcharts.bind(this) document.head.appendChild(script) } @@ -145,7 +145,7 @@ if (this.option.apikey) { const script = document.createElement('script') - script.src = 'http://api.tianditu.gov.cn:9075/api?v=4.0&tk=' + this.option.apikey + script.src = 'https://api.tianditu.gov.cn/api?v=4.0&tk=' + this.option.apikey script.onload = this.initEcharts.bind(this) document.head.appendChild(script) diff --git a/components/sylj-selectLocation/sylj-selectLocation.vue b/components/sylj-selectLocation/sylj-selectLocation.vue index df56ced..6ebb760 100644 --- a/components/sylj-selectLocation/sylj-selectLocation.vue +++ b/components/sylj-selectLocation/sylj-selectLocation.vue @@ -128,7 +128,7 @@ }) uni.request({ //url: 'https://service.sdmap.gov.cn/geodecode', - url: 'http://api.tianditu.gov.cn:9075/geocoder', + url: 'https://api.tianditu.gov.cn/geocoder', method: 'GET', @@ -193,7 +193,7 @@ if (this.option && this.option.apikey) { const script = document.createElement('script') // view 层的页面运行在 www 根目录,其相对路径相对于 www 计算 - script.src = 'http://api.tianditu.gov.cn:9075/api?v=4.0&tk=' + this.option.apikey + script.src = 'https://api.tianditu.gov.cn/api?v=4.0&tk=' + this.option.apikey script.onload = this.initEcharts.bind(this) document.head.appendChild(script) @@ -212,7 +212,7 @@ if (this.option.apikey) { const script = document.createElement('script') - script.src = 'http://api.tianditu.gov.cn:9075/api?v=4.0&tk=' + this.option.apikey + script.src = 'https://api.tianditu.gov.cn/api?v=4.0&tk=' + this.option.apikey script.onload = this.initEcharts.bind(this) document.head.appendChild(script) diff --git a/components/sylj-selectLocation/tmap.vue b/components/sylj-selectLocation/tmap.vue index 650d824..e2936d8 100644 --- a/components/sylj-selectLocation/tmap.vue +++ b/components/sylj-selectLocation/tmap.vue @@ -133,7 +133,7 @@ mask: true }) uni.request({ - url: 'http://api.tianditu.gov.cn:9075/v2/search', + url: 'https://api.tianditu.gov.cn/v2/search', method: 'GET', data: params, success: res => { @@ -245,7 +245,7 @@ }) uni.request({ //url: 'https://service.sdmap.gov.cn/geodecode', - url: 'http://api.tianditu.gov.cn:9075/geocoder', + url: 'https://api.tianditu.gov.cn/geocoder', method: 'GET', data: { postStr: JSON.stringify({ @@ -327,7 +327,7 @@ if (this.option && this.option.apikey) { const script = document.createElement('script') // view 层的页面运行在 www 根目录,其相对路径相对于 www 计算 - script.src = 'http://api.tianditu.gov.cn:9075/api?v=4.0&tk=' + this.option.apikey + script.src = 'http://api.tianditu.gov.cn/api?v=4.0&tk=' + this.option.apikey script.onload = this.initEcharts.bind(this) document.head.appendChild(script) @@ -346,7 +346,7 @@ if (this.option.apikey) { const script = document.createElement('script') - script.src = 'http://api.tianditu.gov.cn:9075/api?v=4.0&tk=' + this.option.apikey + script.src = 'http://api.tianditu.gov.cn/api?v=4.0&tk=' + this.option.apikey script.onload = this.initEcharts.bind(this) document.head.appendChild(script)