bztang-admin/addons/yun_shop/static/app/js/chunk-59bb351f.d7241020.js

1 line
5.5 KiB
JavaScript

(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&&c<o+e?(clearTimeout(a),a=setTimeout((function(){o=c,t.apply(r,n)}),e)):(o=c,t.apply(r,n))}}},created:function(){("work"===this.fun.getKey("client")||window.localStorage.getItem("client"))&&(this.chatStrId=window.localStorage.getItem("chat_id")||""),this.$route.params.id&&(this.coursesId=this.$route.params.id,this.getGroupList())},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},l=s,d=l,u=(o("5bcf"),o("2877")),h=Object(u["a"])(d,a,i,!1,null,"0618e204",null);e["default"]=h.exports},"5bcf":function(t,e,o){"use strict";o("26b1")},a66b2:function(t,e,o){var a=o("24fb");e=a(!1),e.push([t.i,".ell[data-v-0618e204]{text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.group-data[data-v-0618e204]{margin:10px 12px 0 12px;padding:0 0 20px 0}.group-data .group-item[data-v-0618e204]{padding:.75rem .75rem 0 .75rem;background-color:#fff;border-radius:.75rem .75rem .75rem .75rem;margin:0 0 .625rem 0}.group-data .group-item h3[data-v-0618e204]{font-weight:700;color:#00001c;font-size:1rem;line-height:1rem;padding:0 0 .75rem 0;border-bottom:.0625rem solid #f0f0f1;text-align:left}.group-data .group-item .group-watch[data-v-0618e204]{padding:1rem 0 .8125rem 0}.group-data .group-item .group-watch .watch[data-v-0618e204]{padding:0 4.1875rem 0 0}.group-data .group-item .group-watch .watch h4[data-v-0618e204]{font-size:.75rem;line-height:.75rem;color:#6e6e79;padding-bottom:.3125rem}.group-data .group-item .group-watch .watch p[data-v-0618e204]{text-align:left;color:#00001c;line-height:1.25rem;font-weight:700}",""]),t.exports=e},ac0d:function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));var a=document.documentElement,i=document.body,r={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:i&&(t=i.scrollTop),t},getClientHeight:function(){var t=0;return t=i.clientHeight&&a.clientHeight?Math.min(i.clientHeight,a.clientHeight):Math.max(i.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(i.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}}}]);