(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-city"],{"13e3":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"city"},[i("v-uni-view",{staticClass:"city-hd"},[i("v-uni-view",{staticClass:"a",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openPage(1)}}},[t._v(t._s(t.city)),i("v-uni-image",{attrs:{src:n("4305")}})],1),i("v-uni-view",{staticClass:"b",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openPage(2)}}},[t._v("请输入")])],1),i("v-uni-view",{staticClass:"city-bd"},[i("v-uni-view",{staticClass:"fl"},[t._v("当前定位:"),i("v-uni-text",[t._v(t._s(t.jingweiInfo.formatted))])],1),i("v-uni-view",{staticClass:"fr",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getLocation()}}},[i("v-uni-image",{attrs:{src:n("9879")}}),t._v("重新定位")],1)],1)],1)},a=[]},"191d":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("9b1b"));n("c223"),n("5c47"),n("dfcf");var o={data:function(){return{jingweiInfo:{},city:""}},onReady:function(){var t=this;t.jingweiInfo=uni.getStorageSync("jingweiInfo"),t.city=this.jingweiInfo.city,console.log(uni.getStorageSync("jingweiInfo")),uni.$on("clickTap",(function(e){t.jingweiInfo.formatted=e.name,t.jingweiInfo.latitude=e.latitude,t.jingweiInfo.longitude=e.longitude,uni.setStorageSync("jingweiInfo",t.jingweiInfo)})),uni.$on("watchCity",(function(e){t.city=e.name}))},methods:{getLocation:function(){var t=this;uni.getLocation({type:"gcj02",isHighAccuracy:!0,success:function(e){var n=e.latitude,i=e.longitude,o="https://restapi.amap.com/v3/geocode/regeo?output=json&location=".concat(i,",").concat(n,"&key=4a6e2ba8eac3864f0d88f9b5abd026e6&radius=1000");uni.request({url:o,success:function(n){if(console.log("地址解析"),console.log(n),n.data.regeocode.addressComponent){0==n.data.regeocode.addressComponent.city.length?n.data.regeocode.addressComponent.province:n.data.regeocode.addressComponent.city;t.city=t.city=n.data.regeocode.formatted_address.split(n.data.regeocode.addressComponent.township)[1],uni.setStorageSync("jingweiInfo",(0,a.default)((0,a.default)((0,a.default)({},e),n.data.regeocode.addressComponent),{},{formatted:t.city}))}}})}})},openPage:function(t){1==t?uni.navigateTo({url:"/pages/index/cityList"}):2==t&&uni.navigateTo({url:"/pages/index/citySearch?city="+this.city})}}};e.default=o},4305:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAOVJREFUSEvt1LFKA0EQANAXUvkJVhKw1ToE/JZgk8pCCysDMaBdCIh9yK8IilhJmnSCnb8QBMFMoYTzNns5SZctb2feDrM717Cl1diSawf/drbYin30cYJDNDN38Ik3POIWHz/xRfgJnZoX+ryaW4TfcVATjtxWquILjGvClxil4OjpK442xOc4xlcKju+BvmCvIr5AG7PV+NSAdDGtCJ+Wxa6bvBtcZfDhcv+6LCY30vc4S+B3OE8dnIMjb1BSVVQZ1SZXFTiSY2h6SyziJ3jI9b8qnHP+7O/g5G9z417+57nVOuwbDo4bF8mLbxQAAAAASUVORK5CYII="},"6b84":function(t,e,n){var i=n("bbb5");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("11c8b9e8",i,!0,{sourceMap:!1,shadowMode:!1})},9879:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAnVJREFUSEvFlrlPVFEUxn+jWLkEjZLYuDTSQrRQTJTWBVyopDCKmmBs+TNsDSZuhEIrZRGxFRKXQqKtNqANiRAlqBUuvM+ca+7cue+9WZJ5p3kzdznfOd/ZbomCpFQQLo0AT5nRp+sxvh7gTcAe4IUBdgOfgbVaDKgFWJ5dA44BrQHICjAL3AEcE5l2VAN8ELidKDwUaPpr/0Mdb4FBYC4LOQ9YHt4CRK/kOTAKvATGbe0scBS4CJywNdF+wxiI4mcBX05ied9ufQQuAa89Le/td4e3dgQYAQ7Y2gDwIIacBixa3wAbgRmgF1gNFMhLibz3ZRswCRwHfgOHAdFfJmnAOqjYfrDvz1oyFthsMW63b5gf0TqWdxMGJOrkeT0iT11ozhgL//XEPBZNPcA0cCoDcYvt/cg48ww4mbD21MKVCtwCfAW2Av3Ao4hSxfCep0iGXonkgK5eSBLtIfAd2AH8cvpCj/cm2btgm21JSSxFgB8D54P1J0Bf5Owu4Iut7wM+xYBFSyew2zZVLrJwyDJby/L2G7AhAPkDbPe8VkbfBMSgK7dF4J0Ln+9xCKxDKodGgFWOckaSCqxN0TFvB0XTcoQ+0XouWB+L0K8jO71w7ffCWFFO1SbX3YQ2lYhEpXe10eRyilTLeeWkzJcoY9PElZMy3xn672ysjgtrIDLIb5lqd1lNIuatmot01NQypSgcEupkIaVpQ0IhUKeqa0gIXCNNHUoSG4sqN4krF/0Ox6I6mhutZczkPQR0cTjyEHgFqIQkKq2uyEPgumd4RTjygHWhkKePb2nTH3shTU1/3oYGqDlIsmZ2amepJsaplxvZKAx4HRywjB+yRaesAAAAAElFTkSuQmCC"},b108:function(t,e,n){"use strict";var i=n("6b84"),a=n.n(i);a.a},b8c8:function(t,e,n){"use strict";n.r(e);var i=n("191d"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},bbb5:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.city[data-v-0fd661fc]{min-height:100vh;background-color:#fff;padding:0 %?25?%;overflow:hidden}.city-hd[data-v-0fd661fc]{margin-top:%?30?%;height:%?90?%;background:#f5f5f5;border-radius:%?90?%;border:1px solid #eaeaea;padding:0 %?30?%;box-sizing:border-box;display:flex;align-items:center}.city-hd .a[data-v-0fd661fc]{font-weight:500;font-size:%?28?%;color:#222;display:flex;align-items:center}.city-hd .a uni-image[data-v-0fd661fc]{width:%?22?%;height:%?22?%;margin-left:%?13?%}.city-hd .b[data-v-0fd661fc]{flex:1;font-weight:500;font-size:%?28?%;color:#999;margin-left:%?50?%}.city-bd[data-v-0fd661fc]{margin-top:%?40?%;display:flex;align-items:center;justify-content:space-between;font-weight:500;font-size:%?26?%;color:#222}.city-bd .fl[data-v-0fd661fc]{flex:1;max-width:%?500?%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.city-bd .fl uni-text[data-v-0fd661fc]{color:#999}.city-bd .fr[data-v-0fd661fc]{display:flex;align-items:center}.city-bd .fr uni-image[data-v-0fd661fc]{width:%?30?%;height:%?30?%;margin-right:%?10?%}',""]),t.exports=e},d3ab:function(t,e,n){"use strict";n.r(e);var i=n("13e3"),a=n("b8c8");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("b108");var c=n("828b"),d=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"0fd661fc",null,!1,i["a"],void 0);e["default"]=d.exports}}]);