{"ast":null,"code":"import { searchFun } from '@/utils/map';\nexport default {\n name: \"addressMap\",\n data() {\n return {\n map: '',\n mapPosition: 60,\n source: '',\n keyword: '',\n addressList: []\n };\n },\n watch: {\n async keyword() {\n this.addressList = await this.searchHandler();\n console.log('this.addressList', this.addressList);\n }\n },\n created() {\n this.source = this.$route.query.source || '';\n console.log('this.source', this.source);\n },\n async mounted() {\n await 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, '', this.keyword);\n }\n }\n};","map":{"version":3,"names":["searchFun","name","data","map","mapPosition","source","keyword","addressList","watch","searchHandler","console","log","created","$route","query","mounted","initMap","methods","orderInfo","$store","getters","order","AMap","Map","viewMode","zoom","center","startLng","startLat"],"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;MACAC,OAAA;MACAC,WAAA;IACA;EACA;EACAC,KAAA;IACA,MAAAF,QAAA;MACA,KAAAC,WAAA,cAAAE,aAAA;MACAC,OAAA,CAAAC,GAAA,0BAAAJ,WAAA;IACA;EACA;EACAK,QAAA;IACA,KAAAP,MAAA,QAAAQ,MAAA,CAAAC,KAAA,CAAAT,MAAA;IACAK,OAAA,CAAAC,GAAA,qBAAAN,MAAA;EACA;EACA,MAAAU,QAAA;IACA,WAAAC,OAAA;EACA;EACAC,OAAA;IACAD,QAAA;MACA,IAAAE,SAAA,QAAAC,MAAA,CAAAC,OAAA,CAAAC,KAAA,CAAAH,SAAA;MACAR,OAAA,CAAAC,GAAA,cAAAO,SAAA;MACA,KAAAf,GAAA,OAAAmB,IAAA,CAAAC,GAAA;QACAC,QAAA;QAAA;QACAC,IAAA;QAAA;QACAC,MAAA,GAAAR,SAAA,CAAAS,QAAA,EAAAT,SAAA,CAAAU,QAAA;MACA;IACA;;IACAnB,cAAA;MACAT,SAAA,MAAAG,GAAA,WAAAG,OAAA;IACA;EACA;AACA"},"metadata":{},"sourceType":"module","externalDependencies":[]}