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 line
6.7 KiB
1 line
6.7 KiB
1 month ago
|
(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:f
|