27143
This commit is contained in:
@@ -210,14 +210,10 @@ export default {
|
|||||||
this.showMap = false
|
this.showMap = false
|
||||||
},
|
},
|
||||||
getCorpLocation() {
|
getCorpLocation() {
|
||||||
this.instance.post('/app/appdvcpconfig/getCorpLocation').then((res) => {
|
this.initMap()
|
||||||
if (res.code == 0) {
|
|
||||||
this.initMap(res.data)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
|
|
||||||
initMap({ lng, lat }) {
|
initMap() {
|
||||||
AMapLoader.load({
|
AMapLoader.load({
|
||||||
key: 'b553334ba34f7ac3cd09df9bc8b539dc',
|
key: 'b553334ba34f7ac3cd09df9bc8b539dc',
|
||||||
version: '2.0',
|
version: '2.0',
|
||||||
@@ -228,7 +224,6 @@ export default {
|
|||||||
this.map = new AMap.Map('map', {
|
this.map = new AMap.Map('map', {
|
||||||
resizeEnable: true,
|
resizeEnable: true,
|
||||||
zooms: [6, 20],
|
zooms: [6, 20],
|
||||||
center: [lng, lat],
|
|
||||||
zoom: 11,
|
zoom: 11,
|
||||||
})
|
})
|
||||||
this.placeSearch = new AMap.PlaceSearch({ map: this.map })
|
this.placeSearch = new AMap.PlaceSearch({ map: this.map })
|
||||||
|
|||||||
Reference in New Issue
Block a user