From 4640d998678213ae6623de814b8a794b395455e7 Mon Sep 17 00:00:00 2001 From: lfs3 Date: Wed, 28 Aug 2019 14:59:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/wxLocation.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/models/wxLocation.js b/src/models/wxLocation.js index ef34fc1..a44daa9 100644 --- a/src/models/wxLocation.js +++ b/src/models/wxLocation.js @@ -32,7 +32,7 @@ Vue.prototype.wxLocation = function () { }); wx.ready(() => { // 首次进入页面进会弹窗确认地理位置 - if (localStorage.getItem("latitude") == null) { + // if (localStorage.getItem("latitude") == null) { wx.getLocation({ type: "gcj02", // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02' success: function (res) { @@ -55,10 +55,10 @@ Vue.prototype.wxLocation = function () { alert("拒绝定位"); } }); - } else { + // } else { - } - alert("lat:" + localStorage.getItem("latitude") + ";lng:" + localStorage.getItem("longitude")); + // } + // alert("lat:" + localStorage.getItem("latitude") + ";lng:" + localStorage.getItem("longitude")); wx.error(function (res) { alert("wx-js初始化: " + res); });