From 9fe5c372925404d89f112efc353d8ee3461e399f Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Mon, 22 Jul 2024 15:12:17 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E4=BF=AE=E6=94=B9=E5=A4=A9=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sylj-selectLocation/seeLocation.vue | 4 ++-- .../sylj-selectLocation.vue | 6 ++--- components/sylj-selectLocation/tmap.vue | 9 ++++---- pages/index/index.vue | 23 +++++++++++-------- 4 files changed, 23 insertions(+), 19 deletions(-) diff --git a/components/sylj-selectLocation/seeLocation.vue b/components/sylj-selectLocation/seeLocation.vue index 26f4a58..b7ee674 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/api?v=4.0&tk=' + this.option.apikey + script.src = 'http://api.tianditu.gov.cn:9075/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/api?v=4.0&tk=' + this.option.apikey + script.src = 'http://api.tianditu.gov.cn:9075/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 a3f7f50..df56ced 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: 'https://api.tianditu.gov.cn/geocoder', + url: 'http://api.tianditu.gov.cn:9075/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/api?v=4.0&tk=' + this.option.apikey + script.src = 'http://api.tianditu.gov.cn:9075/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/api?v=4.0&tk=' + this.option.apikey + script.src = 'http://api.tianditu.gov.cn:9075/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 0268227..650d824 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/v2/search', + url: 'http://api.tianditu.gov.cn:9075/v2/search', method: 'GET', data: params, success: res => { @@ -245,7 +245,7 @@ }) uni.request({ //url: 'https://service.sdmap.gov.cn/geodecode', - url: 'https://api.tianditu.gov.cn/geocoder', + url: 'http://api.tianditu.gov.cn:9075/geocoder', method: 'GET', data: { postStr: JSON.stringify({ @@ -257,7 +257,6 @@ tk: e.apikey }, success: res => { - //console.log(res); if (res.data.result) { const value = that.formatterAdressLocation(res.data.result, 1) that.arr_list = [value] @@ -328,7 +327,7 @@ if (this.option && this.option.apikey) { const script = document.createElement('script') // view 层的页面运行在 www 根目录,其相对路径相对于 www 计算 - script.src = 'http://api.tianditu.gov.cn/api?v=4.0&tk=' + this.option.apikey + script.src = 'http://api.tianditu.gov.cn:9075/api?v=4.0&tk=' + this.option.apikey script.onload = this.initEcharts.bind(this) document.head.appendChild(script) @@ -347,7 +346,7 @@ if (this.option.apikey) { const script = document.createElement('script') - script.src = 'http://api.tianditu.gov.cn/api?v=4.0&tk=' + this.option.apikey + script.src = 'http://api.tianditu.gov.cn:9075/api?v=4.0&tk=' + this.option.apikey script.onload = this.initEcharts.bind(this) document.head.appendChild(script) diff --git a/pages/index/index.vue b/pages/index/index.vue index 795f17c..937588e 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -289,18 +289,11 @@ policyContentList: [], policyType: 1, swiperType: 1, + IsResume: true, }; }, onLoad: function(options) { - myResume().then(res => { - const data = res.data.data - if (!(data.education && data.telephone && data.wage && data.workplace)) { - this.goures() - this.$api.sleep(1000).then(() => { - this.$api.msg('请输入基本信息') - }) - } - }) + }, onShow: function() { if (!this.$store.state.user.token) { @@ -319,6 +312,18 @@ this.download() this.getSwiperList() this.getPolicy() + if (this.IsResume) { + myResume().then(res => { + const data = res.data.data + if (!(data.education && data.telephone && data.wage && data.workplace)) { + this.goures() + this.$api.sleep(1000).then(() => { + this.$api.msg('请输入基本信息') + }) + } + }) + this.IsResume = false + } }, onReady() { uni.setNavigationBarTitle({