(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-search-search"],{"08e8":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;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(e){arguments[0]=e=t.$handleEvent(e),t.search()}},model:{value:t.form.keyWord,callback:function(e){t.$set(t.form,"keyWord",e)},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"},[t._v("最近搜索")])],1),a("v-uni-view",{staticClass:"right"},[a("span",{staticClass:"icon iconfont icon-lajitong",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clearStorage.apply(void 0,arguments)}}})])],1),a("v-uni-view",{staticClass:"before-search"},t._l(t.arr,(function(e,i){return a("v-uni-text",{key:i,staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.search(t.arr[i])}}},[t._v(t._s(t.arr[i]))])})),1)],1)],1)},n=[]},"24f1":function(t,e,a){"use strict";a.r(e);var i=a("57d6"),s=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=s.a},4855:function(t,e,a){"use strict";var i=a("9c16"),s=a.n(i);s.a},"57d6":function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{type:"",assemble_activity_id:0,form:{},arr:[]}},onLoad:function(t){t.type&&(this.type=t.type),t.assemble_activity_id&&(this.assemble_activity_id=t.assemble_activity_id)},mounted:function(){this.getData()},methods:{getData:function(){var t=this;uni.getStorage({key:"search_list",success:function(e){null!=e&&null!=e.data&&(t.arr=e.data)}})},search:function(e){var a=null;if(null!=e)a=e;else{a=this.form.keyWord;var i=this.arr;if("undefined"==typeof a||null==a||""==a)return uni.showToast({title:"请输入搜索的关键字",icon:"none",duration:2e3}),!1;i.push(a),uni.setStorage({key:"search_list",data:i,success:function(){t("log","success"," at pages/product/search/search.vue:92")}})}var s=0,n="all",r="/pages/product/list/list?search="+a+"&category_id="+s+"&sortType="+n;"supply"==this.type&&(r="/pages/supply/product/list/list?search="+a+"&category_id="+s+"&sortType="+n+"&assemble_activity_id="+this.assemble_activity_id),uni.navigateTo({url:r})},clearStorage:function(){var t=this;uni.removeStorage({key:"search_list",success:function(e){t.arr=[]}})}}};e.default=a}).call(this,a("0de9")["log"])},"5b31":function(t,e,a){"use strict";a.r(e);var i=a("08e8"),s=a("24f1");for(var n in s)"default"!==n&&function(t){a.d(e,t,(function(){return s[t]}))}(n);a("4855");var r,c=a("f0c5"),o=Object(c["a"])(s["default"],i["b"],i["c"],!1,null,"a04f03da",null,!1,i["a"],r);e["default"]=o.exports},"9c16":function(t,e,a){var i=a("b1ea");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("4f06").default;s("0cbc633f",i,!0,{sourceMap:!1,shadowMode:!1})},b1ea:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".search-wrap .index-search-box .search-box[data-v-a04f03da]{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-a04f03da]{height:%?78?%;line-height:%?78?%;border:solid %?1?% #ccc;color:#333;background:#fff}.before-search[data-v-a04f03da]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-flex-flow:wrap;flex-flow:wrap}.before-search .item[data-v-a04f03da]{padding:%?16?%;margin-right:%?16?%;margin-bottom:%?16?%;border-radius:%?8?%;color:#686868;background:#f0f2f5;font-size:%?24?%}",""]),t.exports=e}}]);