From b6778137b54f9728d36d80d7b9fef372bf7c552b Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Mon, 4 Jul 2022 16:54:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/excuteOneInspection/excuteOneInspection.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/excuteOneInspection/excuteOneInspection.vue b/pages/excuteOneInspection/excuteOneInspection.vue index cb2fda8..8a64106 100644 --- a/pages/excuteOneInspection/excuteOneInspection.vue +++ b/pages/excuteOneInspection/excuteOneInspection.vue @@ -49,7 +49,7 @@ - + 当前位置 @@ -98,13 +98,16 @@ location: '', reverseGeocoderSimplify: '正在获取...', titles: [], - itemId:'' + itemId:'', + mapKey:'' } }, onLoad(option) { this.java110Context.onLoad(); let that = this; + + this.mapKey = conf.QQMapKey; wx.getLocation({ type: 'gcj02', success: (res) => { @@ -161,7 +164,7 @@ let locationObj = this.latitude + ',' + this.longitude; let url = 'https://apis.map.qq.com/ws/geocoder/v1?coord_type=5&get_poi=1&output=jsonp&poi_options=page_size=1;page_index=1'; this.$jsonp(url, { - key: conf.QQMapKey, + key: this.mapKey, location: locationObj }) .then(res => {