You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
18 KiB
1 lines
18 KiB
{"version":3,"sources":["webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CitySelect.vue?e1d8","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CitySelect.vue?2f96","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CitySelect.vue?2845","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CitySelect.vue?f556","uni-app:///components/CitySelect.vue","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CitySelect.vue?e433","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/CitySelect.vue?4908"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAuH;AACvH;AAC8D;AACL;AACc;;;AAGvE;AAC6M;AAC7M,gBAAgB,iNAAU;AAC1B,EAAE,gFAAM;AACR,EAAE,qFAAM;AACR,EAAE,8FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,yFAAU;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,qPAEN;AACP;AACA;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;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAAyzB,CAAgB,wyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACsF70B;AACA,oBADA;AAEA;AACA,sBADA;AAEA,oCAFA;AAGA,kCAHA,EAFA;;AAOA,8CAPA;AAQA,MARA,kBAQA;AACA;AACA,kBADA;AAEA,sBAFA;AAGA,kBAHA;AAIA,0BAJA;AAKA,cALA;AAMA,sBANA;AAOA,kBAPA;AAQA,0BARA;AASA,gBATA;;AAWA,GApBA;AAqBA;AACA,SADA,iBACA,QADA,EACA;AACA;AACA,KAHA;AAIA,gBAJA,wBAIA,IAJA,EAIA;AACA;AACA,KANA,EArBA;;AA6BA,SA7BA,qBA6BA;AACA;AACA;AACA;AACA;AACA;AACA,GAnCA;AAoCA;AACA,QADA,kBACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAVA;AAWA,aAXA,qBAWA,KAXA,EAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAtBA;AAuBA,kBAvBA,0BAuBA,KAvBA,EAuBA;AACA;AACA;AACA;AACA,KA3BA;AA4BA,cA5BA,sBA4BA,KA5BA,EA4BA;AACA;AACA;AACA;AACA,KAhCA;AAiCA,kBAjCA,0BAiCA,KAjCA,EAiCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCADA;AAEA,qCAFA,EADA;;AAKA;AACA,+BADA;AAEA,iCAFA,EALA;;AASA;AACA,mCADA;AAEA,qCAFA,EATA;;;AAcA;AACA,KAjEA,EApCA,E;;;;;;;;;;;;ACtFA;AAAA;AAAA;AAAA;AAA4+C,CAAgB,w4CAAG,EAAC,C;;;;;;;;;;;ACAhgD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/CitySelect.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./CitySelect.vue?vue&type=template&id=02062662&\"\nvar renderjs\nimport script from \"./CitySelect.vue?vue&type=script&lang=js&\"\nexport * from \"./CitySelect.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CitySelect.vue?vue&type=style&index=0&lang=less&\"\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 null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/CitySelect.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--16-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!./CitySelect.vue?vue&type=template&id=02062662&\"","var components\ntry {\n components = {\n uniPopup: function() {\n return import(\n /* webpackChunkName: \"components/uni-popup/uni-popup\" */ \"@/components/uni-popup/uni-popup.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}\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--12-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!./CitySelect.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--12-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!./CitySelect.vue?vue&type=script&lang=js&\"","<template>\n <view>\n <text class=\"uni-input\" @tap=\"open\">{{value}}</text>\n <uni-popup ref=\"popup\" type=\"bottom\">\n <view class=\"cityselect\">\n <view class=\"cityselect-header\">\n <view class=\"cityselect-title\">\n <text>请选择地址</text>\n </view>\n <view class=\"cityselect-nav\">\n <view class=\"item\" v-if=\"provinceActive\" @tap=\"changeNav(0)\">\n <text>{{provinceActive.n}}</text>\n </view>\n <view class=\"item\" v-if=\"cityActive\" @tap=\"changeNav(1)\">\n <text>{{cityActive.n}}</text>\n </view>\n <view class=\"item\" v-if=\"districtActive\" @tap=\"changeNav(2)\">\n <text>{{districtActive.n}}</text>\n </view>\n <view class=\"item active\" v-else>\n <text>请选择</text>\n </view>\n </view>\n </view>\n <view class=\"cityselect-content\">\n <swiper class=\"swiper\" disable-touch=\"true\" touchable=\"false\" :current=\"current\">\n <swiper-item>\n <scroll-view scroll-y class=\"cityScroll\">\n <view>\n <view\n class=\"cityselect-item\"\n v-for=\"(item,index) in province\"\n :key=\"index\"\n @tap=\"selectProvince(index)\"\n >\n <view class=\"cityselect-item-box\">\n <text>{{item.n}}</text>\n </view>\n </view>\n </view>\n </scroll-view>\n </swiper-item>\n <swiper-item>\n <scroll-view scroll-y class=\"cityScroll\">\n <view>\n <view\n class=\"cityselect-item\"\n v-for=\"(item,index) in city\"\n :key=\"index\"\n @tap=\"selectCity(index)\"\n >\n <view class=\"cityselect-item-box\">\n <text>{{item.n}}</text>\n </view>\n </view>\n </view>\n </scroll-view>\n </swiper-item>\n <swiper-item>\n <scroll-view scroll-y class=\"cityScroll\">\n <view>\n <view\n class=\"cityselect-item\"\n v-for=\"(item,index) in district\"\n :key=\"index\"\n @tap=\"selectDistrict(index)\"\n >\n <view class=\"cityselect-item-box\">\n <text>{{item.n}}</text>\n </view>\n </view>\n </view>\n </scroll-view>\n </swiper-item>\n </swiper>\n </view>\n </view>\n </uni-popup>\n </view>\n</template>\n\n<script type=\"text/babel\">\nimport uniPopup from \"./uni-popup/uni-popup.vue\";\nimport uniPopupMessage from \"./uni-popup/uni-popup-message.vue\";\nimport uniPopupDialog from \"./uni-popup/uni-popup-dialog.vue\";\n\nexport default {\n name: \"CitySelect\",\n components: {\n uniPopup,\n uniPopupMessage,\n uniPopupDialog\n },\n props: [\"callback\", \"items\", \"defaultValue\"],\n data() {\n return {\n value: \"请选择\",\n show: this.value,\n province: [],\n provinceActive: null,\n city: [],\n cityActive: null,\n district: [],\n districtActive: null,\n current: 0\n };\n },\n watch: {\n items(nextItem) {\n this.province = nextItem;\n },\n defaultValue(next){\n this.value=next\n }\n },\n mounted() {\n console.log(this);\n if (this.value) {\n this.value = this.value;\n }\n this.province = this.items;\n },\n methods: {\n open() {\n this.province = this.items;\n this.provinceActive = null;\n this.cityActive = null;\n this.districtActive = null;\n this.city = [];\n this.district = [];\n this.current = 0;\n this.$refs.popup.open();\n },\n changeNav(index) {\n if (index == 0) {\n this.provinceActive = null;\n }\n if (index == 1) {\n this.cityActive = null;\n }\n if (index == 2) {\n this.districtActive = null;\n }\n this.current = index;\n },\n selectProvince(index) {\n this.provinceActive = this.province[index];\n this.city = this.province[index].c;\n this.current = 1;\n },\n selectCity(index) {\n this.cityActive = this.city[index];\n this.district = this.city[index].c;\n this.current = 2;\n },\n selectDistrict(index) {\n this.districtActive = this.district[index];\n this.value = `${this.provinceActive.n} ${this.cityActive.n} ${this.districtActive.n}`;\n // this.callback({\n // province: {\n // id: this.provinceActive.v,\n // name: this.provinceActive.n\n // },\n // city: {\n // id: this.cityActive.v,\n // name: this.cityActive.n\n // },\n // district: {\n // id: this.districtActive.v,\n // name: this.districtActive.n\n // }\n // });\n this.$emit(\"callback\", {\n province: {\n id: this.provinceActive.v,\n name: this.provinceActive.n\n },\n city: {\n id: this.cityActive.v,\n name: this.cityActive.n\n },\n district: {\n id: this.districtActive.v,\n name: this.districtActive.n\n }\n });\n this.$refs.popup.close();\n }\n }\n};\n</script>\n\n<style lang=\"less\">\n.cityselect {\n width: 100%;\n height: 75%;\n background-color: #fff;\n z-index: 1502;\n position: relative;\n padding-bottom: 0; \n padding-bottom: constant(safe-area-inset-bottom); \n padding-bottom: env(safe-area-inset-bottom); \n .cityScroll {\n height: 100%;\n }\n .swiper {\n height: 800rpx;\n }\n}\n.cityselect-header {\n width: 100%;\n z-index: 1;\n}\n.cityselect-title {\n width: 100%;\n font-size: 30rpx;\n text-align: center;\n height: 95rpx;\n line-height: 95rpx;\n position: relative;\n &:cityselect-title:after {\n height: 1px;\n position: absolute;\n z-index: 0;\n bottom: 0;\n left: 0;\n content: \"\";\n width: 100%;\n background-image: linear-gradient(0deg, #ececec 50%, transparent 0);\n }\n}\n.cityselect-nav {\n width: 100%;\n padding-left: 20rpx;\n overflow: hidden;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n .item {\n font-size: 26rpx;\n color: #222;\n display: block;\n height: 80rpx;\n line-height: 92rpx;\n padding: 0 16rpx;\n position: relative;\n margin-right: 30rpx;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 40%;\n &.active {\n color: #F99C10 !important;\n border-bottom: 1rpx solid #F99C10;\n }\n }\n}\n.cityselect-content {\n height: 100%;\n width: 100%;\n}\n.cityselect-item {\n .cityselect-item-box {\n display: block;\n padding: 0 40rpx;\n position: relative;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n word-break: break-all;\n text-overflow: ellipsis;\n line-height: 64rpx;\n max-height: 65rpx;\n font-size: 26rpx;\n color: #333;\n &:after {\n content: \"\";\n height: 1rpx;\n position: absolute;\n z-index: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n background-image: linear-gradient(0deg, #ececec 50%, transparent 0);\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--10-oneOf-1-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--10-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--10-oneOf-1-2!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/less-loader/dist/cjs.js??ref--10-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--10-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!./CitySelect.vue?vue&type=style&index=0&lang=less&\"; export default mod; export * from \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--10-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--10-oneOf-1-2!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/less-loader/dist/cjs.js??ref--10-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--10-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!./CitySelect.vue?vue&type=style&index=0&lang=less&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1635513136209\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":""} |