(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59bb351f"],{"26b1":function(t,e,o){var a=o("a66b2");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=o("499e").default;i("d8ec0942",a,!0,{sourceMap:!1,shadowMode:!1})},"37b3":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"group-data-page"},[o("c-title",{attrs:{hide:!1,text:"群数据"}}),o("van-search",{attrs:{shape:"round",placeholder:"搜索群名称"},on:{input:t.searchChange},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),t.groupList.length>0?o("div",{staticClass:"group-data"},t._l(t.groupList,(function(e,a){return o("block",{key:a},[o("div",{staticClass:"group-item"},[o("h3",{staticClass:"ell"},[t._v(t._s(e.group_name))]),o("div",{staticClass:"group-watch flex"},[o("div",{staticClass:"watch"},[o("h4",[t._v("观看次数")]),o("p",[t._v(t._s(e.watch_count))])]),o("div",{staticClass:"watch"},[o("h4",[t._v("完播次数")]),o("p",[t._v(t._s(e.watch_finish_count))])])])])])})),1):o("van-empty",{attrs:{description:"暂无数据"}})],1)},i=[],r=o("2909"),n=o("5530"),c=(o("a9e3"),o("99af"),o("ac0d")),s={name:"",components:{},mixins:[c["a"]],data:function(){return{coursesId:"",chatStrId:"",keyword:"",groupList:[],isLoadMore:!0,total_page:0,page:1,timer:0}},computed:{},watch:{},methods:{searchChange:function(t){var e=this;this.page=1,this.keyword=t,this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){e.debounce(e.getGroupList())}),500)},getGroupList:function(){var t=this,e={page:this.page,keyword:this.keyword,courses_id:Number(this.coursesId)};("work"===this.fun.getKey("client")||window.localStorage.getItem("client"))&&(e=Object(n["a"])(Object(n["a"])(Object(n["a"])({},this.getConfig),e),{},{chat_str_id:this.chatStrId})),$http.post("plugin.wechat-video-courses.frontend.controller.manage.record.group",e,"加载中..").then((function(e){if(1==e.result){var o,a=null===(o=e.data)||void 0===o?void 0:o.group_chat_list;t.isLoadMore=!0,t.total_page=a.last_page,t.total_page||(t.page=0),t.groupList=a.data}else t.page=t.page-1,t.isLoadMore=!1,t.$dialog.alert({message:e.msg})}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this.page>=this.total_page)){this.page=this.page+1;var e={page:this.page,keyword:this.keyword,courses_id:Number(this.coursesId)};("work"===this.fun.getKey("client")||window.localStorage.getItem("client"))&&(e=Object(n["a"])(Object(n["a"])(Object(n["a"])({},this.getConfig),e),{},{chat_str_id:this.chatStrId})),$http.post("plugin.wechat-video-courses.frontend.controller.manage.record.group",e,"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var o=e.data,a=o.group_chat_list.data;t.groupList=[].concat(Object(r["a"])(t.groupList),Object(r["a"])(a))}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){}))}},debounce:function(t,e){var o,a;return function(i){var r=this,n=arguments,c=+new Date;o&&c60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}}}]);