index-legacy.1c84dfc0.js 5.3 KB

1
  1. !function(){function e(e,t,a,n,i,l,u){try{var s=e[l](u),o=s.value}catch(r){return void a(r)}s.done?t(o):Promise.resolve(o).then(n,i)}var t=document.createElement("style");t.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(t),System.register(["./index-legacy.508ebce0.js","./index-legacy.230f240a.js","./index-legacy.11d27a41.js","./index-legacy.76857cd7.js","./index2-legacy.44e7e3da.js","./index2-legacy.38115259.js","./index2-legacy.f2f80c5a.js"],(function(t){"use strict";var a,n,i,l,u,s,o,r,d,c,f,p,h,v,g;return{setters:[function(e){a=e.d,n=e.aM,i=e.b,l=e.c,u=e.F,s=e.aZ,o=e.bi,r=e.a,d=e.aO,c=e.aP},function(e){f=e.C},function(e){p=e.P},function(e){h=e.I},function(e){v=e.E,g=e.a},function(){},function(){}],execute:function(){var m="_liveClass_1u6h7_1",_="_items_1u6h7_21",x=a({name:"list",props:{auditStatus:{type:String,default:""}},data:function(){return{pageInfo:{limit:9,page:1,total:0,page_size:[10,20,40,50]},list:[],loading:!0,dataShow:!1}},mounted:function(){var e;null!==(e=n.user.data)&&void 0!==e&&e.entryFlag&&this.getList()},methods:{getList:function(){var t,a=this;return(t=regeneratorRuntime.mark((function e(){var t,l,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.loading=!0,e.prev=1,e.next=4,i.post("/api-website/videoLessonGroup/page",{data:{auditStatus:a.auditStatus,page:a.pageInfo.page,rows:a.pageInfo.limit,teacherId:null===(t=n.user.data)||void 0===t?void 0:t.userId}});case 4:l=e.sent,u=l.data,a.list=u.rows||[],a.pageInfo.total=u.total,u.total<=0&&(a.dataShow=!0),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(1);case 13:a.dataShow?a.loading=!1:setTimeout((function(){a.loading=!1}),200);case 14:case"end":return e.stop()}}),e,null,[[1,11]])})),function(){var a=this,n=arguments;return new Promise((function(i,l){var u=t.apply(a,n);function s(t){e(u,i,l,s,o,"next",t)}function o(t){e(u,i,l,s,o,"throw",t)}s(void 0)}))})()},onDetail:function(e){"UNPASS"!==this.auditStatus||this.$router.push({path:"/userInfo/videoOperation",query:{type:"edit",groupId:e.id}})}},render:function(){var e,t=this;return l(u,null,[null!==(e=n.user.data)&&void 0!==e&&e.entryFlag?l(u,null,[l("div",{class:"flex flex-wrap"},[l(v,{loading:this.loading,animated:!0,class:"flex justify-between",count:3},{default:function(){return[t.list.map((function(e){return l("div",{class:["w-1/3 pt-8",_],onClick:function(){return t.onDetail(e)}},[l(h,{item:{type:"video",id:e.id,backgroundPic:e.lessonCoverUrl,courseGroupName:e.lessonName,studentCount:e.countStudent,avatar:e.avatar,teacherName:e.username,coursePrice:e.lessonPrice,courseNum:e.lessonCount,shelvesFlag:e.shelvesFlag}},null)])}))]},template:function(){return l("div",{class:"w-[218px]"},[l("div",{class:"flex flex-col pt-8 w-[218px] rounded-[10px] overflow-hidden m-auto"},[l(g,{variant:"image",style:{width:"100%",height:"122px"}},null),l("div",{class:"text-base px-2.5 pt-2 text-[#666666] leading-none font-semibold whitespace-nowrap overflow-hidden text-ellipsis"},[l(g,{variant:"h3"},null)]),l("div",{class:"mx-2.5 pt-1.5 pb-2 flex items-center justify-between"},[l(g,{variant:"p",style:{width:"20%"}},null),l("p",{style:{width:"60%"}},null),l(g,{variant:"p",style:{width:"20%"}},null)])])])}})]),l(p,{total:this.pageInfo.total,page:this.pageInfo.page,"onUpdate:page":function(e){return t.pageInfo.page=e},limit:this.pageInfo.limit,"onUpdate:limit":function(e){return t.pageInfo.limit=e},pageSizes:this.pageInfo.page_size,pagination:this.getList},null),this.dataShow&&l(f,null,null)]):l(f,{type:"teacherCert",message:"您还未完成达人认证,认证后才可创建视频课哦~",buttonVisibility:!0,buttonText:"去认证",onDetail:function(){t.$router.push("/teacherAuth")}},null)])}});t("default",a({name:"video-class",data:function(){var e=sessionStorage.getItem("videoActiveName");return sessionStorage.removeItem("videoActiveName"),{activeName:e||"PASS"}},render:function(){var e=this;return l("div",{class:[m,"relative px-[25px]"]},[l(s,{round:!0,type:"primary",class:"absolute right-11 top-3 z-10",onClick:function(){var t;null!==(t=n.user.data)&&void 0!==t&&t.entryFlag?e.$router.push("/userInfo/videoOperation"):o.error("您还未完成达人认证,认证后才可创建视频课")}},{default:function(){return[r("新建课程")]}}),l(d,{modelValue:this.activeName,"onUpdate:modelValue":function(t){return e.activeName=t}},{default:function(){return[l(c,{label:"已上架",name:"PASS"},{default:function(){return["PASS"===e.activeName&&l(x,{auditStatus:"PASS"},null)]}}),l(c,{label:"审核中",name:"DOING"},{default:function(){return["DOING"===e.activeName&&l(x,{auditStatus:"DOING"},null)]}}),l(c,{label:"审核失败",name:"UNPASS"},{default:function(){return["UNPASS"===e.activeName&&l(x,{auditStatus:"UNPASS"},null)]}}),l(c,{label:"已下架",name:"OUT_SALE"},{default:function(){return["OUT_SALE"===e.activeName&&l(x,{auditStatus:"OUT_SALE"},null)]}})]}})])}}))}}}))}();