连云港陪玩陪聊
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.84a0f864.js

1 lines
6.7 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-city"],{"1f13":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAOVJREFUSEvt1LFKA0EQANAXUvkJVhKw1ToE/JZgk8pCCysDMaBdCIh9yK8IilhJmnSCnb8QBMFMoYTzNns5SZctb2feDrM717Cl1diSawf/drbYin30cYJDNDN38Ik3POIWHz/xRfgJnZoX+ryaW4TfcVATjtxWquILjGvClxil4OjpK442xOc4xlcKju+BvmCvIr5AG7PV+NSAdDGtCJ+Wxa6bvBtcZfDhcv+6LCY30vc4S+B3OE8dnIMjb1BSVVQZ1SZXFTiSY2h6SyziJ3jI9b8qnHP+7O/g5G9z417+57nVOuwbDo4bF8mLbxQAAAAASUVORK5CYII="},"4ae4":function(e,t,n){var i=n("c86c");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.city[data-v-5f9314e6]{min-height:100vh;background-color:#fff;padding:0 %?25?%;overflow:hidden}.city-hd[data-v-5f9314e6]{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-5f9314e6]{font-weight:500;font-size:%?28?%;color:#222;display:flex;align-items:center}.city-hd .a uni-image[data-v-5f9314e6]{width:%?22?%;height:%?22?%;margin-left:%?13?%}.city-hd .b[data-v-5f9314e6]{flex:1;font-weight:500;font-size:%?28?%;color:#999;margin-left:%?50?%}.city-bd[data-v-5f9314e6]{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-5f9314e6]{flex:1;max-width:%?500?%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.city-bd .fl uni-text[data-v-5f9314e6]{color:#999}.city-bd .fr[data-v-5f9314e6]{display:flex;align-items:center}.city-bd .fr uni-image[data-v-5f9314e6]{width:%?30?%;height:%?30?%;margin-right:%?10?%}',""]),e.exports=t},"631b":function(e,t,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("9b1b"));n("c223"),n("5c47"),n("dfcf");var o={data:function(){return{jingweiInfo:{},city:""}},onReady:function(){var e=this;e.jingweiInfo=uni.getStorageSync("jingweiInfo"),e.city=this.jingweiInfo.new_city?this.jingweiInfo.new_city:this.jingweiInfo.city,console.log(uni.getStorageSync("jingweiInfo")),uni.$on("clickTap",(function(t){console.log(t),e.jingweiInfo.formatted=t.name,e.jingweiInfo.latitude=t.latitude,e.jingweiInfo.longitude=t.longitude})),uni.$on("watchCity",(function(t){e.city=t.name}))},methods:{getLocation:function(){var e=this;uni.getLocation({type:"gcj02",isHighAccuracy:!0,success:function(t){var n=t.latitude,i=t.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("地址解析"),n.data.regeocode.addressComponent){0==n.data.regeocode.addressComponent.city.length?n.data.regeocode.addressComponent.province:n.data.regeocode.addressComponent.city;e.city=e.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)({},t),n.data.regeocode.addressComponent),{},{formatted:e.city}))}}})}})},openPage:function(e){1==e?uni.navigateTo({url:"/pages/index/cityList"}):2==e&&uni.navigateTo({url:"/pages/index/citySearch?city="+this.city})}}};t.default=o},"67c0":function(e,t,n){"use strict";var i=n("bf59"),a=n.n(i);a.a},"7dfb":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"city"},[i("v-uni-view",{staticClass:"city-hd"},[i("v-uni-view",{staticClass:"a",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openPage(1)}}},[e._v(e._s(e.city)),i("v-uni-image",{attrs:{src:n("1f13")}})],1),i("v-uni-view",{staticClass:"b",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openPage(2)}}},[e._v("请输入")])],1),i("v-uni-view",{staticClass:"city-bd"},[i("v-uni-view",{staticClass:"fl"},[e._v("当前定位:"),i("v-uni-text",[e._v(e._s(e.jingweiInfo.formatted))])],1),i("v-uni-view",{staticClass:"fr",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getLocation()}}},[i("v-uni-image",{attrs:{src:n("a0e2")}}),e._v("重新定位")],1)],1)],1)},a=[]},a0e2:function(e,t){e.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"},baa1:function(e,t,n){"use strict";n.r(t);var i=n("631b"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},bf59:function(e,t,n){var i=n("4ae4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("967d").default;a("22d0009f",i,!0,{sourceMap:!1,shadowMode:!1})},ebfe:function(e,t,n){"use strict";n.r(t);var i=n("7dfb"),a=n("baa1");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("67c0");var c=n("828b"),d=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"5f9314e6",null,!1,i["a"],void 0);t["default"]=d.exports}}]);