city.js.map
24.8 KB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/linon/work/workai/yxly-teacher/pages/common/city/city.vue?1993","webpack:////Users/linon/work/workai/yxly-teacher/pages/common/city/city.vue?c8bc","webpack:////Users/linon/work/workai/yxly-teacher/pages/common/city/city.vue?2397","webpack:////Users/linon/work/workai/yxly-teacher/pages/common/city/city.vue?f1a6","uni-app:///pages/common/city/city.vue","webpack:////Users/linon/work/workai/yxly-teacher/pages/common/city/city.vue?f603"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;AAE2D;AAC3D;AACA,iG,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,aAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA6H;AAC7H;AACwD;AACL;AACsC;;;AAGzF;AACmN;AACnN,gBAAgB,iNAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,2FAAM;AACR,EAAE,oGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,+FAAU;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,gMAEN;AACP,KAAK;AACL;AACA,aAAa,oMAEN;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;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC7FA;AAAA;AAAA;AAAA;AAAi1B,CAAgB,kyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACqFr2B,oF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,wE,eACA,EACA,IADA,kBACA,CACA,SACA,YADA,EAEA,oBAFA,EAGA,UAHA,EAIA,aAJA,EAKA,OALA,EAMA,cACA,UADA,EAEA,aAFA,EANA,GAWA,CAbA,EAcA,YAdA,wBAcA,CAdA,EAcA,CACA,6BACA,CAhBA,EAiBA,WACA,MADA,kBACA,CADA,EACA,CACA,0BACA,aACA,mBACA,CAEA,cACA,iCAEA,6BACA,wBACA,CAFA,MAEA,CACA,mCACA,4CACA,CACA,CAEA,iBACA,kBACA,aADA,EAEA,oBAFA,EAGA,gCACA,6BACA,0CADA,IAGA,8BACA,gCACA,2BACA,YACA,sBADA,EAEA,wBAFA,EADA,EAKA,+BACA,yDACA,sCACA,CARA,IAUA,CAnBA,IAqBA,CAxCA,EA0CA,QA1CA,oBA0CA,GA1CA,EA0CA,CACA,6CACA,gCACA,uCACA,4BACA,kCACA,8CACA,CACA,CACA,CACA,CApDA,EAsDA,YAtDA,wBAsDA,CAtDA,EAsDA,CAtDA,EAsDA,CAtDA,EAsDA,CACA,6BACA,iBACA,oBACA,CACA,sCACA,OACA,CACA,iCACA,mCACA,2EACA;AACA,SAHA,MAGA;AACA;AACA;AACA;AACA,OARA,MAQA;AACA;AACA;AACA;;AAEA;AACA;AACA,KA7EA;;AA+EA,oBA/EA,4BA+EA,CA/EA,EA+EA,CA/EA,EA+EA,CA/EA,EA+EA;AACA;AACA;;AAEA;AACA;AACA,KArFA;;AAuFA,WAvFA,mBAuFA,CAvFA,EAuFA,CAvFA,EAuFA;AACA;AACA;;AAEA;AACA;AACA,KA7FA;;AA+FA,UA/FA,oBA+FA;AACA;AACA,gBADA;;AAGA,KAnGA;;AAqGA,UArGA,oBAqGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBADA;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBADA;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBADA;;AAGA,KAnIA;;AAqIA,WArIA,qBAqIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBADA;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBADA;;AAGA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gBADA;;AAGA,KArKA,EAjBA,E;;;;;;;;;;;;;ACvFA;AAAA;AAAA;AAAA;AAAolD,CAAgB,y7CAAG,EAAC,C","file":"pages/common/city/city.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;import '@dcloudio/uni-stat/dist/uni-stat.es.js';\nimport Vue from 'vue'\nimport Page from './pages/common/city/city.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./city.vue?vue&type=template&id=21ab0f64&scoped=true&\"\nvar renderjs\nimport script from \"./city.vue?vue&type=script&lang=js&\"\nexport * from \"./city.vue?vue&type=script&lang=js&\"\nimport style0 from \"./city.vue?vue&type=style&index=0&id=21ab0f64&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 \"21ab0f64\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/common/city/city.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!./city.vue?vue&type=template&id=21ab0f64&scoped=true&\"","var components\ntry {\n components = {\n uIndexList: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-index-list/u-index-list\" */ \"@/uview-ui/components/u-index-list/u-index-list.vue\"\n )\n },\n uIndexAnchor: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-index-anchor/u-index-anchor\" */ \"@/uview-ui/components/u-index-anchor/u-index-anchor.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 var g0 = _vm.type == 0 ? _vm.select.includes(_vm.nowCityObj.city) : null\n var g1 =\n !(_vm.type == 0) && _vm.type == 1\n ? _vm.select.includes(_vm.nowCityObj.city)\n : null\n var g2 = _vm.type == 0 ? _vm.select.includes(\"全国\") : null\n var g3 =\n !(_vm.type == 0) && _vm.type == 1 ? _vm.select.includes(\"全国\") : null\n\n var l2 = _vm.__map(_vm.citys, function(value, index) {\n var $orig = _vm.__get_orig(value)\n\n var l0 =\n _vm.type == 0\n ? _vm.__map(value.cities, function(value1, index1) {\n var $orig = _vm.__get_orig(value1)\n\n var g4 = _vm.select.includes(value1.city)\n return {\n $orig: $orig,\n g4: g4\n }\n })\n : null\n var l1 =\n !(_vm.type == 0) && _vm.type == 1\n ? _vm.__map(value.cities, function(value1, index1) {\n var $orig = _vm.__get_orig(value1)\n\n var g5 = _vm.select.includes(value1.city)\n return {\n $orig: $orig,\n g5: g5\n }\n })\n : null\n return {\n $orig: $orig,\n l0: l0,\n l1: l1\n }\n })\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n g1: g1,\n g2: g2,\n g3: g3,\n l2: l2\n }\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--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!./city.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!./city.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"\">\r\n\t\t<view class=\"app\">\n\t\t\t<view class=\"now\">\n\t\t\t\t当前定位\n\t\t\t</view>\n\t\t\t<view class=\"top\" style=\"display: flex;\">\n\t\t\t\t<view>\n\t\t\t\t\t<view v-if=\"type == 0\">\n\t\t\t\t\t\t<view v-if=\"select.includes(nowCityObj.city)\" class=\"nowLocation\" @click=\"welfareClick(nowCityObj,0,false)\">\n\t\t\t\t\t\t\t{{nowCityObj.city}}\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t<view v-else class=\"unowLocation\" @click=\"welfareClick(nowCityObj,0,true)\">\n\t\t\t\t\t\t\t{{nowCityObj.city}}\n\t\t\t\t\t\t</view>\n\t\t\t\t\t</view>\n\t\t\t\t\t<view v-else-if=\"type == 1\">\n\t\t\t\t\t\t<view v-if=\"select.includes(nowCityObj.city)\" class=\"nowLocation\" @click=\"singWelfareClick(nowCityObj,0,false)\">\n\t\t\t\t\t\t\t{{nowCityObj.city}}\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t<view v-else class=\"unowLocation\" @click=\"singWelfareClick(nowCityObj,0,true)\">\n\t\t\t\t\t\t\t{{nowCityObj.city}}\n\t\t\t\t\t\t</view>\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view style=\"margin-left: 40rpx;\">\n\t\t\t\t\t<view v-if=\"type == 0\">\n\t\t\t\t\t\t<view v-if=\"select.includes('全国')\" class=\"nowLocation\" @click=\"quanguo(1,false)\">\n\t\t\t\t\t\t\t全国\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t<view v-else class=\"unowLocation\" @click=\"quanguo(1,true)\">\n\t\t\t\t\t\t\t全国\n\t\t\t\t\t\t</view>\n\t\t\t\t\t</view>\n\t\t\t\t\t<view v-else-if=\"type == 1\">\n\t\t\t\t\t\t<view v-if=\"select.includes('全国')\" class=\"nowLocation\" @click=\"quanguo(2,false)\">\n\t\t\t\t\t\t\t全国\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t<view v-else class=\"unowLocation\" @click=\"quanguo(2,true)\">\n\t\t\t\t\t\t\t全国\n\t\t\t\t\t\t</view>\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t</view>\r\n\t\t\t<u-index-list :scrollTop=\"scrollTop\" :sticky=\"false\">\r\n\t\t\t\t<view v-for=\"(value, index) in citys\" :key=\"index\">\r\n\t\t\t\t\t<u-index-anchor :index=\"value.idx\" />\r\n\t\t\t\t\t<view v-if=\"type == 0\" class=\"tag\">\r\n\t\t\t\t\t\t<view class=\"item\" v-for=\"(value1, index1) in value.cities\" :key=\"index1\">\n\t\t\t\t\t\t\t<view v-if=\"select.includes(value1.city)\" class=\"item_text\" @click=\"welfareClick(value1,index,false)\">\n\t\t\t\t\t\t\t\t{{value1.city}}\n\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t<view v-else class=\"unsel_item_text\" @click=\"welfareClick(value1,index,true)\">\n\t\t\t\t\t\t\t\t{{value1.city}}\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\n\t\t\t\t\t<view v-else-if=\"type == 1\" class=\"tag\">\n\t\t\t\t\t\t<view class=\"item\" v-for=\"(value1, index1) in value.cities\" :key=\"index1\">\n\t\t\t\t\t\t\t<view v-if=\"select.includes(value1.city)\" class=\"item_text\" @click=\"singWelfareClick(value1,index,false)\">\n\t\t\t\t\t\t\t\t{{value1.city}}\n\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t<view v-else class=\"unsel_item_text\" @click=\"singWelfareClick(value1,index,true)\">\n\t\t\t\t\t\t\t\t{{value1.city}}\n\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t</view>\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</u-index-list>\r\n\t\t</view>\r\n\t\t<view class=\"bottom\">\r\n\t\t\t<view class=\"clear\" @click=\"cancel\">\r\n\t\t\t\t<text style=\"font-size: 32rpx;color: #333333;line-height: 84rpx;\">返回</text>\r\n\t\t\t</view>\r\n\t\t\t<view v-if=\"type == 1\" class=\"confirm\" @click=\"submit1\">\r\n\t\t\t\t<text style=\"font-size: 32rpx;color: #FFFFFF;line-height: 84rpx;\">确定</text>\r\n\t\t\t</view>\n\t\t\t<view v-else class=\"confirm\" @click=\"submit\">\n\t\t\t\t<text style=\"font-size: 32rpx;color: #FFFFFF;line-height: 84rpx;\">确定</text>\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\n\timport citys from '@/common/city.js'\n\tvar QQMapWX = require('@/common/qqmap-wx-jssdk.js')\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tscrollTop: 0,\r\n\t\t\t\tcitys,\n\t\t\t\tselect: [],\n\t\t\t\tselectObj: [],\n\t\t\t\ttype: 0,\n\t\t\t\tnowCityObj: {\n\t\t\t\t\tcity: '未知',\n\t\t\t\t\tcity_code: '',\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tonPageScroll(e) {\r\n\t\t\tthis.scrollTop = e.scrollTop;\r\n\t\t},\r\n\t\tmethods: {\n\t\t\tonLoad(e) {\n\t\t\t\tconsole.log('citylog',e)\n\t\t\t\tif (e.type) {\t\t\t\t\t\n\t\t\t\t\tthis.type = e.type\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (e.names) {\n\t\t\t\t\tthis.select = e.names.split(\",\");\n\t\t\t\t\t\n\t\t\t\t\tif (this.select[0] == '全国') {\n\t\t\t\t\t\tthis.selectObj.push('')\n\t\t\t\t\t}else {\n\t\t\t\t\t\tthis.selectObj = JSON.parse(e.ids)\n\t\t\t\t\t\tconsole.log('selectObj',JSON.parse(e.ids))\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlet _this = this\n\t\t\t\tuni.getLocation({\n\t\t\t\t\ttype: 'gcj02',\n\t\t\t\t\tisHighAccuracy: true,\n\t\t\t\t\tsuccess: (res) => {\n\t\t\t\t\t\tlet qqmapsdk = new QQMapWX({\n\t\t\t\t\t\t\tkey: 'S7NBZ-VHDED-G6D4X-HSEPQ-TWY2V-4GBX4'\n\t\t\t\t\t\t});\n\t\t\t\t\t\t_this.latitude = res.latitude\n\t\t\t\t\t\t_this.longitude = res.longitude\n\t\t\t\t\t\tqqmapsdk.reverseGeocoder({\n\t\t\t\t\t\t\tlocation: {\n\t\t\t\t\t\t\t\tlatitude: res.latitude,\n\t\t\t\t\t\t\t\tlongitude: res.longitude\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsuccess: (re) => {\n\t\t\t\t\t\t\t\t_this.nowCityObj.city = re.result.address_component.city\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t_this.findCode(_this.nowCityObj.city)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t},\n\t\t\t\n\t\t\tfindCode(str) {\n\t\t\t\tfor (let i = 0; i < this.citys.length; i++) {\n\t\t\t\t\tlet item = this.citys[i].cities\n\t\t\t\t\tfor (var j = 0; j < item.length; j++) {\n\t\t\t\t\t\tlet cityName = item[j].city\n\t\t\t\t\t\tif (str.indexOf(cityName) != -1) {\n\t\t\t\t\t\t\tthis.nowCityObj.city_code = item[j].city_code\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\n\t\t\twelfareClick(e, i, s) {\n\t\t\t\tif (this.select[0] == '全国') {\n\t\t\t\t\tthis.select = [];\n\t\t\t\t\tthis.selectObj = [];\n\t\t\t\t}\n\t\t\t\tif (this.selectObj.length >= 3 && s) {\n\t\t\t\t\treturn;\n\t\t\t\t} \n\t\t\t\tif (this.selectObj.length != 0) {\n\t\t\t\t\tif (this.select.includes(e.city)) {\n\t\t\t\t\t\tthis.select = this.select.filter(item => item != e.city)\n\t\t\t\t\t\tthis.selectObj = this.selectObj.filter(item => JSON.stringify(item) != JSON.stringify(e))\n\t\t\t\t\t}else {\n\t\t\t\t\t\tthis.select.push(e.city)\n\t\t\t\t\t\tthis.selectObj.push(e)\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tthis.select.push(e.city)\n\t\t\t\t\tthis.selectObj.push(e)\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tconsole.log(this.select)\n\t\t\t\tconsole.log(this.selectObj)\n\t\t\t},\n\t\t\t\n\t\t\tsingWelfareClick(e, i, s) {\n\t\t\t\tthis.select = [];\n\t\t\t\tthis.selectObj = [];\n\t\t\t\t\n\t\t\t\tthis.select.push(e.city)\n\t\t\t\tthis.selectObj.push(e)\n\t\t\t},\n\t\t\t\n\t\t\tquanguo(e,i) {\n\t\t\t\tthis.select = [];\n\t\t\t\tthis.selectObj = [];\n\t\t\t\t\n\t\t\t\tthis.select.push('全国')\n\t\t\t\tthis.selectObj.push('')\n\t\t\t},\n\t\t\t\n\t\t\tcancel() {\n\t\t\t\tuni.navigateBack({\n\t\t\t\t\tdelta: 1\n\t\t\t\t});\n\t\t\t},\n\t\t\t\n\t\t\tsubmit() {\n\t\t\t\tif (this.selectObj.length == 0) {\n\t\t\t\t\tlet pages = getCurrentPages();\n\t\t\t\t\tlet prevPage = pages[pages.length - 2];\n\t\t\t\t\tprevPage.$vm.returnnCity = \"\";\n\t\t\t\t\tprevPage.$vm.form.showCitys = \"全国\";\n\t\t\t\t\tuni.navigateBack({\n\t\t\t\t\t\tdelta: 1\n\t\t\t\t\t});\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (this.select[0] == '全国') {\n\t\t\t\t\tlet pages = getCurrentPages();\n\t\t\t\t\tlet prevPage = pages[pages.length - 2];\n\t\t\t\t\tprevPage.$vm.returnnCity = \"\";\n\t\t\t\t\tprevPage.$vm.form.showCitys = \"全国\";\n\t\t\t\t\tuni.navigateBack({\n\t\t\t\t\t\tdelta: 1\n\t\t\t\t\t});\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlet pages = getCurrentPages();\n\t\t\t\tlet prevPage = pages[pages.length - 2];\n\t\t\t\tprevPage.$vm.returnnCity = JSON.stringify(this.selectObj);\n\t\t\t\tprevPage.$vm.form.showCitys = this.select.toString();\n\t\t\t\tuni.navigateBack({\n\t\t\t\t\tdelta: 1\n\t\t\t\t});\n\t\t\t},\n\t\t\t\n\t\t\tsubmit1() {\n\t\t\t\tif (this.selectObj.length == 0) {\n\t\t\t\t\t// uni.showToast({\n\t\t\t\t\t// \ttitle: \"至少选择一个城市\",\n\t\t\t\t\t// \ticon: 'error',\n\t\t\t\t\t// \tduration: 1000\n\t\t\t\t\t// });\n\t\t\t\t\tuni.navigateBack({\n\t\t\t\t\t\tdelta: 1\n\t\t\t\t\t});\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (this.select[0] == '全国') {\n\t\t\t\t\tlet pages = getCurrentPages();\n\t\t\t\t\tlet prevPage = pages[pages.length - 2];\n\t\t\t\t\tprevPage.$vm.returnnCity = \"\";\n\t\t\t\t\tprevPage.$vm.form.showCitys = \"全国\";\n\t\t\t\t\tuni.navigateBack({\n\t\t\t\t\t\tdelta: 1\n\t\t\t\t\t});\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlet pages = getCurrentPages();\n\t\t\t\tlet prevPage = pages[pages.length - 2];\n\t\t\t\tprevPage.$vm.returnnCity = this.selectObj[0].city_code;\n\t\t\t\tprevPage.$vm.form.showCitys = this.select.toString();\n\t\t\t\t\n\t\t\t\tuni.navigateBack({\n\t\t\t\t\tdelta: 1\n\t\t\t\t});\n\t\t\t}\n\t\t\t\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.app {\r\n\t\tpadding: 20px 30px 0 15px;\n\t\tmargin-bottom: 100px;\r\n\r\n\t\t.now {\r\n\t\t\twidth: 72px;\r\n\t\t\theight: 24px;\r\n\t\t\tfont-size: 18px;\r\n\t\t\tfont-family: PingFangSC-Semibold, PingFang SC;\r\n\t\t\tfont-weight: 600;\r\n\t\t\tcolor: #333333;\r\n\t\t\tline-height: 24px;\r\n\t\t}\r\n\r\n\t\t.nowLocation {\n\t\t\tpadding: 0 15px;\n\t\t\twidth: 212rpx;\n\t\t\theight: 64rpx;\n\t\t\tborder-radius: 2px;\n\t\t\ttext-align: center;\n\t\t\tfont-size: 13px;\n\t\t\tfont-weight: 400;\n\t\t\tborder: 1px solid rgba(255, 13, 22, 0.6);\n\t\t\tbackground: rgba(255, 13, 22, 0.1);\n\t\t\tcolor: rgba(255, 13, 22, 0.6);\n\t\t\tline-height: 32px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tmargin-top: 40rpx;\n\t\t\tmargin-bottom: 50rpx;\r\n\t\t}\n\t\t\n\t\t.unowLocation {\n\t\t\tpadding: 0 15px;\n\t\t\twidth: 212rpx;\n\t\t\theight: 64rpx;\n\t\t\tbackground: #F9FAFC;\n\t\t\tborder-radius: 2px;\n\t\t\tborder: 1px solid #EEEEEE;\n\t\t\ttext-align: center;\n\t\t\tfont-size: 13px;\n\t\t\tfont-weight: 400;\n\t\t\tcolor: #666666;\n\t\t\tline-height: 32px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tmargin-top: 40rpx;\n\t\t\tmargin-bottom: 50rpx;\n\t\t}\r\n\t}\r\n\r\n\t.tag {\r\n\t\tdisplay: flex;\r\n\t\tflex-wrap: wrap; //可换行\r\n\t\twidth: 100%;\r\n\t\tpadding: 30rpx 0;\r\n\r\n\t\t.item {\r\n\t\t\tmargin: 0 16rpx 16rpx 0;\r\n\t\t\twidth: calc((100% - (16rpx * 2))/3);\r\n\t\t\theight: 32px;\r\n\r\n\t\t\t.unsel_item_text {\n\t\t\t\tpadding: 0 15px;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\theight: 100%;\r\n\t\t\t\tbackground: #F9FAFC;\r\n\t\t\t\tborder-radius: 2px;\r\n\t\t\t\tborder: 1px solid #EEEEEE;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tfont-size: 13px;\r\n\t\t\t\tfont-weight: 400;\r\n\t\t\t\tcolor: #666666;\r\n\t\t\t\tline-height: 32px;\n\t\t\t\twhite-space: nowrap;\n\t\t\t\toverflow: hidden;\n\t\t\t\ttext-overflow: ellipsis;\r\n\t\t\t}\r\n\r\n\t\t\t.item_text {\n\t\t\t\tpadding: 0 15px;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\theight: 100%;\r\n\t\t\t\tborder-radius: 2px;\r\n\t\t\t\tborder: 1px solid rgba(255, 13, 22, 0.6);\n\t\t\t\tbackground: rgba(255, 13, 22, 0.1);\n\t\t\t\tcolor: rgba(255, 13, 22, 0.6);\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tfont-size: 13px;\r\n\t\t\t\tfont-weight: 400;\r\n\t\t\t\tline-height: 32px;\n\t\t\t\twhite-space: nowrap;\n\t\t\t\toverflow: hidden;\n\t\t\t\ttext-overflow: ellipsis;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.item:nth-child(3n+0) {\r\n\t\t\tmargin: 0 0 16rpx 0;\r\n\t\t}\r\n\t}\r\n\r\n\t.bottom {\r\n\t\twidth: 100%;\r\n\t\theight: 120rpx;\r\n\t\tposition: fixed;\r\n\t\tbackground-color: #FFFFFF;\r\n\t\tbottom: 0;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: row;\r\n\r\n\t\t.clear {\r\n\t\t\twidth: 220rpx;\r\n\t\t\theight: 84rpx;\r\n\t\t\talign-self: center;\r\n\t\t\ttext-align: center;\r\n\t\t\tmargin-left: 40rpx;\r\n\t\t\tbackground: rgba(0, 0, 0, 0.03);\r\n\t\t\tborder-radius: 4px;\r\n\t\t}\r\n\r\n\t\t.text {\r\n\t\t\tfont-size: 32rpx;\r\n\t\t\tcolor: #333333;\r\n\t\t}\r\n\r\n\t\t.confirm {\r\n\t\t\twidth: 430rpx;\r\n\t\t\theight: 84rpx;\r\n\t\t\tbackground: #FF0D16;\r\n\t\t\t// box-shadow: 0px 2px 8px 0px rgba(12, 177, 122, 0.3);\r\n\t\t\tborder-radius: 6px;\r\n\t\t\talign-self: center;\r\n\t\t\ttext-align: center;\r\n\t\t\tmargin-left: 30rpx;\r\n\t\t}\r\n\t}\r\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!./city.vue?vue&type=style&index=0&id=21ab0f64&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!./city.vue?vue&type=style&index=0&id=21ab0f64&lang=scss&scoped=true&\""],"sourceRoot":""}