index-legacy.32454f4d.js 5.2 KB

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