连云港陪玩陪聊
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.
chunwan/unpackage/dist/build/web/static/js/pages-index-city.383788fb.js

1 line
6.8 KiB

4 months ago
(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+L0K8jO71w7ffCWFFO1SbX3YQ2lYhEpXe10eRyilTLeeWkzJcoY9PElZMy3xn672ysjgtrIDLIb5lqd1lNIuatmot01NQypSgcEupkIaVpQ0IhUKeqa0gIXCNNHUoSG4sq