Browse Source

Merge branch 'feature/3.1.0-小区合伙人'

develop
nesxy 6 years ago
parent
commit
103f692197
2 changed files with 14 additions and 15 deletions
  1. 1
      src/models/wxLocation.js
  2. 28
      src/view/home.vue

1
src/models/wxLocation.js

@ -64,7 +64,6 @@ Vue.prototype.wxLocation = function () {
} }
// alert("lat:" + localStorage.getItem("latitude") + ";lng:" + localStorage.getItem("longitude")); // alert("lat:" + localStorage.getItem("latitude") + ";lng:" + localStorage.getItem("longitude"));
wx.error(function (res) { wx.error(function (res) {
alert("wx-js初始化: " + res);
resolve("定位失败") resolve("定位失败")
}); });
}); });

28
src/view/home.vue

@ -475,20 +475,20 @@ export default {
localStorage.setItem("longitude", location.creditLongitude); localStorage.setItem("longitude", location.creditLongitude);
_this.lat = location.creditLatitude; _this.lat = location.creditLatitude;
_this.lng = location.creditLongitude; _this.lng = location.creditLongitude;
alert(
"省-" +
location.creditProvince +
";市-" +
location.creditCity +
";区-" +
location.creditArea +
";街道-" +
location.creditStreet +
";lat-" +
location.creditLatitude +
";lng-" +
location.creditLongitude
);
// alert(
// "-" +
// location.creditProvince +
// ";-" +
// location.creditCity +
// ";-" +
// location.creditArea +
// ";-" +
// location.creditStreet +
// ";lat-" +
// location.creditLatitude +
// ";lng-" +
// location.creditLongitude
// );
_this.getId(); _this.getId();
_this.getAddressInfo(); _this.getAddressInfo();
} }

Loading…
Cancel
Save