;(function(){function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i0&&result.pageNo===1)){_context2.next=9;break;}return _context2.abrupt("return");case 9:_this2.buyUserList=_this2.buyUserList.concat(result.rows||[]);_this2.finished=result.pageNo>=result.totalPage;_this2.params.page=result.pageNo+1;_this2.dataShow=_this2.buyUserList.length>0;_context2.next=19;break;case 15:_context2.prev=15;_context2.t0=_context2["catch"](0);_this2.dataShow=false;_this2.finished=true;case 19:case"end":return _context2.stop();}}},_callee2,null,[[0,15]]);}))();},onPlay:function onPlay(detail){this.$router.push({path:'/videoClassDetail',query:{groupId:this.params.videoLessonGroupId,classId:detail.id}});},updateShelves:function updateShelves(){var _this3=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee4(){return regeneratorRuntime.wrap(function _callee4$(_context4){while(1){switch(_context4.prev=_context4.next){case 0:Dialog.confirm({title:'提示',message:'确认下架该课程吗?',confirmButtonColor:'var(--van-primary)'}).then(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee3(){return regeneratorRuntime.wrap(function _callee3$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:_context3.prev=0;_context3.next=3;return request.post('/api-teacher/videoLessonGroup/updateShelves',{data:{id:_this3.userInfo.lessonId,shelvesFlag:0}});case 3:Toast('下架成功');setTimeout(function(){postMessage({api:'back'});},800);_context3.next=9;break;case 7:_context3.prev=7;_context3.t0=_context3["catch"](0);case 9:case"end":return _context3.stop();}}},_callee3,null,[[0,7]]);})));case 1:case"end":return _context4.stop();}}},_callee4);}))();}},render:function render(){var _this4=this;var _slot,_slot2,_slot3;return createVNode("div",{"class":[styles['video-detail'],'mb12']},[this.userInfo.id&&createVNode(UserDetail,{"userInfo":this.userInfo},null),createVNode(SectionDetail,{"border":true},{default:function _default(){return[createVNode("p",{"class":styles.introduction},[_this4.userInfo.lessonDesc])];}}),this.myself?createVNode(SectionDetail,{"title":"课程列表","icon":"courseList","border":true},_isSlot(_slot=this.detailList.map(function(item){return createVNode(CourseVideoItem,{"class":'mb12',"detail":{id:item.id,title:item.videoTitle,content:item.videoContent,imgUrl:item.coverUrl},"onPlay":_this4.onPlay},null);}))?_slot:{default:function _default(){return[_slot];}}):createVNode(SectionDetail,{"title":"课程列表","icon":"courseList","titleShow":false,"contentStyle":{paddingTop:'0'}},{default:function _default(){return[createVNode(Tabs,{"color":"var(--van-primary)","lineWidth":20,"sticky":true},{default:function _default(){return[createVNode(Tab,{"title":"课程","titleClass":"van-hairline--bottom"},_isSlot(_slot2=_this4.detailList.map(function(item){return createVNode(CourseVideoItem,{"class":'mb12',"detail":{id:item.id,title:item.videoTitle,content:item.videoContent,imgUrl:item.coverUrl},"onPlay":_this4.onPlay},null);}))?_slot2:{default:function _default(){return[_slot2];}}),createVNode(Tab,{"title":"学员列表","titleClass":"van-hairline--bottom"},{default:function _default(){return[_this4.dataShow?createVNode(List,{"loading":_this4.loading,"onUpdate:loading":function onUpdateLoading($event){return _this4.loading=$event;},"finished":_this4.finished,"finishedText":"没有更多了","onLoad":_this4.getList},_isSlot(_slot3=_this4.buyUserList.map(function(item){return createVNode(UserList,{"class":"mb12","users":{avatar:item.avatar,studentId:item.userId,studentName:item.username,createTime:item.createTime}},null);}))?_slot3:{default:function _default(){return[_slot3];}}):createVNode(ColResult,{"btnStatus":false,"classImgSize":"SMALL","tips":"暂无学生购买"},null)];}})];}})];}}),this.shelvesFlag===1&&createVNode(Fragment,null,[this.share=='1'&&this.detailList.length>0&&createVNode(ColSticky,{"position":"bottom"},{default:function _default(){return[createVNode("div",{"class":['btnGroup'],"style":{paddingTop:'12px'}},[createVNode(Button,{"block":true,"round":true,"type":"primary","onClick":function onClick(){_this4.shareStatus=true;}},{default:function _default(){return[createTextVNode("\u5206\u4EAB\u8BFE\u7A0B")];}})])];}}),this.share!='1'&&this.detailList.length>0&&createVNode(ColSticky,{"position":"bottom"},{default:function _default(){return[createVNode("div",{"class":['btnGroup'],"style":{paddingTop:'12px'}},[createVNode(Button,{"block":true,"round":true,"type":"primary","onClick":_this4.updateShelves},{default:function _default(){return[createTextVNode("\u4E0B\u67B6")];}})])];}})]),createVNode(Popup,{"show":this.shareStatus,"onUpdate:show":function onUpdateShow($event){return _this4.shareStatus=$event;},"style":{background:'transparent'}},{default:function _default(){return[createVNode(ColShare,{"teacherId":_this4.userInfo.id,"shareUrl":_this4.shareUrl,"shareType":"video"},{default:function _default(){return[createVNode(LiveItem,{"class":styles.shareCourse,"coverClass":styles.coverClass,"liveInfo":{backgroundPic:_this4.userInfo.lessonCoverUrl,courseGroupId:_this4.userInfo.lessonId,courseGroupName:_this4.userInfo.lessonName,courseNum:_this4.userInfo.lessonNum,coursePrice:_this4.userInfo.lessonPrice,teacherName:_this4.userInfo.username,teacherId:_this4.userInfo.id,avatar:_this4.userInfo.headUrl,studentCount:_this4.userInfo.buyNum,existBuy:0,subjectName:_this4.userInfo.lessonSubjectName}},null)];}})];}})]);}}));}};});})();