(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/chat/chat"],{40:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var s=o(n(41));e.__webpack_require_UNI_MP_PLUGIN__=n,t(s.default)}).call(this,n(1)["default"],n(2)["createPage"])},41:function(e,t,n){"use strict";n.r(t);var o=n(42),s=n(44);for(var a in s)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return s[e]}))}(a);n(49);var i,c=n(32),r=Object(c["default"])(s["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],i);r.options.__file="pages/chat/chat.vue",t["default"]=r.exports},42:function(e,t,n){"use strict";n.r(t);var o=n(43);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},43:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return s})),n.d(t,"staticRenderFns",(function(){return i})),n.d(t,"recyclableRender",(function(){return a})),n.d(t,"components",(function(){return o}));try{o={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,154))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var s=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.chatList,(function(t,n){var o=e.__get_orig(t),s="text"!==t.type?e.returnImageClass(t.body):null;return{$orig:o,m0:s}})));e.$mp.data=Object.assign({},{$root:{l0:n}})},a=!1,i=[];s._withStripped=!0},44:function(e,t,n){"use strict";n.r(t);var o=n(45),s=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=s.a},45:function(e,t,n){"use strict";(function(e){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=o(n(46)),a=o(n(18)),i=o(n(48)),c=n(297),r=n(298),u=o(n(299)),l={data:function(){return{message:"",chatList:[],postData:{rows:10,page:1,flag:!0,loading:!0,loadText:"正在获取消息..."},nextMessageId:""}},onShow:function(){c.YeIMUniSDK.getInstance().addEventListener(c.YeIMUniSDKDefines.EVENT.MESSAGE_RECEIVED,this.onMessage)},onHide:function(){c.YeIMUniSDK.getInstance().removeEventListener(c.YeIMUniSDKDefines.EVENT.MESSAGE_RECEIVED,this.onMessage)},onLoad:function(){var e=this,t="whx",n=(new Date).getTime()+864e8,o=(0,u.default)(t+n+"50abd47112ebe8c5a73f4694c96a49ce");(0,r.login)({userId:t,timestamp:n,sign:o}).then((function(n){if(200===n.code){var o=n.data.token;c.YeIMUniSDK.getInstance().connect({userId:t,token:o,success:function(t){200===t.code&&e.getHistoryMsg()},fail:function(e){console.log(e)}})}}))},onPageScroll:function(e){e.scrollTop<5&&this.getHistoryMsg()},methods:{returnImageClass:function(e){var t=e.thumbnailWidth,n=e.thumbnailHeight,o="";return t>n&&(o="image-width"),t==n&&(o="image-width-height"),t1?"#msg-".concat(e.chatList[0].time):"#msg-".concat(n[n.length-1].time),e.chatList=[].concat((0,a.default)(n),(0,a.default)(e.chatList)),e.$nextTick((function(){e.setPageScrollTo(o),e.toggleTips(!0),n.length