(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/search"],{169:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(170));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},170:function(e,n,t){"use strict";t.r(n);var o=t(171),r=t(173);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);t(175);var c,s=t(32),u=Object(s["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"761fbcef",null,!1,o["components"],c);u.options.__file="pages/home/search.vue",n["default"]=u.exports},171:function(e,n,t){"use strict";t.r(n);var o=t(172);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},172:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return c})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return o}));try{o={uNavbar:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-navbar/u-navbar")]).then(t.bind(null,313))},uSearch:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-search/u-search")]).then(t.bind(null,321))},"u-Text":function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u--text/u--text")]).then(t.bind(null,377))},uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(t.bind(null,361))},uToast:function(){return t.e("uni_modules/uview-ui/components/u-toast/u-toast").then(t.bind(null,383))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement,t=(e._self._c,e.list.length),o=0===t?e.records.length:null;e.$mp.data=Object.assign({},{$root:{g0:t,g1:o}})},i=!1,c=[];r._withStripped=!0},173:function(e,n,t){"use strict";t.r(n);var o=t(174),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},174:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t(166),r=function(){t.e("pages/home/cpns/info-list").then(function(){return resolve(t(370))}.bind(null,t)).catch(t.oe)},i=function(){t.e("pages/news/cpns/topic-list").then(function(){return resolve(t(390))}.bind(null,t)).catch(t.oe)},c=function(){t.e("pages/paper/cpns/friend-list").then(function(){return resolve(t(397))}.bind(null,t)).catch(t.oe)},s={components:{InfoList:r,TopicList:i,FriendList:c},data:function(){return{type:"",keyword:"",records:o.searchList,list:[]}},onNavigationBarButtonTap:function(e){0==e.index&&this.search()},onNavigationBarSearchInputChanged:function(e){this.keyword=e.text},onNavigationBarSearchInputConfirmed:function(){this.search()},onLoad:function(e){this.type=e.type},methods:{search:function(){var n=this;if(""===this.keyword)return this.$refs.uToast.show({type:"error",message:"请输入搜索内容"});e.hideKeyboard(),e.showLoading({title:"加载中"}),setTimeout((function(){switch(e.hideLoading(),n.type){case"user":n.list=o.friendList[0].list;break;case"info":n.list=o.newsList[0].list;break;case"topic":n.list=o.topicList[0].list;break}}),1e3)},delRecord:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"all"===e?this.records=[]:this.records.splice(n,1)},editState:function(e){this.records[e].edit=!this.records[e].edit||!this.records[e].edit},editNavPlaceholder:function(){var e="请输入内容";switch(this.type){case"user":e="请输入昵称";break;case"info":e="请输入新鲜事";break;case"topic":e="请输入话题";break}var n=this.$mp.page.$getAppWebview(),t=n.getStyle().titleNView;t.searchInput.placeholder=e,n.setStyle({titleNView:t})}}};n.default=s}).call(this,t(2)["default"])},175:function(e,n,t){"use strict";t.r(n);var o=t(176),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},176:function(e,n,t){}},[[169,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/home/search.js.map