xlcs/xlcs-user/unpackage/dist/dev/.sourcemap/mp-weixin/components/PickUpLocationHeader/PickUpLocationHeader.js.map
2024-01-23 13:29:13 +08:00

1 line
15 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"sources":["webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/components/PickUpLocationHeader/PickUpLocationHeader.vue?6af4","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/components/PickUpLocationHeader/PickUpLocationHeader.vue?2599","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/components/PickUpLocationHeader/PickUpLocationHeader.vue?e414","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/components/PickUpLocationHeader/PickUpLocationHeader.vue?58a6","uni-app:///components/PickUpLocationHeader/PickUpLocationHeader.vue","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/components/PickUpLocationHeader/PickUpLocationHeader.vue?8add","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/components/PickUpLocationHeader/PickUpLocationHeader.vue?eac7"],"names":["ak","name","props","data","show","latitude","longitude","computed","methods","findAllListConfirm","BMap","address","fail","console","success","searchLocation","onBlurSearch","watch","searchKeyword","handler","immediate","mounted"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA6I;AAC7I;AACwE;AACL;AACsC;;;AAGzG;AACmN;AACnN,gBAAgB,iNAAU;AAC1B,EAAE,0FAAM;AACR,EAAE,2GAAM;AACR,EAAE,oHAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,+GAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,+NAEN;AACP,KAAK;AACL;AACA,aAAa,2OAEN;AACP,KAAK;AACL;AACA,aAAa,iSAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AChDA;AAAA;AAAA;AAAA;AAAi2B,CAAgB,kzBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;ACyBr3B;AACA;AAAA;AAAA;AACA;AACA;AACA;EACAA;AACA;AAAA,eAEA;EACAC;EACAC;EACAC;IACA;MACAC;MACAC;MACAC;IACA;EACA;EACAC,4BACA,kFACA;EACAC,uDACA,oFACA;IACAC;MAAA;MACA;MACA;MACAC;QACAC;QACAC;UACAC;QACA;QACAC;UACA;UACA;UACA;UACA;UACA;YACAT;YACAC;UACA;UAEA;QACA;MACA;IACA;IACAS;MAAA;MACA;QACAL;UACAC;UACAC;YACAC;UACA;UACAC;YACA;YACA;YACA;;YAEA;YACA;cACAT;cACAC;YACA;UACA;QACA;MACA;IACA;IACAU;MACA;IACA;EAAA,EACA;EACAC;IACAC;MACAC;QACAN;QACA;MACA;MACAO;IACA;EACA;EACAC;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;AC5GA;AAAA;AAAA;AAAA;AAAomD,CAAgB,y8CAAG,EAAC,C;;;;;;;;;;;ACAxnD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/PickUpLocationHeader/PickUpLocationHeader.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./PickUpLocationHeader.vue?vue&type=template&id=76460f44&scoped=true&\"\nvar renderjs\nimport script from \"./PickUpLocationHeader.vue?vue&type=script&lang=js&\"\nexport * from \"./PickUpLocationHeader.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PickUpLocationHeader.vue?vue&type=style&index=0&id=76460f44&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"76460f44\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/PickUpLocationHeader/PickUpLocationHeader.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./PickUpLocationHeader.vue?vue&type=template&id=76460f44&scoped=true&\"","var components\ntry {\n components = {\n uIcon: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-icon/u-icon\" */ \"uview-ui/components/u-icon/u-icon.vue\"\n )\n },\n uSearch: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-search/u-search\" */ \"uview-ui/components/u-search/u-search.vue\"\n )\n },\n uPicker: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-picker/u-picker\" */ \"uview-ui/components/u-picker/u-picker.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n _vm.show = true\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./PickUpLocationHeader.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./PickUpLocationHeader.vue?vue&type=script&lang=js&\"","<template>\n <view class=\"gg-header\">\n <view class=\"gg-header-location u-p-r-50\" @click=\"show = true\">\n <text class=\"u-p-r-10\">{{ currentPickUpArea }}</text>\n <u-icon color=\"gray\" name=\"arrow-down-fill\" size=\"20\"></u-icon>\n </view>\n <!-- 如果利用v-model操作会造成searchKeyword对于父组件的二次重渲染问题所以将value与blur拆分\n 并且利用update:searchKeyword的方式将数据传递到父组件并进行本组件的数据搜索操作 -->\n <u-search\n :clearabled=\"false\"\n :show-action=\"true\"\n :value=\"searchKeyword\"\n class=\"gg-header-search\"\n height=\"70\"\n input-align=\"left\"\n @blur=\"onBlurSearch\"\n @custom=\"searchLocation\"\n @search=\"searchLocation\"\n ></u-search>\n <u-picker v-model=\"show\" :default-selector=\"[0]\" :range=\"findAllList\" mode=\"selector\" range-key=\"regionName\"\n @confirm=\"findAllListConfirm\"></u-picker>\n </view>\n</template>\n\n<script>\nimport {mapState, mapMutations, mapActions} from 'vuex';\nimport {BAIDU_MAP_AK} from '../../common/const.js';\n// 百度地址资料https://lbsyun.baidu.com/index.php?title=wxjsapi/guide/geocoding\nconst bmap = require('../../common/bmap-wx.min.js');\nconst BMap = new bmap.BMapWX({\n ak: BAIDU_MAP_AK\n});\n\nexport default {\n name: 'PickUpLocationHeader',\n props: ['searchKeyword'],\n data() {\n return {\n show: false,\n latitude: '',\n longitude: ''\n };\n },\n computed: {\n ...mapState('pickUpLocationModule', ['findAllList', 'currentPickUpArea'])\n },\n methods: {\n ...mapMutations('pickUpLocationModule', ['setCurrentPickUpAreaMutation']),\n ...mapActions('pickUpLocationModule', ['getSysRegionFindAllListAction']),\n findAllListConfirm(index) {\n // 通过百度地图进行地址解析,返回经纬度,并通知父组件进行列表显示处理\n // 发起geocoding检索请求\n BMap.geocoding({\n address: this.findAllList[index],\n fail: e => {\n console.log(e);\n },\n success: data => {\n let wxMarkerData = data.wxMarkerData;\n this.latitude = wxMarkerData[0].latitude;\n this.longitude = wxMarkerData[0].longitude;\n // 通过父组件查询数据\n this.$emit('getSearchLeader', {\n latitude: this.latitude,\n longitude: this.longitude\n });\n\n this.setCurrentPickUpAreaMutation(this.findAllList[index])\n }\n });\n },\n searchLocation(value) {\n if (value && value.trim().length > 0) {\n BMap.geocoding({\n address: value,\n fail: e => {\n console.log(e);\n },\n success: data => {\n let wxMarkerData = data.wxMarkerData;\n this.latitude = wxMarkerData[0].latitude;\n this.longitude = wxMarkerData[0].longitude;\n\n // 通过父组件查询数据\n this.$emit('getSearchLeader', {\n latitude: this.latitude,\n longitude: this.longitude\n });\n }\n });\n }\n },\n onBlurSearch(value) {\n this.$emit('update:searchKeyword', value);\n }\n },\n watch: {\n searchKeyword: {\n handler(newVal, oldVal) {\n console.log(newVal, oldVal)\n this.searchLocation(newVal);\n },\n immediate: true\n }\n },\n mounted() {\n this.getSysRegionFindAllListAction();\n }\n};\n</script>\n\n<style lang=\"scss\" scoped>\n.gg {\n &-header {\n display: flex;\n justify-content: center;\n align-items: center;\n\n &-location {\n text {\n color: gray;\n }\n }\n\n &-search {\n flex: 1;\n }\n }\n}\n</style>\n","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./PickUpLocationHeader.vue?vue&type=style&index=0&id=76460f44&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./PickUpLocationHeader.vue?vue&type=style&index=0&id=76460f44&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1705987584070\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}