text: (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/search/search"],{3364:function(t,n,e){"use strict";var i=e("4de6"),u=e.n(i);u.a},"4de6":function(t,n,e){},"574f":function(t,n,e){},"67f7":function(t,n,e){"use strict";e.r(n);var i=e("df71"),u=e("8325");for(var c in u)"default"!==c&&function(t){e.d(n,t,(function(){return u[t]}))}(c);e("798f"),e("3364");var r,o=e("f0c5"),a=Object(o["a"])(u["default"],i["b"],i["c"],!1,null,"4102a444",null,!1,i["a"],r);n["default"]=a.exports},"798f":function(t,n,e){"use strict";var i=e("574f"),u=e.n(i);u.a},8325:function(t,n,e){"use strict";e.r(n);var i=e("e554"),u=e.n(i);for(var c in i)"default"!==c&&function(t){e.d(n,t,(function(){return i[t]}))}(c);n["default"]=u.a},a757:function(t,n,e){"use strict";(function(t){e("7359");i(e("66fd"));var n=i(e("67f7"));function i(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},df71:function(t,n,e){"use strict";e.d(n,"b",(function(){return u})),e.d(n,"c",(function(){return c})),e.d(n,"a",(function(){return i}));var i={uSearch:function(){return e.e("uview-ui/components/u-search/u-search").then(e.bind(null,"6539"))},uCard:function(){return e.e("uview-ui/components/u-card/u-card").then(e.bind(null,"a8ba"))},uCellGroup:function(){return e.e("uview-ui/components/u-cell-group/u-cell-group").then(e.bind(null,"d51c"))},uCellItem:function(){return e.e("uview-ui/components/u-cell-item/u-cell-item").then(e.bind(null,"dd1f"))},uIcon:function(){return e.e("uview-ui/components/u-icon/u-icon").then(e.bind(null,"386b"))}},u=function(){var t=this,n=t.$createElement;t._self._c},c=[]},e554:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{historyList:[],keyword:""}},onLoad:function(){var n=t.getStorageSync("searchHistory");this.historyList=n?JSON.parse(n):[]},onReady:function(){},methods:{clickSearch:function(){if(""===this.keyword)return t.showToast({title:"关键词不能为空",icon:"none"});t.hideKeyboard(),this.addHistory(),this.$u.route("/pages/search/searchList")},cancelSearch:function(){t.navigateBack({delta:1})},clickSearchTag:function(t){this.keyword=t,this.clickSearch()},addHistory:function(){var n=this.historyList.indexOf(this.keyword),e=this.historyList;-1===n?e.unshift(this.keyword):e.unshift(e.splice(n,1)[0]),t.setStorageSync("searchHistory",JSON.stringify(e))},clearHistory:function(){var n=this;t.showModal({title:"提示",content:"是否清除搜索历史？",cancelText:"取消",confirmText:"确认",success:function(e){e.confirm&&(t.clearStorageSync(),n.historyList=[],n.keyword="",n.$mytip.toast("清除成功"))}})}}};n.default=e}).call(this,e("543d")["default"])}},[["a757","common/runtime","common/vendor"]]]);