(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["my/chat/index"],{238:function(t,e,n){"use strict";(function(t){n(5);o(n(4));var e=o(n(239));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n(1)["createPage"])},239:function(t,e,n){"use strict";n.r(e);var o=n(240),r=n(242);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n(244);var s,u=n(11),a=Object(u["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],s);a.options.__file="my/chat/index.vue",e["default"]=a.exports},240:function(t,e,n){"use strict";n.r(e);var o=n(241);n.d(e,"render",(function(){return o["render"]})),n.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(e,"components",(function(){return o["components"]}))},241:function(t,e,n){"use strict";var o;n.r(e),n.d(e,"render",(function(){return r})),n.d(e,"staticRenderFns",(function(){return s})),n.d(e,"recyclableRender",(function(){return i})),n.d(e,"components",(function(){return o}));try{o={uImage:function(){return n.e("uview-ui/components/u-image/u-image").then(n.bind(null,648))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.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 t=this,e=t.$createElement;t._self._c},i=!1,s=[];r._withStripped=!0},242:function(t,e,n){"use strict";n.r(e);var o=n(243),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},243:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(){n.e("components/empty").then(function(){return resolve(n(536))}.bind(null,n)).catch(n.oe)},r={components:{empty:o},data:function(){return{page:1,limit:20,chatList:[],userId:"",msgList:[],time:"",count:0,messageCount:0}},onLoad:function(){this.getChatList();var e=this;e.userId?e.time=setInterval((function(){e.getChatList(),e.$nextTick((function(){e.messageCount=t.getStorageSync("messageCount")}))}),3e3):(e.chatList=[],e.msgList=[])},onShow:function(){var e=this;e.userId=t.getStorageSync("userId"),e.userId?(e.page=1,e.msgList=[],e.getChatList()):(e.chatList=[],e.msgList=[])},onHide:function(){clearInterval(this.time)},methods:{getChatList:function(){var t=this;this.$Request.get("/app/ordersChat/selectOrdersChatPageUser",{page:this.page,limit:this.limit}).then((function(e){0==e.code&&(1==t.page&&(t.chatList=[]),e.data.list.forEach((function(e){t.chatList.push(e)})),t.count=e.data.totalCount)}))},goIM:function(e){var n=this.$queue.getData("userId");n=e.userId==n?e.byUserId:e.userId,t.navigateTo({url:"/pages/index/shop/im?ordersId="+e.ordersId})},goMsg:function(){t.navigateTo({url:"/pages/msg/message"})}},onReachBottom:function(){this.chatList.length==this.count?t.showToast({title:"已经到底了",icon:"none"}):(this.page=this.page+1,this.getChatList())}};e.default=r}).call(this,n(1)["default"])},244:function(t,e,n){"use strict";n.r(e);var o=n(245),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},245:function(t,e,n){}},[[238,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/my/chat/index.js.map