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
8.6 KiB
1 line
8.6 KiB
1 month ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-citySearch"],{"1eec":function(t,i,n){var a=n("57a3");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var e=n("967d").default;e("6bd0c21c",a,!0,{sourceMap:!1,shadowMode:!1})},"32f7":function(t,i,n){"use strict";n("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a={data:function(){return{isShow:!1,city:"",keyword:"",list:[],jingweiInfo:{}}},onLoad:function(t){this.city=decodeURIComponent(t.city),this.jingweiInfo=uni.getStorageSync("jingweiInfo")},methods:{clickTap:function(t){console.log(t),this.jingweiInfo.new_city=this.city,this.jingweiInfo.formatted=t.name,this.jingweiInfo.latitude=t.location.split(",")[1],this.jingweiInfo.longitude=t.location.split(",")[0],uni.setStorageSync("jingweiInfo",this.jingweiInfo),this.city="",this.keyword="",this.list=[],this.isShow=!1,uni.$emit("clickTap",t),uni.navigateBack({delta:1})},changeInput:function(t){var i=this;i.keyword=t.detail.value,console.log("https://restapi.amap.com/v3/assistant/inputtips?datatype=poi&citylimit=true&city="+i.city+"&key=4a6e2ba8eac3864f0d88f9b5abd026e6&keywords="+i.keyword),uni.request({url:"https://restapi.amap.com/v3/assistant/inputtips?datatype=poi&citylimit=true&city="+i.city+"&key=4a6e2ba8eac3864f0d88f9b5abd026e6&keywords="+i.keyword,success:function(t){console.log(t.data.tips),t.data.tips&&t.data.tips.length>0?(i.list=t.data.tips,i.isShow=!1,console.log(22233)):(i.list=[],i.isShow=!0,console.log(222))}})}}};i.default=a},"57a3":function(t,i,n){var a=n("c86c");i=a(!1),i.push([t.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-78ad558f]{min-height:100vh;background-color:#fff;padding:0 %?25?%;overflow:hidden}.city-hd[data-v-78ad558f]{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 .sousuo[data-v-78ad558f]{width:%?30?%;height:%?30?%;margin-right:%?15?%}.city-hd uni-input[data-v-78ad558f]{flex:1;font-weight:500;font-size:%?28?%;color:#222;height:%?90?%}.city-hd .clear[data-v-78ad558f]{width:%?45?%;height:%?45?%;margin-left:%?15?%}.city-bd[data-v-78ad558f]{padding:0 %?25?% %?25?%;overflow:hidden}.city-bd .list[data-v-78ad558f]{margin-top:%?20?%;overflow:hidden}.city-bd .list .item[data-v-78ad558f]{padding:%?15?% 0;font-size:%?28?%;color:#222}.city-bd .empty[data-v-78ad558f]{padding:%?150?% 0;text-align:center;font-weight:500;font-size:%?28?%;color:#222}.city-bd .empty uni-image[data-v-78ad558f]{display:block;width:%?460?%;height:%?400?%;margin:0 auto}',""]),t.exports=i},"7d86":function(t,i,n){t.exports=n.p+"static/empty.png"},"8ae9":function(t,i,n){"use strict";var a=n("1eec"),e=n.n(a);e.a},"93aa":function(t,i,n){"use strict";n.d(i,"b",(function(){return a})),n.d(i,"c",(function(){return e})),n.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",{staticClass:"city"},[a("v-uni-view",{staticClass:"city-hd"},[a("v-uni-image",{staticClass:"sousuo",attrs:{src:n("f917")}}),a("v-u
|