{"ast":null,"code":"import { getFeeTitle, feeList } from '@/utils/common';\nimport { getFee } from '@/api/order';\nimport { serverList } from '@/utils/serverMap';\nimport tabBar from \"@/components/tabBar\";\nimport AttentionItem from '@/components/attentionItem';\nimport commonBtn from \"@/components/commonBtn\";\nimport { myMixins } from '@/utils/myMixins.js';\nexport default {\n name: \"rescuePage\",\n mixins: [myMixins],\n data() {\n return {\n map: '',\n activeTab: 0,\n serverList: serverList,\n checked: false\n };\n },\n components: {\n tabBar,\n AttentionItem,\n commonBtn\n },\n mounted() {\n this.initMap();\n this.setTab(); // 设置服务\n console.log(this.$store.getters.order.orderInfo);\n },\n methods: {\n async getFeeFun() {\n const address = this.$store.getters.order.address;\n const destAddress = this.$store.getters.order.destAddress;\n await getFee({\n appCode: 'XCHRSA',\n serviceId: this.serverList[this.activeTab].serverId,\n startLat: address.startLat,\n startLng: address.startLng,\n startPoiAddress: address.startPoiAddress,\n endLat: destAddress.endLat\n });\n },\n initMap() {\n this.map = new AMap.Map('mapId', {\n viewMode: '2D',\n // 默认使用 2D 模式\n zoom: 11 //初始化地图层级\n });\n },\n\n setTab() {\n this.activeTab = this.$store.getters.order.orderInfo.activeTab;\n }\n }\n};","map":{"version":3,"names":["getFeeTitle","feeList","getFee","serverList","tabBar","AttentionItem","commonBtn","myMixins","name","mixins","data","map","activeTab","checked","components","mounted","initMap","setTab","console","log","$store","getters","order","orderInfo","methods","getFeeFun","address","destAddress","appCode","serviceId","serverId","startLat","startLng","startPoiAddress","endLat","AMap","Map","viewMode","zoom"],"sources":["src/views/index/rescue.vue"],"sourcesContent":["\r\n\r\n\r\n\r\n\r\n"],"mappings":"AAiDA,SAAAA,WAAA,EAAAC,OAAA;AACA,SAAAC,MAAA;AACA,SAAAC,UAAA;AACA,OAAAC,MAAA;AACA,OAAAC,aAAA;AACA,OAAAC,SAAA;AACA,SAAAC,QAAA;AACA;EACAC,IAAA;EACAC,MAAA,GAAAF,QAAA;EACAG,KAAA;IACA;MACAC,GAAA;MACAC,SAAA;MACAT,UAAA,EAAAA,UAAA;MACAU,OAAA;IACA;EACA;EACAC,UAAA;IACAV,MAAA;IACAC,aAAA;IACAC;EACA;EACAS,QAAA;IACA,KAAAC,OAAA;IACA,KAAAC,MAAA;IACAC,OAAA,CAAAC,GAAA,MAAAC,MAAA,CAAAC,OAAA,CAAAC,KAAA,CAAAC,SAAA;EACA;EACAC,OAAA;IACA,MAAAC,UAAA;MACA,MAAAC,OAAA,QAAAN,MAAA,CAAAC,OAAA,CAAAC,KAAA,CAAAI,OAAA;MACA,MAAAC,WAAA,QAAAP,MAAA,CAAAC,OAAA,CAAAC,KAAA,CAAAK,WAAA;MACA,MAAAzB,MAAA;QACA0B,OAAA;QACAC,SAAA,OAAA1B,UAAA,MAAAS,SAAA,EAAAkB,QAAA;QACAC,QAAA,EAAAL,OAAA,CAAAK,QAAA;QACAC,QAAA,EAAAN,OAAA,CAAAM,QAAA;QACAC,eAAA,EAAAP,OAAA,CAAAO,eAAA;QACAC,MAAA,EAAAP,WAAA,CAAAO;MAEA;IACA;IACAlB,QAAA;MACA,KAAAL,GAAA,OAAAwB,IAAA,CAAAC,GAAA;QACAC,QAAA;QAAA;QACAC,IAAA;MACA;IACA;;IACArB,OAAA;MACA,KAAAL,SAAA,QAAAQ,MAAA,CAAAC,OAAA,CAAAC,KAAA,CAAAC,SAAA,CAAAX,SAAA;IACA;EACA;AACA"},"metadata":{},"sourceType":"module","externalDependencies":[]}