index-legacy.7515f421.js 11 KB

123456789101112
  1. <<<<<<<< HEAD:dist/assets/index-legacy.d41802da.js
  2. ;(function(){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}var __vite_style__=document.createElement('style');__vite_style__.innerHTML="._liveClass_1u6h7_1 .el-tabs__item{font-size:18px;font-weight:600;color:#999;height:56px;line-height:56px;padding-right:40px;padding-left:0}._liveClass_1u6h7_1 .el-tabs__item.is-active{font-size:20px;color:#000}._liveClass_1u6h7_1 .el-tabs__nav-wrap:after{height:1px;background:#eeeeee}._liveClass_1u6h7_1 .el-tabs__active-bar{height:4px}._items_1u6h7_21:first-child{display:flex;justify-content:flex-start}._items_1u6h7_21:first-child>div{margin:0}._items_1u6h7_21:nth-child(3n + 3){display:flex;justify-content:flex-end}._items_1u6h7_21:nth-child(3n + 3)>div{margin:0}\n";document.head.appendChild(__vite_style__);System.register(['./index-legacy.29a20a1f.js','./index-legacy.5669f9d5.js','./index-legacy.f72247b6.js','./index-legacy.4b5cfdd5.js','./vendor-legacy.b19481d4.js'],function(exports){'use strict';var state,request,ColEmpty,Pagination,Item,defineComponent,ElMessageBox,ElMessage,createVNode,Fragment,ElSkeleton,ElSkeletonItem,ElButton,createTextVNode,ElTabs,ElTabPane;return{setters:[function(module){state=module.c;request=module.r;},function(module){ColEmpty=module.C;},function(module){Pagination=module.P;},function(module){Item=module.I;},function(module){defineComponent=module.d;ElMessageBox=module.j;ElMessage=module.E;createVNode=module.c;Fragment=module.F;ElSkeleton=module.aj;ElSkeletonItem=module.ak;ElButton=module.k;createTextVNode=module.a;ElTabs=module.C;ElTabPane=module.D;}],execute:function execute(){var liveClass="_liveClass_1u6h7_1";var items="_items_1u6h7_21";var styles={liveClass:liveClass,items:items};var List=defineComponent({name:'list',props:{auditStatus:{type:String,default:''}},data:function data(){return{pageInfo:{// 分页规则
  3. ========
  4. ;(function(){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}var __vite_style__=document.createElement('style');__vite_style__.innerHTML="._liveClass_1u6h7_1 .el-tabs__item{font-size:18px;font-weight:600;color:#999;height:56px;line-height:56px;padding-right:40px;padding-left:0}._liveClass_1u6h7_1 .el-tabs__item.is-active{font-size:20px;color:#000}._liveClass_1u6h7_1 .el-tabs__nav-wrap:after{height:1px;background:#eeeeee}._liveClass_1u6h7_1 .el-tabs__active-bar{height:4px}._items_1u6h7_21:first-child{display:flex;justify-content:flex-start}._items_1u6h7_21:first-child>div{margin:0}._items_1u6h7_21:nth-child(3n + 3){display:flex;justify-content:flex-end}._items_1u6h7_21:nth-child(3n + 3)>div{margin:0}\n";document.head.appendChild(__vite_style__);System.register(['./index-legacy.0dcd49ba.js','./index-legacy.bc7f6149.js','./index-legacy.dbd3066b.js','./index-legacy.ed5e1689.js','./vendor-legacy.9ba3db9d.js'],function(exports){'use strict';var state,request,ColEmpty,Pagination,Item,defineComponent,ElMessageBox,ElMessage,createVNode,Fragment,ElSkeleton,ElSkeletonItem,ElButton,createTextVNode,ElTabs,ElTabPane;return{setters:[function(module){state=module.c;request=module.r;},function(module){ColEmpty=module.C;},function(module){Pagination=module.P;},function(module){Item=module.I;},function(module){defineComponent=module.d;ElMessageBox=module.j;ElMessage=module.E;createVNode=module.c;Fragment=module.F;ElSkeleton=module.al;ElSkeletonItem=module.am;ElButton=module.k;createTextVNode=module.a;ElTabs=module.C;ElTabPane=module.D;}],execute:function execute(){var liveClass="_liveClass_1u6h7_1";var items="_items_1u6h7_21";var styles={liveClass:liveClass,items:items};var List=defineComponent({name:'list',props:{auditStatus:{type:String,default:''}},data:function data(){return{pageInfo:{// 分页规则
  5. >>>>>>>> online:dist/assets/index-legacy.7515f421.js
  6. limit:9,// 限制显示条数
  7. page:1,// 当前页
  8. total:0,// 总条数
  9. page_size:[10,20,40,50]// 选择限制显示条数
  10. },list:[],loading:true,dataShow:false// 是否有数据
  11. };},mounted:function mounted(){var _state$user$data;if((_state$user$data=state.user.data)!==null&&_state$user$data!==void 0&&_state$user$data.entryFlag){this.getList();}},methods:{getList:function getList(){var _this=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var _state$user$data2,_yield$request$post,data;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_this.loading=true;_context.prev=1;_context.next=4;return request.post('/api-website/videoLessonGroup/page',{data:{auditStatus:_this.auditStatus,page:_this.pageInfo.page,rows:_this.pageInfo.limit,teacherId:(_state$user$data2=state.user.data)===null||_state$user$data2===void 0?void 0:_state$user$data2.userId}});case 4:_yield$request$post=_context.sent;data=_yield$request$post.data;_this.list=data.rows||[];_this.pageInfo.total=data.total;if(data.total<=0){_this.dataShow=true;}_context.next=13;break;case 11:_context.prev=11;_context.t0=_context["catch"](1);case 13:if(_this.dataShow){_this.loading=false;}else{setTimeout(function(){_this.loading=false;},200);}case 14:case"end":return _context.stop();}}},_callee,null,[[1,11]]);}))();},onDetail:function onDetail(item){if(this.auditStatus==='UNPASS'){// this.$message.error('该课程正在审核中,请等待审核结果')
  12. this.$router.push({path:'/userInfo/videoOperation',query:{type:'edit',groupId:item.id}});return;}},onOffCourse:function onOffCourse(item){var _this2=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee3(){return regeneratorRuntime.wrap(function _callee3$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:ElMessageBox.confirm("\u786E\u8BA4\u4E0B\u67B6\u8BE5\u8BFE\u7A0B\u5417?",'提示',{confirmButtonText:'确认',cancelButtonText:'取消',type:'warning'}).then(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee2(){return regeneratorRuntime.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:_context2.prev=0;_context2.next=3;return request.post('/api-website/videoLessonGroup/updateShelves',{data:{id:item.id,shelvesFlag:0}});case 3:ElMessage.success('下架成功');_this2.pageInfo.page=1;_this2.getList();_context2.next=10;break;case 8:_context2.prev=8;_context2.t0=_context2["catch"](0);case 10:case"end":return _context2.stop();}}},_callee2,null,[[0,8]]);})));case 1:case"end":return _context3.stop();}}},_callee3);}))();}},render:function render(){var _state$user$data3,_this3=this;return createVNode(Fragment,null,[(_state$user$data3=state.user.data)!==null&&_state$user$data3!==void 0&&_state$user$data3.entryFlag?createVNode(Fragment,null,[createVNode("div",{"class":"flex flex-wrap"},[createVNode(ElSkeleton,{"loading":this.loading,"animated":true,"class":"flex justify-between","count":3},{default:function _default(){return[_this3.list.map(function(item){return createVNode("div",{"class":['w-1/3 pt-8',styles.items],"onClick":function onClick(){return _this3.onDetail(item);}},[createVNode(Item,{"item":{type:'video',status:_this3.auditStatus,id:item.id,backgroundPic:item.lessonCoverUrl,courseGroupName:item.lessonName,studentCount:item.countStudent,avatar:item.avatar,teacherName:item.username,coursePrice:item.lessonPrice,courseNum:item.lessonCount,shelvesFlag:item.shelvesFlag},"onOffCourse":function onOffCourse(item){_this3.onOffCourse(item);}},null)]);})];},template:function template(){return createVNode("div",{"class":"w-[218px]"},[createVNode("div",{"class":"flex flex-col pt-8 w-[218px] rounded-[10px] overflow-hidden m-auto"},[createVNode(ElSkeletonItem,{"variant":"image","style":{width:'100%',height:'122px'}},null),createVNode("div",{"class":"text-base px-2.5 pt-2 text-[#666666] leading-none font-semibold whitespace-nowrap overflow-hidden text-ellipsis"},[createVNode(ElSkeletonItem,{"variant":"h3"},null)]),createVNode("div",{"class":"mx-2.5 pt-1.5 pb-2 flex items-center justify-between"},[createVNode(ElSkeletonItem,{"variant":"p","style":{width:'20%'}},null),createVNode("p",{"style":{width:'60%'}},null),createVNode(ElSkeletonItem,{"variant":"p","style":{width:'20%'}},null)])])]);}})]),createVNode(Pagination,{"total":this.pageInfo.total,"page":this.pageInfo.page,"onUpdate:page":function onUpdatePage($event){return _this3.pageInfo.page=$event;},"limit":this.pageInfo.limit,"onUpdate:limit":function onUpdateLimit($event){return _this3.pageInfo.limit=$event;},"pageSizes":this.pageInfo.page_size,"pagination":this.getList},null),this.dataShow&&createVNode(ColEmpty,null,null)]):createVNode(ColEmpty,{"type":"teacherCert","message":"您还未完成达人认证,认证后才可创建视频课哦~","buttonVisibility":true,"buttonText":"去认证","onDetail":function onDetail(){_this3.$router.push('/teacherAuth');}},null)]);}});var index=exports('default',defineComponent({name:'video-class',data:function data(){var videoActiveName=sessionStorage.getItem('videoActiveName');sessionStorage.removeItem('videoActiveName');return{activeName:videoActiveName||'PASS'};},render:function render(){var _this4=this;return createVNode("div",{"class":[styles.liveClass,'relative px-[25px]']},[createVNode(ElButton,{"round":true,"type":"primary","class":"absolute right-11 top-3 z-10","onClick":function onClick(){var _state$user$data4;if((_state$user$data4=state.user.data)!==null&&_state$user$data4!==void 0&&_state$user$data4.entryFlag){_this4.$router.push('/userInfo/videoOperation');}else{ElMessage.error('您还未完成达人认证,认证后才可创建视频课');return;}}},{default:function _default(){return[createTextVNode("\u65B0\u5EFA\u8BFE\u7A0B")];}}),createVNode(ElTabs,{"modelValue":this.activeName,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.activeName=$event;}},{default:function _default(){return[createVNode(ElTabPane,{"label":"已上架","name":"PASS"},{default:function _default(){return[_this4.activeName==='PASS'&&createVNode(List,{"auditStatus":"PASS"},null)];}}),createVNode(ElTabPane,{"label":"审核中","name":"DOING"},{default:function _default(){return[_this4.activeName==='DOING'&&createVNode(List,{"auditStatus":"DOING"},null)];}}),createVNode(ElTabPane,{"label":"审核失败","name":"UNPASS"},{default:function _default(){return[_this4.activeName==='UNPASS'&&createVNode(List,{"auditStatus":"UNPASS"},null)];}}),createVNode(ElTabPane,{"label":"已下架","name":"OUT_SALE"},{default:function _default(){return[_this4.activeName==='OUT_SALE'&&createVNode(List,{"auditStatus":"OUT_SALE"},null)];}})];}})]);}}));}};});})();