(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["otherpages/goods/search/search"],{"0756":function(t,n,e){"use strict";e.r(n);var i=e("7d53"),o=e("0a40");for(var s in o)"default"!==s&&function(t){e.d(n,t,(function(){return o[t]}))}(s);e("beac");var r,a=e("f0c5"),u=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"c757f64a",null,!1,i["a"],r);n["default"]=u.exports},"0a40":function(t,n,e){"use strict";e.r(n);var i=e("3060"),o=e.n(i);for(var s in i)"default"!==s&&function(t){e.d(n,t,(function(){return i[t]}))}(s);n["default"]=o.a},3060:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("4c22"));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(){Promise.all([e.e("common/vendor"),e.e("components/ns-show-toast/ns-show-toast")]).then(function(){return resolve(e("f505"))}.bind(null,e)).catch(e.oe)},r={data:function(){return{inputValue:"",historyList:[],searchList:[],showSearch:!0,alikeList:[],isIndex:!1}},components:{nsShowToast:s},onLoad:function(n){n.keyword&&(this.inputValue=n.keyword),!t.getStorageSync("search")&&t.setStorageSync("search",[])},onShow:function(){this.$langConfig.refresh(),this.findHistoryList()},mixins:[i.default],methods:{findHistoryList:function(){this.historyList=t.getStorageSync("search").reverse()},deleteHistoryList:function(){var n=this;t.showModal({title:"提示",content:"确认删除全部历史记录？",success:function(e){e.confirm&&(t.setStorageSync("search",[]),n.findHistoryList())}})},deleteItem:function(n){var e=this;t.showModal({title:"提示",content:"确认删除该条历史记录？",success:function(i){if(i.confirm){var o=t.getStorageSync("search"),s=o.filter((function(t){return t!=n}));t.setStorageSync("search",s),e.findHistoryList()}}})},inputFocus:function(t){this.showScroll=!1,""!=this.inputValue.trim()&&(this.dataList=[])},inputInput:function(t){t.detail.value},otherSearch:function(t){this.inputValue=t,this.search()},search:function(){var n=this;if(""!=this.inputValue.trim()){this.showScroll=!0;var e=t.getStorageSync("search"),i=[];e.length?(i=e.filter((function(t){return t!=n.inputValue.trim()})),i.push(this.inputValue.trim())):i.push(this.inputValue.trim()),t.setStorageSync("search",i),this.$util.redirectTo("/pages/goods/list/list",{keyword:this.inputValue.trim()})}else this.$util.showToast({title:"搜索内容不能为空哦"})}}};n.default=r}).call(this,e("543d")["default"])},"6e2a":function(t,n,e){"use strict";(function(t){e("6b76");i(e("66fd"));var n=i(e("0756"));function i(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"6e30":function(t,n,e){},"7d53":function(t,n,e){"use strict";var i={nsShowToast:function(){return Promise.all([e.e("common/vendor"),e.e("components/ns-show-toast/ns-show-toast")]).then(e.bind(null,"f505"))}},o=function(){var t=this,n=t.$createElement,e=(t._self._c,t.$lang("inputPlaceholder")),i=t.$lang("history");t.$mp.data=Object.assign({},{$root:{m0:e,m1:i}})},s=[];e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return i}))},beac:function(t,n,e){"use strict";var i=e("6e30"),o=e.n(i);o.a}},[["6e2a","common/runtime","common/vendor"]]]);