<<<<<<<< HEAD:dist/assets/videoDetail-legacy.c120cc78.js ;(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;i>>>>>>> online:dist/assets/videoDetail-legacy.07b001fc.js limit:5,// 限制显示条数 page:1,// 当前页 total:0,// 总条数 page_size:[5,20,40,50]// 选择限制显示条数 },userType:'',showVideoDetail:false,activeItem:null,styleList:[],iconList:[]});var route=useRoute();var getVideoList=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var res;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return request.post('/api-website/open/videoLessonGroup/info/page',{data:{auditStatus:'PASS',videoLessonGroupId:state.id,page:state.pageInfo.page,rows:state.pageInfo.limit}});case 3:res=_context.sent;state.videoList=res.data.rows;state.pageInfo.total=res.data.total;_context.next=11;break;case 8:_context.prev=8;_context.t0=_context["catch"](0);console.log(_context.t0);case 11:case"end":return _context.stop();}}},_callee,null,[[0,8]]);}));return function getVideoList(){return _ref.apply(this,arguments);};}();var getVideoDetail=/*#__PURE__*/function(){var _ref2=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee2(){var res,teacherRes;return regeneratorRuntime.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:_context2.prev=0;_context2.next=3;return request.get('/api-website/open/videoLessonGroup/selectVideoLesson',{params:{groupId:state.id}});case 3:res=_context2.sent;state.videoDetail=_objectSpread({},res.data.lessonGroup);// state.styleList = {...res.data.detailList} _context2.next=7;return request.get("/api-website/open/teacher/detail/".concat(res.data.lessonGroup.teacherId));case 7:teacherRes=_context2.sent;state.teacherDetail=_objectSpread({},teacherRes.data);setUser();_context2.next=14;break;case 12:_context2.prev=12;_context2.t0=_context2["catch"](0);case 14:case"end":return _context2.stop();}}},_callee2,null,[[0,12]]);}));return function getVideoDetail(){return _ref2.apply(this,arguments);};}();var getOther=/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee3(){var res;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-website/open/videoLessonGroup/otherLesson',{data:{videoLessonGroupId:state.id}});case 3:res=_context3.sent;state.otherVideoList=res.data;_context3.next=10;break;case 7:_context3.prev=7;_context3.t0=_context3["catch"](0);console.log(_context3.t0);case 10:case"end":return _context3.stop();}}},_callee3,null,[[0,7]]);}));return function getOther(){return _ref3.apply(this,arguments);};}();var getDetail=function getDetail(val){state.id=val;nextTick(function(){_init();});};var setUser=function setUser(){state.iconList=[];if(state.teacherDetail.tag.indexOf('STYLE')!=-1){state.iconList.push(styleIcon);}else{state.iconList.push(nostyleIcon);}if(state.teacherDetail.tag.indexOf('VIDEO')!=-1){state.iconList.push(videoIcon);}else{state.iconList.push(noVideoIcon);}if(state.teacherDetail.tag.indexOf('LIVE')!=-1){state.iconList.push(onlineIcon);}else{state.iconList.push(noOnlineIcon);}if(state.teacherDetail.tag.indexOf('MUSIC')!=-1){state.iconList.push(ablumIcon);}else{state.iconList.push(noAblumIcon);}};var _init=function _init(){getVideoList();setTimeout(function(){getVideoDetail();},100);setTimeout(function(){getOther();},150);};var followVideo=/*#__PURE__*/function(){var _ref4=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee4(){var res;return regeneratorRuntime.wrap(function _callee4$(_context4){while(1){switch(_context4.prev=_context4.next){case 0:_context4.prev=0;_context4.next=3;return request.get('/api-website/student/starOrUnStar',{params:{userId:state.teacherDetail.userId,starStatus:state.teacherDetail.isStar?0:1}});case 3:res=_context4.sent;_init();// state.otherVideoList = res.data _context4.next=10;break;case 7:_context4.prev=7;_context4.t0=_context4["catch"](0);console.log(_context4.t0);case 10:case"end":return _context4.stop();}}},_callee4,null,[[0,7]]);}));return function followVideo(){return _ref4.apply(this,arguments);};}();var openVideo=function openVideo(item){state.activeItem=item;state.showVideoDetail=true;};onMounted(function(){if(route.query.id){state.id=route.query.id;}state.userType=getUserType();_init();});return function(){return createVNode(Fragment,null,[createVNode("div",{"class":styles.allWrap},[createVNode("div",{"class":"wall","style":{height:'60px'}},null),createVNode("div",{"class":[styles.w1200,styles.detailWrap]},[createVNode("div",{"class":styles.detailLeft},[createVNode("img",{"src":state.videoDetail.lessonCoverUrl?state.videoDetail.lessonCoverUrl:detaile,"class":styles.detailTopImg,"alt":""},null),createVNode("div",{"class":styles.courseDetailWrap},[createVNode("p",{"class":styles.courseDetailTitle},[createVNode("span",{"class":styles.courseDetailText},[state.videoDetail.lessonName]),' ',createVNode("div",{"class":styles.courseTitleR},[createVNode("img",{"src":bookIcon,"alt":""},null),createVNode("span",null,[state.videoDetail.countStudent,createTextVNode("\u4EBA\u5728\u5B66")])])])]),createVNode("div",{"class":styles.tag},[state.videoDetail.lessonSubjectName]),createVNode("div",{"class":styles.courseWrap},[createVNode("div",{"class":styles.courseTitle},[createVNode("span",null,[createTextVNode("\u8BFE\u7A0B\u4ECB\u7ECD")]),createVNode("img",{"src":courseIcon,"alt":""},null)]),createVNode("div",{"class":styles.courseInfo},[createVNode("p",null,[state.videoDetail.lessonDesc])]),createVNode("div",{"class":styles.courseListWrap},[createVNode("div",{"class":styles.courseTitle},[createVNode("div",{"class":styles.courseTitleLeft},[createVNode("span",null,[createTextVNode("\u8BFE\u7A0B\u5217\u8868")]),createVNode("img",{"src":courseIcon,"alt":""},null)]),createVNode("p",{"class":styles.courseTitlTimer},[createVNode("img",{"src":tree,"alt":""},null),createVNode("span",null,[createTextVNode(" \u5171"),state.videoDetail.lessonCount,createTextVNode("\u8BFE\u65F6")])])]),state.videoList.map(function(item){return createVNode(videoCourseItem,{"item":item},null);})])]),createVNode(Pagination,{"total":state.pageInfo.total,"page":state.pageInfo.page,"onUpdate:page":function onUpdatePage($event){return state.pageInfo.page=$event;},"limit":state.pageInfo.limit,"onUpdate:limit":function onUpdateLimit($event){return state.pageInfo.limit=$event;},"pageSizes":state.pageInfo.page_size,"pagination":getVideoList},null)]),createVNode("div",{"class":styles.detailRight},[createVNode("div",{"class":styles.teacherInfo},[createVNode("div",{"class":styles.teacherTopInfo},[createVNode("div",{"class":styles.teacherHeadWrap},[createVNode("div",{"class":styles.teacherHeadLeft},[createVNode("img",{"src":state.videoDetail.avatar?state.videoDetail.avatar:iconTeacher,"alt":"","class":styles.teacherHeader},null),createVNode("div",{"class":styles.teacherHeadInfo},[createVNode("div",{"class":styles.teacherHeadName},[createVNode("span",null,[state.videoDetail.username]),state.userType=='STUDENT'?createVNode("div",{"class":[styles.teacherHeadRight,state.teacherDetail.isStar?styles.isStart:''],"onClick":function onClick(){return followVideo();}},[state.teacherDetail.isStar?'已关注':'+ 关注']):createVNode("div",{"class":styles.iconWrapList},[createVNode("img",{"src":state.teacherDetail.isVip?vipIcon:noVipIcon,"class":styles.vipIcon,"alt":""},null),state.iconList.map(function(item){return createVNode("img",{"class":styles.teacherDetailIcon,"src":item,"alt":""},null);})])])])])]),createVNode("div",null,[createVNode("p",{"class":styles.fensNum},[state.teacherDetail.fansNum]),createVNode("p",{"class":styles.fens},[createTextVNode("\u7C89\u4E1D\u6570")])])]),state.teacherDetail.introduction?createVNode("div",{"class":styles.titleWrap},[createVNode("span",null,[createTextVNode("\u4E2A\u4EBA\u4ECB\u7ECD")])]):null,createVNode("p",{"class":styles.teacherDetail},[state.teacherDetail.introduction]),state.teacherDetail.styleVideo&&state.teacherDetail.styleVideo.length>0?createVNode("div",{"class":styles.titleWrap},[createVNode("span",null,[createTextVNode("\u8001\u5E08\u98CE\u91C7")])]):null,createVNode("div",{"class":styles.teacherVideoList},[state.teacherDetail.styleVideo&&state.teacherDetail.styleVideo.map(function(item){return createVNode("div",{"class":styles.videoItem,"onClick":function onClick(){return openVideo(item);}},[createVNode("img",{"class":styles.videoItemVideo,"src":item.cover?item.cover:styleBG,"alt":""},null),createVNode("img",{"src":player$2,"alt":"","class":styles.player},null)]);})])]),state.otherVideoList.length>0&&createVNode("div",{"class":styles.otherCourse},[createVNode("h2",null,[createTextVNode("\u5176\u4ED6\u8BFE\u7A0B")]),createVNode("div",null,[state.otherVideoList.map(function(item){return createVNode(videoDetailItem,{"detail":item,"isFull":true,"onGetDetail":function onGetDetail(val){getDetail(val);}},null);})])])])]),createVNode(ElDialog,{"title":"个人风采","modelValue":state.showVideoDetail,"onUpdate:modelValue":function onUpdateModelValue(val){return state.showVideoDetail=val;},"closeOnClickModal":true,"closeOnPressEscape":false},{default:function _default(){return[createVNode(showVideoDetail,{"item":state.activeItem,"onClose":function onClose(){return state.showVideoDetail=false;}},null)];}})])]);};}}));}};});})();