(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mail-group-list-group-list"],{"222b":function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){return n}));var n={freeNavBar:e("3e12").default,freeListItem:e("7474").default},i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"page"},[e("free-nav-bar",{attrs:{title:"群聊列表",showBack:!0,showRight:!1}}),t._l(t.list,(function(a,n){return e("free-list-item",{key:n,attrs:{title:a.name,cover:a.avatar||"/static/images/userpic.png",showRight:!0},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handle(a)}}})})),t.list.length>=10?e("v-uni-view",{staticClass:"flex align-center justify-center py-5 bg-light"},[e("v-uni-text",{staticClass:"text-muted font"},[t._v(t._s(t.loadmore))])],1):t._e()],2)},o=[]},"2d99":function(t,a,e){"use strict";var n=e("4ea4");e("99af"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=n(e("2909")),o=e("3353"),r=(e("26cb"),{data:function(){return{page:1,totalCount:0,loadmore:"上拉加载更多",list:[]}},computed:{},onShow:function(){var t=this;this.page=1,this.loadmore="上拉加载更多",this.$store.dispatch("getApply",this.page),(0,o.list)({pageInfo:{pageSize:10,pageNo:this.page}}).then((function(a){t.list=a.data.data.list,t.totalCount=a.data.data.totalCount}))},onPullDownRefresh:function(){var t=this;this.page=1,this.loadmore="上拉加载更多",(0,o.list)({pageInfo:{pageSize:10,pageNo:this.page}}).then((function(a){t.list=a.data.data.list,t.totalCount=a.data.data.totalCount,uni.showToast({title:"刷新成功",icon:"none"}),uni.stopPullDownRefresh()}))},onReachBottom:function(){var t=this,a=this;"上拉加载更多"===this.loadmore&&(this.loadmore="加载中...",this.page=this.page+1,(0,o.list)({pageInfo:{pageSize:10,pageNo:this.page}}).then((function(e){a.list=e.data.data.list,t.list=[].concat((0,i.default)(t.list),(0,i.default)(e.data.data.list)),t.totalCount=e.data.data.totalCount,t.loadmore=t.list.length>=t.totalCount?"上拉加载更多":"没有更多了"})).catch((function(a){t.page=t.page-1,t.loadmore="上拉加载更多"})))},methods:{handle:function(t){var a={id:t.id,name:t.name,avatar:t.avatar,chat_type:"group"},e=null;t.manager&&t.manager.id&&(e={user_id:t.manager.id,remark:t.remark,invite_confirm:t.inviteConfirm}),e&&(a.group=e),uni.navigateTo({url:"/pages/chat/chat/chat?params="+encodeURIComponent(JSON.stringify(a))})}}});a.default=r},"863b":function(t,a,e){"use strict";e.r(a);var n=e("2d99"),i=e.n(n);for(var o in n)"default"!==o&&function(t){e.d(a,t,(function(){return n[t]}))}(o);a["default"]=i.a},b9e0:function(t,a,e){"use strict";e.r(a);var n=e("222b"),i=e("863b");for(var o in i)"default"!==o&&function(t){e.d(a,t,(function(){return i[t]}))}(o);var r,s=e("f0c5"),l=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"4859aa7f",null,!1,n["a"],r);a["default"]=l.exports}}]);