{"ast":null,"code":"import \"core-js/modules/es.array.push.js\";\nimport { getCurrentOrder } from '@/api/order';\nimport BottomItem from '@/components/bottomItem';\nexport default {\n name: \"Search\",\n data() {\n return {\n searchValue: '',\n orderInfo: null\n };\n },\n components: {\n BottomItem\n },\n methods: {\n async searchHandler() {\n if (!this.searchValue) {\n this.$toast('查询内容不能为空');\n return;\n }\n let data = {\n userPhone: '',\n plateNumber: '',\n appCode: localStorage.getItem('appCode') || 'XCHRSA'\n };\n if (/^1[3456789]\\d{9}$/.test(this.searchValue)) {\n data.userPhone = this.searchValue;\n } else {\n data.plateNumber = this.searchValue;\n }\n this.orderInfo = await getCurrentOrder(data);\n },\n goPage(page) {\n this.$router.push({\n name: page\n });\n }\n }\n};","map":{"version":3,"names":["getCurrentOrder","BottomItem","name","data","searchValue","orderInfo","components","methods","searchHandler","$toast","userPhone","plateNumber","appCode","localStorage","getItem","test","goPage","page","$router","push"],"sources":["src/views/index/search.vue"],"sourcesContent":["\r\n\r\n\r\n\r\n\r\n"],"mappings":";AAsCA,SAAAA,eAAA;AACA,OAAAC,UAAA;AACA;EACAC,IAAA;EACAC,KAAA;IACA;MACAC,WAAA;MACAC,SAAA;IACA;EACA;EACAC,UAAA;IACAL;EACA;EACAM,OAAA;IACA,MAAAC,cAAA;MACA,UAAAJ,WAAA;QACA,KAAAK,MAAA;QACA;MACA;MACA,IAAAN,IAAA;QACAO,SAAA;QACAC,WAAA;QACAC,OAAA,EAAAC,YAAA,CAAAC,OAAA;MACA;MACA,wBAAAC,IAAA,MAAAX,WAAA;QACAD,IAAA,CAAAO,SAAA,QAAAN,WAAA;MACA;QACAD,IAAA,CAAAQ,WAAA,QAAAP,WAAA;MACA;MACA,KAAAC,SAAA,SAAAL,eAAA,CAAAG,IAAA;IAEA;IACAa,OAAAC,IAAA;MACA,KAAAC,OAAA,CAAAC,IAAA;QACAjB,IAAA,EAAAe;MACA;IACA;EACA;AACA"},"metadata":{},"sourceType":"module","externalDependencies":[]}