(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/views/home/search"],{"133f":function(t,o,e){"use strict";e.r(o);var n=e("6954"),a=e("b2b6");for(var s in a)"default"!==s&&function(t){e.d(o,t,(function(){return a[t]}))}(s);e("be84");var i,r=e("f0c5"),d=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"4d42b304",null,!1,n["a"],i);o["default"]=d.exports},"38ab":function(t,o,e){},6954:function(t,o,e){"use strict";var n;e.d(o,"b",(function(){return a})),e.d(o,"c",(function(){return s})),e.d(o,"a",(function(){return n}));var a=function(){var t=this,o=t.$createElement;t._self._c},s=[]},a294:function(t,o,e){"use strict";(function(t){e("2804");n(e("66fd"));var o=n(e("133f"));function n(t){return t&&t.__esModule?t:{default:t}}t(o.default)}).call(this,e("543d")["createPage"])},b2b6:function(t,o,e){"use strict";e.r(o);var n=e("d038"),a=e.n(n);for(var s in n)"default"!==s&&function(t){e.d(o,t,(function(){return n[t]}))}(s);o["default"]=a.a},be84:function(t,o,e){"use strict";var n=e("38ab"),a=e.n(n);a.a},d038:function(t,o,e){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var e=getApp(),n={data:function(){return{defaultKeyword:"",keyword:"",oldKeywordList:[],hotKeywordList:[],keywordList:[],forbid:"",isShowKeywordList:!1,shows:!1,colors:""}},components:{},props:{},onLoad:function(t){this.setData({colors:e.globalData.newColor}),this.init()},onReady:function(){},onShow:function(){},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},methods:{init:function(){this.loadDefaultKeyword(),this.loadOldKeyword()},loadDefaultKeyword:function(){this.setData({defaultKeyword:"请输入您想搜索的内容"})},loadOldKeyword:function(){var o=this;t.getStorage({key:"OldKeys",success:function(t){var e=JSON.parse(t.data);o.setData({oldKeywordList:e})}})},doSearch:function(){""!=this.keyword?(this.keyword&&""!==this.keyword&&this.saveKeyword(this.keyword),t.showLoading({title:"搜索中..."}),this.setData({keywordList:[]}),this.onsearch()):t.showToast({title:"请输入要搜索的内容",icon:"none"})},onclear:function(t){this.setData({keyword:t.detail.value,shows:""!==t.detail.value})},saveKeyword:function(o){var e=this;t.getStorage({key:"OldKeys",success:function(n){var a=JSON.parse(n.data),s=a.indexOf(o);-1==s||a.splice(s,1),a.unshift(o),a.length>10&&a.pop(),t.setStorage({key:"OldKeys",data:JSON.stringify(a)}),e.setData({oldKeywordList:a})},fail:function(n){var a=[o];t.setStorage({key:"OldKeys",data:JSON.stringify(a)}),e.setData({oldKeywordList:a})}})},oldDelete:function(){var o=this;t.showModal({content:"确定清除历史搜索记录？",success:function(e){e.confirm?(console.log("用户点击确定"),o.setData({oldKeywordList:[]}),t.removeStorage({key:"OldKeys"})):e.cancel&&console.log("用户点击取消")}})},onsearch:function(){t.hideLoading(),t.showToast({title:"暂无结果",icon:"none"})},clears:function(){this.setData({keyword:"",keywordList:[],isShowKeywordList:!1})},ondoSearch:function(t){console.log(t)},jumpData:function(o){t.navigateTo({url:"/pages/views/goods/goodsDetails?goodsId"})}}};o.default=n}).call(this,e("543d")["default"])}},[["a294","common/runtime","common/vendor"]]]);