|
|
@@ -5,7 +5,7 @@ var app = new Vue({
|
|
|
curNav: 'index',
|
|
|
// 定位信息
|
|
|
location: {
|
|
|
- city: '南宁市',
|
|
|
+ city: '位置',
|
|
|
address: '',
|
|
|
info: {},
|
|
|
lng: '',
|
|
|
@@ -121,7 +121,7 @@ var app = new Vue({
|
|
|
var detail = result.detail;
|
|
|
var address = detail.addressComponents;
|
|
|
if(address.city){
|
|
|
-
|
|
|
+ _this.location = address;
|
|
|
$.toast.prototype.defaults.duration = 1000;
|
|
|
$.toast('您的位置:'+address.city,'text');
|
|
|
}
|