(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/chat/chat"],{"3e87":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return s}));var s={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"3d33"))}},a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.chatList,(function(e,n){var s=t.__get_orig(e),a="text"!==e.type?t.returnImageClass(e.body):null,i=t.$dayjs(e.time).format("YYYY-MM-DD HH:mm:ss");return{$orig:s,m0:a,g0:i}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},i=[]},"3f18":function(t,e,n){"use strict";n.r(e);var s=n("3e87"),a=n("467b");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("6c36");var o=n("828b"),r=Object(o["a"])(a["default"],s["b"],s["c"],!1,null,null,null,!1,s["a"],void 0);e["default"]=r.exports},"467b":function(t,e,n){"use strict";n.r(e);var s=n("cc01"),a=n.n(s);for(var i in s)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(i);e["default"]=a.a},"495a":function(t,e,n){},"6c36":function(t,e,n){"use strict";var s=n("495a"),a=n.n(s);a.a},cc01:function(t,e,n){"use strict";(function(t){var s=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=s(n("7eb4")),i=s(n("af34")),o=s(n("ee10")),r=n("2313"),c=(n("17f0"),s(n("a7b6")),{data:function(){return{message:"",chatList:[],postData:{rows:10,page:1,flag:!0,loading:!0,loadText:"正在获取消息..."},nextMessageId:"",nowUserId:""}},onUnload:function(){r.YeIMUniSDK.getInstance().removeEventListener(r.YeIMUniSDKDefines.EVENT.MESSAGE_RECEIVED,this.onMessage)},onLoad:function(e){r.YeIMUniSDK.getInstance().addEventListener(r.YeIMUniSDKDefines.EVENT.MESSAGE_RECEIVED,this.onMessage),t.setNavigationBarTitle({title:e.userName}),this.nowUserId=this.$store.getters.user.userId,this.userId=e.userId,this.getHistoryMsg()},onPageScroll:function(t){t.scrollTop<5&&this.getHistoryMsg()},methods:{returnImageClass:function(t){var e=t.thumbnailWidth,n=t.thumbnailHeight,s="";return e>n&&(s="image-width"),e==n&&(s="image-width-height"),e1?s="#msg-".concat(t.chatList[0].time):n.length>0&&(s="#msg-".concat(n[n.length-1].time)),t.chatList=[].concat((0,i.default)(n),(0,i.default)(t.chatList)),t.$nextTick((function(){t.setPageScrollTo(s),t.toggleTips(!0),n.length