{"ast":null,"code":"import { searchFun } from '@/utils/map.js';\nexport default {\n name: \"addressMap\",\n data() {\n return {\n map: '',\n mapPosition: 60,\n source: ''\n };\n },\n created() {\n this.source = this.$route.query.source || '';\n console.log('this.source', this.source);\n },\n mounted() {\n this.initMap();\n },\n methods: {\n initMap() {\n let orderInfo = this.$store.getters.order.orderInfo;\n console.log('orderInfo', orderInfo);\n this.map = new AMap.Map('mapId', {\n viewMode: '2D',\n // 默认使用 2D 模式\n zoom: 11,\n //初始化地图层级\n center: [orderInfo.startLng, orderInfo.startLat] //初始化地图中心点\n });\n },\n\n searchHandler() {\n searchFun(this.map, '');\n }\n }\n};","map":{"version":3,"names":["searchFun","name","data","map","mapPosition","source","created","$route","query","console","log","mounted","initMap","methods","orderInfo","$store","getters","order","AMap","Map","viewMode","zoom","center","startLng","startLat","searchHandler"],"sources":["src/views/index/addressMap.vue"],"sourcesContent":["\r\n\r\n\r\n\r\n\r\n"],"mappings":"AAuBA,SAAAA,SAAA;AACA;EACAC,IAAA;EACAC,KAAA;IACA;MACAC,GAAA;MACAC,WAAA;MACAC,MAAA;IACA;EACA;EACAC,QAAA;IACA,KAAAD,MAAA,QAAAE,MAAA,CAAAC,KAAA,CAAAH,MAAA;IACAI,OAAA,CAAAC,GAAA,qBAAAL,MAAA;EACA;EACAM,QAAA;IACA,KAAAC,OAAA;EACA;EACAC,OAAA;IACAD,QAAA;MACA,IAAAE,SAAA,QAAAC,MAAA,CAAAC,OAAA,CAAAC,KAAA,CAAAH,SAAA;MACAL,OAAA,CAAAC,GAAA,cAAAI,SAAA;MACA,KAAAX,GAAA,OAAAe,IAAA,CAAAC,GAAA;QACAC,QAAA;QAAA;QACAC,IAAA;QAAA;QACAC,MAAA,GAAAR,SAAA,CAAAS,QAAA,EAAAT,SAAA,CAAAU,QAAA;MACA;IACA;;IACAC,cAAA;MACAzB,SAAA,MAAAG,GAAA;IACA;EACA;AACA"},"metadata":{},"sourceType":"module","externalDependencies":[]}