methods:
getLocation(){
var geolocation = new BMap.Geolocation();
geolocation.getCurrentPosition(function(e){if(this.getStatus()== BMAP_STATUS_SUCCESS){
var geoc = new BMap.Geocoder()// 百度 geolocation 的经纬度属性不同,此处是 point.lat 而不是 coords.latitude
let LocationProvince = e.address.province
let LocationCity = e.address.city
console.log(LocationProvince,LocationCity)}else{
this.getStatus();}})},