|
|
@@ -72,8 +72,8 @@ var app = new Vue({
|
|
|
var geolocation = new BMap.Geolocation();
|
|
|
//$.showLoading('获取定位中...')
|
|
|
geolocation.getCurrentPosition(function (r) {
|
|
|
- $.hideLoading();
|
|
|
if (this.getStatus() == BMAP_STATUS_SUCCESS) {
|
|
|
+ console.log(r)
|
|
|
_this.location.lat = r.point.lat;
|
|
|
_this.location.lat = r.point.lat;
|
|
|
_this.location.info = r.address;
|
|
|
@@ -84,7 +84,7 @@ var app = new Vue({
|
|
|
sessionStorage.setItem('city', r.address.city)
|
|
|
sessionStorage.setItem('address', _this.location.address)
|
|
|
setTimeout(function(){
|
|
|
- $.toast.prototype.defaults.duration = 2000;
|
|
|
+ $.toast.prototype.defaults.duration = 1000;
|
|
|
$.toast('您的城市:'+_this.location.city,'text');
|
|
|
}, 500)
|
|
|
}
|