|
|
@ -173,7 +173,7 @@ import routerFooter from "../components/nav-bottom"; |
|
|
import popupPicker from "../components/popup-picker.vue"; |
|
|
import popupPicker from "../components/popup-picker.vue"; |
|
|
import Qs from 'qs'; |
|
|
import Qs from 'qs'; |
|
|
//引入BMap |
|
|
//引入BMap |
|
|
// import BMap from 'BMap'; |
|
|
|
|
|
|
|
|
import BMap from 'BMap'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var locationUrl = configs.locationUrl; |
|
|
var locationUrl = configs.locationUrl; |
|
|
@ -462,8 +462,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
getCity(){ |
|
|
getCity(){ |
|
|
let _this = this |
|
|
let _this = this |
|
|
if (!this.BMap) return false |
|
|
|
|
|
let BMap = this.BMap |
|
|
|
|
|
|
|
|
// if (!this.BMap) return false |
|
|
|
|
|
// let BMap = this.BMap |
|
|
|
|
|
// alert(Bmap); |
|
|
var geolocation = new Bmap.Geolocation(); |
|
|
var geolocation = new Bmap.Geolocation(); |
|
|
geolocation.getCurrentPosition(function(r) { |
|
|
geolocation.getCurrentPosition(function(r) { |
|
|
if (this.getStatus() == BMAP_STATUS_SUCCESS) { |
|
|
if (this.getStatus() == BMAP_STATUS_SUCCESS) { |
|
|
|