|
|
@@ -31,8 +31,6 @@ var app = new Vue({
|
|
|
},
|
|
|
mounted: function(){
|
|
|
this.loadLocation();
|
|
|
- $.toast.prototype.defaults.duration = 10000;
|
|
|
- $.toast('您的位置:南宁市','text');
|
|
|
},
|
|
|
methods: {
|
|
|
// 搜索
|
|
|
@@ -123,6 +121,8 @@ var app = new Vue({
|
|
|
var detail = result.detail;
|
|
|
var address = detail.addressComponents;
|
|
|
if(address.city){
|
|
|
+
|
|
|
+ $.toast.prototype.defaults.duration = 1000;
|
|
|
$.toast('您的位置:'+address.city,'text');
|
|
|
}
|
|
|
}
|