{"ast":null,"code":"// import { getFeeTitle, feeList } from '@/utils/common'\n// import { 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 async mounted() {\n await this.initMap();\n await this.setTab(); // 设置服务\n console.log(this.$store.getters.order.orderInfo);\n // await this.getFeeFun();\n },\n\n methods: {\n /* async getFeeFun() {\r\n const address = this.$store.getters.order.address\r\n const destAddress = this.$store.getters.order.destAddress\r\n const orderInfo = this.$store.getters.order.orderInfo\r\n let res = await getFee({\r\n appCode: 'XCHRSA',\r\n serviceId: this.serverList[this.activeTab].serverId,\r\n startLat: address.startLat,\r\n startLng: address.startLng,\r\n startPoiAddress: address.startPoiAddress,\r\n endLat: destAddress.endLat,\r\n endLng: destAddress.endLng,\r\n endPoiAddress: destAddress.endPoiAddress,\r\n isAppoint: orderInfo.isAppoint,\r\n appointTime: orderInfo.appointTime + ':00',\r\n positionEnvironment: parseInt(orderInfo.positionEnvironment),\r\n })\r\n console.log('fee', res)\r\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":["serverList","tabBar","AttentionItem","commonBtn","myMixins","name","mixins","data","map","activeTab","checked","components","mounted","initMap","setTab","console","log","$store","getters","order","orderInfo","methods","AMap","Map","viewMode","zoom"],"sources":["src/views/index/rescue.vue"],"sourcesContent":["\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 \r\n 手机号:\r\n \r\n \r\n \r\n \r\n \r\n 预计:\r\n \r\n 0元起\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":"AAiDA;AACA;AACA,SAAAA,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;EACA,MAAAS,QAAA;IACA,WAAAC,OAAA;IACA,WAAAC,MAAA;IACAC,OAAA,CAAAC,GAAA,MAAAC,MAAA,CAAAC,OAAA,CAAAC,KAAA,CAAAC,SAAA;IACA;EACA;;EACAC,OAAA;IACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACAR,QAAA;MACA,KAAAL,GAAA,OAAAc,IAAA,CAAAC,GAAA;QACAC,QAAA;QAAA;QACAC,IAAA;MACA;IACA;;IACAX,OAAA;MACA,KAAAL,SAAA,QAAAQ,MAAA,CAAAC,OAAA,CAAAC,KAAA,CAAAC,SAAA,CAAAX,SAAA;IACA;EACA;AACA"},"metadata":{},"sourceType":"module","externalDependencies":[]}