From b42f42dbb2a4d979eda63a69782a44f2f3bbb9e0 Mon Sep 17 00:00:00 2001 From: nesxy Date: Wed, 14 Aug 2019 04:01:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=99=BE=E5=BA=A6=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/home.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/view/home.vue b/src/view/home.vue index 6e6225c..7f4f61a 100644 --- a/src/view/home.vue +++ b/src/view/home.vue @@ -465,11 +465,11 @@ export default { var geolocation = new BMap.Geolocation(); geolocation.getCurrentPosition(function(r) { if (this.getStatus() == BMAP_STATUS_SUCCESS) { - if(r.accuracy==null){ - alert('您已拒绝地理位置授权'); - //用户决绝地理位置授权 - return; - }else{ + // if(r.accuracy==null){ + // alert('您已拒绝地理位置授权'); + // //用户决绝地理位置授权 + // return; + // }else{ const myGeo = new BMap.Geocoder() myGeo.getLocation(new BMap.Point(r.point.lng, r.point.lat), data => { if (data.addressComponents) { @@ -486,7 +486,7 @@ export default { alert("省-"+location.creditProvince+";市-"+location.creditCity+";区-"+location.creditArea+";街道-"+location.creditStreet+";lat-"+location.creditLatitude+";lng-"+location.creditLongitude); } }) - } + // } } }) },