(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/member/search/index"],{"129f":function(t,e,n){"use strict";(function(t){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("7ca3")),c=n("8f59");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var i={data:function(){return{loadEnd:!1,titleBarHeight:0,recordList:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,c.mapState)({themeColor:function(t){return t.app.themeColor}})),onReady:function(){this.loadEnd=!0},onShow:function(){this.recordList=t.getStorageSync("memberHistory")},mounted:function(){var e=t.getSystemInfoSync().statusBarHeight,n=t.getMenuButtonBoundingClientRect();this.titleBarHeight=e+2*(n.top-e)+n.height},methods:{toBack:function(){1==getCurrentPages().length?this.$util.toPage({mode:3,path:"/pages/member/index"}):t.navigateBack()},clearRecords:function(){var e=this;t.showModal({title:"提示",content:"是否删除全部历史记录？",confirmText:"删除",confirmColor:this.themeColor,success:function(n){n.confirm&&(t.removeStorageSync("memberHistory"),e.recordList=[])}})},confirmSearch:function(t){this.doSearch(t.detail.value)},doSearch:function(e){if(e){var n=t.getStorageSync("memberHistory")||[];n.includes(e)||(n.push(e),t.setStorageSync("memberHistory",n)),this.$util.toPage({mode:1,path:"/pages/member/search/result?keyword=".concat(encodeURIComponent(e))})}else t.showToast({title:"请输入要搜索的内容",icon:"none"})}}};e.default=i}).call(this,n("df3c")["default"])},9642:function(t,e,n){"use strict";n.r(e);var r=n("129f"),o=n.n(r);for(var c in r)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(c);e["default"]=o.a},ae09:function(t,e,n){"use strict";n.r(e);var r=n("d22a"),o=n("9642");for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);n("e532");var a=n("828b"),i=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=i.exports},b46c:function(t,e,n){"use strict";(function(t,e){var r=n("47a9");n("aa6c");r(n("3240"));var o=r(n("ae09"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},d22a:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var r=function(){var t=this.$createElement,e=(this._self._c,this.loadEnd?this.recordList&&this.recordList.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},daae:function(t,e,n){},e532:function(t,e,n){"use strict";var r=n("daae"),o=n.n(r);o.a}},[["b46c","common/runtime","common/vendor"]]]);