{"ast":null,"code":"import \"core-js/modules/es.array.push.js\";\nimport { serverList } from '@/utils/serverMap';\nimport tabBar from \"@/components/tabBar\";\nimport BottomItem from '@/components/bottomItem';\nexport default {\n name: \"Home\",\n data() {\n return {\n map: '',\n activeTab: 0,\n serverList: serverList,\n radio: '',\n show: false,\n // 预约时间弹框\n form: {\n address: '上海市浦东新区高科西路650号',\n destAddress: '',\n appointTime: '立即出发'\n },\n columns: [{\n text: '浙江',\n children: [{\n text: '杭州',\n children: [{\n text: '西湖区'\n }, {\n text: '余杭区'\n }]\n }, {\n text: '温州',\n children: [{\n text: '鹿城区'\n }, {\n text: '瓯海区'\n }]\n }]\n }, {\n text: '福建',\n children: [{\n text: '福州',\n children: [{\n text: '鼓楼区'\n }, {\n text: '台江区'\n }]\n }, {\n text: '厦门',\n children: [{\n text: '思明区'\n }, {\n text: '海沧区'\n }]\n }]\n }]\n };\n },\n components: {\n BottomItem,\n tabBar\n },\n mounted() {\n this.initMap();\n },\n methods: {\n initMap() {\n this.map = new AMap.Map('mapId', {\n viewMode: '2D',\n // 默认使用 2D 模式\n zoom: 11,\n //初始化地图层级\n center: [116.397428, 39.90923] //初始化地图中心点\n });\n },\n\n goPage(page) {\n this.$router.push({\n name: page\n });\n },\n changeTabHandler(index) {\n //切换 tab\n this.activeTab = index;\n },\n appointHandler(value, index) {\n Toast(`当前值:${value}, 当前索引:${index}`);\n }\n }\n};","map":{"version":3,"names":["serverList","tabBar","BottomItem","name","data","map","activeTab","radio","show","form","address","destAddress","appointTime","columns","text","children","components","mounted","initMap","methods","AMap","Map","viewMode","zoom","center","goPage","page","$router","push","changeTabHandler","index","appointHandler","value","Toast"],"sources":["src/views/index/index.vue"],"sourcesContent":["\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{form.address}}\r\n \r\n \r\n \r\n \r\n {{form.destAddress || '您的拖车目的地'}}\r\n \r\n \r\n \r\n \r\n \r\n 车辆位于\r\n \r\n 地面\r\n 地库\r\n 高架\r\n \r\n \r\n \r\n \r\n \r\n 预约时间\r\n \r\n {{form.appointTime}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n"],"mappings":";AAqDA,SAAAA,UAAA;AACA,OAAAC,MAAA;AACA,OAAAC,UAAA;AACA;EACAC,IAAA;EACAC,KAAA;IACA;MACAC,GAAA;MACAC,SAAA;MACAN,UAAA,EAAAA,UAAA;MACAO,KAAA;MACAC,IAAA;MAAA;MACAC,IAAA;QACAC,OAAA;QACAC,WAAA;QACAC,WAAA;MACA;MACAC,OAAA,GACA;QACAC,IAAA;QACAC,QAAA,GACA;UACAD,IAAA;UACAC,QAAA;YAAAD,IAAA;UAAA;YAAAA,IAAA;UAAA;QACA,GACA;UACAA,IAAA;UACAC,QAAA;YAAAD,IAAA;UAAA;YAAAA,IAAA;UAAA;QACA;MAEA,GACA;QACAA,IAAA;QACAC,QAAA,GACA;UACAD,IAAA;UACAC,QAAA;YAAAD,IAAA;UAAA;YAAAA,IAAA;UAAA;QACA,GACA;UACAA,IAAA;UACAC,QAAA;YAAAD,IAAA;UAAA;YAAAA,IAAA;UAAA;QACA;MAEA;IAEA;EACA;EACAE,UAAA;IACAd,UAAA;IACAD;EACA;EACAgB,QAAA;IACA,KAAAC,OAAA;EACA;EACAC,OAAA;IACAD,QAAA;MACA,KAAAb,GAAA,OAAAe,IAAA,CAAAC,GAAA;QACAC,QAAA;QAAA;QACAC,IAAA;QAAA;QACAC,MAAA;MACA;IACA;;IACAC,OAAAC,IAAA;MACA,KAAAC,OAAA,CAAAC,IAAA;QACAzB,IAAA,EAAAuB;MACA;IACA;IACAG,iBAAAC,KAAA;MAAA;MACA,KAAAxB,SAAA,GAAAwB,KAAA;IACA;IACAC,eAAAC,KAAA,EAAAF,KAAA;MACAG,KAAA,QAAAD,KAAA,UAAAF,KAAA;IACA;EACA;AACA"},"metadata":{},"sourceType":"module","externalDependencies":[]}