(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-search-search"],{5878:function(e,t,a){var n=a("6d5e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("4f06").default;i("d249ec1a",n,!0,{sourceMap:!1,shadowMode:!1})},"63ce":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"search-wrap"},[a("v-uni-view",{staticClass:"index-search-box d-b-c",attrs:{id:"searchBox"}},[a("v-uni-view",{staticClass:"index-search t-c flex-1"},[a("span",{staticClass:"icon iconfont icon-sousuo"}),a("v-uni-input",{staticClass:"flex-1 ml10 f30 gray3",attrs:{type:"text",value:"","placeholder-class":"f24 gray6",placeholder:"输入你要的商品","confirm-type":"search"},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.search()}},model:{value:e.form.keyWord,callback:function(t){e.$set(e.form,"keyWord",t)},expression:"form.keyWord"}})],1)],1),a("v-uni-view",{staticClass:"p-0-20 bg-white"},[a("v-uni-view",{staticClass:"group-hd"},[a("v-uni-view",{staticClass:"left"},[a("v-uni-text",{staticClass:"min-name"},[e._v("最近搜索")])],1),a("v-uni-view",{staticClass:"right"},[a("span",{staticClass:"icon iconfont icon-lajitong",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clearStorage.apply(void 0,arguments)}}})])],1),a("v-uni-view",{staticClass:"before-search"},e._l(e.arr,(function(t,n){return a("v-uni-text",{key:n,staticClass:"item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.search(e.arr[n])}}},[e._v(e._s(e.arr[n]))])})),1)],1)],1)},i=[]},"6d5e":function(e,t,a){var n=a("24fb");t=n(!1),t.push([e.i,".search-wrap .index-search-box .search-box[data-v-998b5308]{padding:0 %?20?%;height:%?64?%;line-height:%?64?%;background:#f7f7f7;border-radius:%?50?%;overflow:hidden;font-size:%?28?%;color:#999;box-sizing:border-box}.search-wrap .index-search-box uni-button[data-v-998b5308]{height:%?78?%;line-height:%?78?%;border:solid %?1?% #ccc;color:#333;background:#fff}.before-search[data-v-998b5308]{display:flex;justify-content:flex-start;align-items:center;flex-flow:wrap}.before-search .item[data-v-998b5308]{padding:%?16?%;margin-right:%?16?%;margin-bottom:%?16?%;border-radius:%?8?%;color:#686868;background:#f0f2f5;font-size:%?24?%}",""]),e.exports=t},"6fba":function(e,t,a){"use strict";var n=a("5878"),i=a.n(n);i.a},a96e:function(e,t,a){"use strict";a.r(t);var n=a("63ce"),i=a("b439");for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);a("6fba");var s=a("f0c5"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"998b5308",null,!1,n["a"],void 0);t["default"]=o.exports},b439:function(e,t,a){"use strict";a.r(t);var n=a("f5cb"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a},f5cb:function(e,t,a){"use strict";a("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("14d9");var n={data:function(){return{form:{},arr:[]}},mounted:function(){this.getData()},methods:{getData:function(){var e=this;uni.getStorage({key:"search_list",success:function(t){null!=t&&null!=t.data&&(e.arr=t.data)}})},search:function(e){var t=null;if(null!=e)t=e;else{t=this.form.keyWord;var a=this.arr;if("undefined"==typeof t||null==t||""==t)return uni.showToast({title:"请输入搜索的关键字",icon:"none",duration:2e3}),!1;a.push(t),uni.setStorage({key:"search_list",data:a,success:function(){console.log("success")}})}this.gotoPage("/pages/product/list/list?search="+t+"&category_id=0&sortType=all")},clearStorage:function(){var e=this;uni.removeStorage({key:"search_list",success:function(t){e.arr=[]}})}}};t.default=n}}]);