(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-chat-chat-history-chat-history"],{"27c2":function(t,e,i){"use strict";var n=i("4ea4");i("4de4"),i("c975"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("5530")),a=i("26cb"),s={data:function(){return{keyword:"",top:0,list:[]}},onLoad:function(t){var e=uni.getSystemInfoSync(),i=0;i=e.statusBarHeight,this.top=i+uni.upx2px(90),this.list=this.chat.getChatDetail()},computed:(0,r.default)((0,r.default)({},(0,a.mapState)({user:function(t){return t.user.user},chat:function(t){return t.user.chat}})),{},{allList:function(){return""===this.keyword?this.list:this.searchList},searchList:function(){var t=this;return""===this.keyword?[]:this.list.filter((function(e){return-1!==e.data.indexOf(t.keyword)}))}}),methods:{}};e.default=s},"7de8":function(t,e,i){"use strict";i.r(e);var n=i("27c2"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},abd3:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={freeNavBar:i("3e12").default,freeChatItem:i("5220").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("free-nav-bar",{attrs:{title:"聊天记录",showBack:!0,showRight:!1}}),i("v-uni-view",{staticClass:"p-3 bg-light position-fixed left-0 right-0",style:"top:"+t.top+"px;"},[i("v-uni-input",{staticClass:"bg-white rounded",staticStyle:{height:"80rpx"},attrs:{type:"text",placeholder:"搜索","placeholder-class":"text-center"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1),i("v-uni-view",{staticStyle:{height:"140rpx"}}),i("v-uni-view",{staticClass:"px-2 py-1 bg-light"},[i("v-uni-text",{staticClass:"font-sm text-muted"},[t._v(t._s(t.keyword?"搜索结果":"最近联系人"))])],1),t._l(t.allList,(function(e,n){return i("v-uni-view",{key:n,attrs:{id:"chatItem_"+n}},[i("free-chat-item",{ref:"chatItem",refInFor:!0,attrs:{item:e,index:n,pretime:n>0?t.list[n-1].create_time:0,shownickname:!0}})],1)})),""!==t.keyword&&0===t.searchList.length?i("v-uni-view",{staticClass:"flex align-center justify-center",staticStyle:{height:"100rpx"}},[i("v-uni-text",{staticClass:"font text-light-muted"},[t._v("暂无搜索结果")])],1):t._e()],2)},a=[]},f5ba:function(t,e,i){"use strict";i.r(e);var n=i("abd3"),r=i("7de8");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var s,u=i("f0c5"),c=Object(u["a"])(r["default"],n["b"],n["c"],!1,null,"4cfbde98",null,!1,n["a"],s);e["default"]=c.exports}}]);