From 9e627e8a925d9a14d0bd27a96c0eb594bb1161de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E6=B4=81?= <209192278@qq.com> Date: Mon, 13 Nov 2023 22:00:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/InputAndSwiper/InputAndSwiper.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/InputAndSwiper/InputAndSwiper.vue b/components/InputAndSwiper/InputAndSwiper.vue index 3777e2d..3735562 100644 --- a/components/InputAndSwiper/InputAndSwiper.vue +++ b/components/InputAndSwiper/InputAndSwiper.vue @@ -49,7 +49,7 @@ this.open() }, methods: { - getLocation1() { + getUserLocation() { var that = this let qqmapsdk = new QQMapWX({ key: 'ZRKBZ-Q7FWL-GVZPK-MCRBU-4XFB5-ATBDB' @@ -66,8 +66,8 @@ }, success: (re) => { console.log("解析地址成功", re); - console.log(re.result.ad_info.city, ); - console.log(re.result.ad_info.district, ); + console.log(re.result.ad_info.city); + console.log(re.result.ad_info.district); let city = re.result.ad_info.city let district = re.result.ad_info.district that.position = city.slice(0, 2) + district.slice(0, 2) @@ -89,7 +89,7 @@ scope: 'scope.userFuzzyLocation', success: function() { console.log('授权成功'); - that.getLocation1() + that.getUserLocation() }, fail: function() { console.log('授权失败'); @@ -102,7 +102,7 @@ uni.openSetting({ success: (res) => { console.log(res); - that.getLocation1(); + that.getUserLocation(); } }) } else {