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 lines
8.2 KiB
1 lines
8.2 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-citySearch"],{"06f4":function(t,i,n){var e=n("be4f");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=n("967d").default;a("a3c77690",e,!0,{sourceMap:!1,shadowMode:!1})},"0a06":function(t,i,n){"use strict";n.r(i);var e=n("e1c7"),a=n("4b7e");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(i,t,(function(){return a[t]}))}(s);n("161d");var c=n("828b"),o=Object(c["a"])(a["default"],e["b"],e["c"],!1,null,"73f5253e",null,!1,e["a"],void 0);i["default"]=o.exports},"161d":function(t,i,n){"use strict";var e=n("06f4"),a=n.n(e);a.a},"4b7e":function(t,i,n){"use strict";n.r(i);var e=n("6970"),a=n.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(s);i["default"]=a.a},6970:function(t,i,n){"use strict";n("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={data:function(){return{isShow:!1,city:"",keyword:"",list:[]}},onLoad:function(t){this.city=decodeURIComponent(t.city),console.log(this.city)},methods:{clickTap:function(t){uni.$emit("clickTap",t),this.city="",this.keyword="",this.list=[],this.isShow=!1,uni.navigateBack({delta:1})},changeInput:function(t){var i=this;i.keyword=t.detail.value,uni.request({url:"https://restapi.amap.com/v3/assistant/inputtips?datatype=all&type=分类代码&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=e},9034:function(t,i,n){t.exports=n.p+"static/empty.png"},be4f:function(t,i,n){var e=n("c86c");i=e(!1),i.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-73f5253e]{min-height:100vh;background-color:#fff;padding:0 %?25?%;overflow:hidden}.city-hd[data-v-73f5253e]{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-73f5253e]{width:%?30?%;height:%?30?%;margin-right:%?15?%}.city-hd uni-input[data-v-73f5253e]{flex:1;font-weight:500;font-size:%?28?%;color:#222;height:%?90?%}.city-hd .clear[data-v-73f5253e]{width:%?45?%;height:%?45?%;margin-left:%?15?%}.city-bd[data-v-73f5253e]{padding:0 %?25?% %?25?%;overflow:hidden}.city-bd .list[data-v-73f5253e]{margin-top:%?20?%;overflow:hidden}.city-bd .list .item[data-v-73f5253e]{padding:%?15?% 0;font-size:%?28?%;color:#222}.city-bd .empty[data-v-73f5253e]{padding:%?150?% 0;text-align:center;font-weight:500;font-size:%?28?%;color:#222}.city-bd .empty uni-image[data-v-73f5253e]{display:block;width:%?460?%;height:%?400?%;margin:0 auto}',""]),t.exports=i},d0a5:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAABABJREFUSEvFlltoHGUUx/9nJskmaalpIyLqiwGFYquFFtFqjIL1Xh/E2EIkLuzMt5tg8FZUqg99UVSsFyJJ9vtmSQQDrQ99qdQLgpZ6Q1qoWiwoqIgpIppi0U02yXzHOWE3bNKdTZqs7YGBndkz5zfnO1fCBRJaKtfzvPVEtJOIOgCsB9BafPcvACeZ+TAz7wuC4ORSbC4KTqVSG1zXfQXAXQDm9Jn5XwEQ0aoyEAP4IAzDp3O53IlqH1AVrJR6CsCL0dUA4DSAt621BycmJo6Ojo6eEcNdXV1rmpqatjiOsx3AIwDWApiKrt1a671x8FiwUqofwKMALDO/mc/n95RgccbkI5qbm/cQ0WMAHABvaa37KulXBCuldgN4AUCemXcYY95bStxKOr7v30dE+wE0A3hOay2nNk/OAmcymeuttV9I+Ky124MgOHQu0JKu53n3OI5zEACHYbg1l8t9XW7nLLDv+58R0U3M/LIx5tnlQMs8f4mInmHmz40xN8eCPc+7wXGcL6PY/llXV3flwMDAPysB9/b2rp6Zmfk5ivXF1tobgyD4qmRvnsdKqdcBPA5gr9Z610qgpXeVUq8CkOp4Q2v9REVwlBRHiWiztfa2IAg+rQXY87xbHcf5hJmPRUm6Jc7jvwGsCcOwNZfLjdcCnEql1rmuK93tjNb6ojiwdB5oraUGZ3/XQEgpZYt250K7MMaTABIAVmmt8zWAQikltSzttaC1bozz+AcAVxHRpmw2+00twOl0+jpmPh511x+11lfHJdc7RNQVxePJKB6S4SsWpZRk8mvMPGqMeTgO/JC0Omb+1hizqQZxJt/3jxPRtcXW+25FcF9fX2JycvInIrpMZm82m5V+u2xJp9M7ZEYz86nGxsa2/v7+QkWwPPR934/AGsAf0QjcHATBb8she553RTQqjwG4JAIrY4wpt1NpOsnxvE9EdwI4MTU1tW1kZOT3c4Enk8lL6+vrPyaia5j5Q2PM3QvDVnEs9vT0rA3D8DCAjQB+ZeZuY4zcLypKqTuiyhiV/gzgO9d1OwYHB2WJmCexi0Cx4xwA0MHMHCXIAWbuN8YckeVggR3H9/12IuqLEvMBIhK78tr9cbO86urT2dnptrS07CKi5wGsLsLGpS6J6JTcM7MkolTAuuL/MtFkCt0OYHx6erp9eHj4+yV7XK7Y3d3dmkgkFICdcvxFj+ZUxDU5VgD7CoWCbmtrOz02NrafiB6UUDmOs3VoaGhsseSqGkcJgay3juPMrrfW2tn1duFQkdIsFAofAbil+FHt0ViUITQri663i2ZTFYVkMtnS0NAgObGBmQ8ZY+49L2CBZDKZy621Mtt/0VpvO2/guAP5X4+6WpguGPg/nXKXLugOm9EAAAAASUVORK5CYII="},e1c7:function(t,i,n){"use strict";n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return a})),n.d(i,"a",(function(){}));var e=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"city"},[e("v-uni-view",{staticClass:"city-hd"},[e("v-uni-image",{staticClass:"sousuo",attrs:{src:n("d0a5")}}),e("v-uni-input",{attrs:{type:"search",value:t.keyword,placeholder:"请输入"},on:{input:function(i){arguments[0]=i=t.$handleEvent(i),t.changeInput.apply(void 0,arguments)}}}),e("v-uni-image",{staticClass:"clear",attrs:{src:n("fda2")}})],1),e("v-uni-view",{staticClass:"city-bd"},[e("v-uni-view",{staticClass:"list"},t._l(t.list,(function(i,n){return e("v-uni-view",{key:n,staticClass:"item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.clickTap(i)}}},[t._v(t._s(i.name))])})),1),t.isShow?e("v-uni-view",{staticClass:"empty"},[e("v-uni-image",{attrs:{src:n("9034")}}),e("v-uni-view",{staticClass:"txt"},[t._v("暂无数据")])],1):t._e()],1)],1)},a=[]},fda2:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABX5JREFUW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