1 |
- !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function t(t){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?e(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n,a,i,r,l){try{var u=e[r](l),o=u.value}catch(s){return void n(s)}u.done?t(o):Promise.resolve(o).then(a,i)}var i=document.createElement("style");i.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(i),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(e){"use strict";var n,i,r,l,u,o,s,c,d,p,f,g,v,h,m;return{setters:[function(e){n=e.d,i=e.b,r=e.aM,l=e.c,u=e.F,o=e.aZ,s=e.bi,c=e.a,d=e.aO,p=e.aP},function(e){f=e.C},function(e){g=e.P},function(e){v=e.I},function(e){h=e.E,m=e.a},function(){},function(){}],execute:function(){var b="_liveClass_1u6h7_1",y="_items_1u6h7_21",_=n({name:"list",props:{groupStatus:{type:String,default:""}},data:function(){return{pageInfo:{limit:9,page:1,total:0,page_size:[9,18,36,45]},list:[],loading:!1,dataShow:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e,t=this;return(e=regeneratorRuntime.mark((function e(){var n,a,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,i.post("/api-website/courseGroup/queryPageCourseGroup",{data:{groupStatus:t.groupStatus,page:t.pageInfo.page,rows:t.pageInfo.limit,teacherId:null===(n=r.user.data)||void 0===n?void 0:n.userId}});case 4:a=e.sent,l=a.data,t.list=l.rows||[],t.pageInfo.total=l.total,l.total<=0&&(t.dataShow=!0),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(1);case 13:t.dataShow?t.loading=!1:setTimeout((function(){t.loading=!1}),200);case 14:case"end":return e.stop()}}),e,null,[[1,11]])})),function(){var t=this,n=arguments;return new Promise((function(i,r){var l=e.apply(t,n);function u(e){a(l,i,r,u,o,"next",e)}function o(e){a(l,i,r,u,o,"throw",e)}u(void 0)}))})()}},render:function(){var e,n,a,i,o=this;return l(u,null,[null!==(e=r.user.data)&&void 0!==e&&e.entryFlag&&null!==(n=r.user.data)&&void 0!==n&&n.liveFlag?l(u,null,[l("div",{class:"flex flex-wrap"},[l(h,{loading:this.loading,animated:!0,class:"flex justify-between",count:3},{default:function(){return[o.list.map((function(e){return l("div",{class:["w-1/3 pt-8",y]},[l(v,{item:t(t({},e),{},{type:"live"})},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(m,{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(m,{variant:"h3"},null)]),l("div",{class:"mx-2.5 pt-1.5 pb-2 flex items-center justify-between"},[l(m,{variant:"p",style:{width:"20%"}},null),l("p",{style:{width:"60%"}},null),l(m,{variant:"p",style:{width:"20%"}},null)])])])}})]),l(g,{total:this.pageInfo.total,page:this.pageInfo.page,"onUpdate:page":function(e){return o.pageInfo.page=e},limit:this.pageInfo.limit,"onUpdate:limit":function(e){return o.pageInfo.limit=e},pageSizes:this.pageInfo.page_size,pagination:this.getList},null),this.dataShow&&l(f,null,null)]):null!==(a=r.user.data)&&void 0!==a&&a.entryFlag?!(null!==(i=r.user.data)&&void 0!==i&&i.liveFlag)&&l(f,{type:"live",message:"您尚未开通直播服务,开通后即可创建直播课程~",buttonVisibility:!0,buttonText:"立即开通",onDetail:function(){o.$router.push("/userInfo/openLive")}},null):l(f,{type:"teacherCert",message:"您还未完成达人认证,认证后才可创建直播课哦~",buttonVisibility:!0,buttonText:"去认证",onDetail:function(){o.$router.push("/teacherAuth")}},null)])}});e("default",n({name:"live-class",data:function(){return{activeName:"ING"}},render:function(){var e=this;return l("div",{class:[b,"relative px-[25px]"]},[l(o,{round:!0,type:"primary",class:"absolute right-11 top-3 z-10",onClick:function(){var t,n;if(null!==(t=r.user.data)&&void 0!==t&&t.entryFlag&&null!==(n=r.user.data)&&void 0!==n&&n.liveFlag)e.$router.push({path:"/userInfo/liveOperation",query:{type:"create"}});else{var a,i;if(null===(a=r.user.data)||void 0===a||!a.entryFlag)return void s.error("您还未完成达人认证,认证后才可创建直播课");if(null===(i=r.user.data)||void 0===i||!i.liveFlag)return void s.error("您尚未开通直播服务,开通后即可创建直播课程")}}},{default:function(){return[c("新建课程")]}}),l(d,{modelValue:this.activeName,"onUpdate:modelValue":function(t){return e.activeName=t}},{default:function(){return[l(p,{label:"进行中",name:"ING"},{default:function(){return["ING"===e.activeName&&l(_,{groupStatus:"ING"},null)]}}),l(p,{label:"未上架",name:"NOT_SALE"},{default:function(){return["NOT_SALE"===e.activeName&&l(_,{groupStatus:"NOT_SALE"},null)]}}),l(p,{label:"销售中",name:"APPLY"},{default:function(){return["APPLY"===e.activeName&&l(_,{groupStatus:"APPLY"},null)]}}),l(p,{label:"已完成",name:"COMPLETE"},{default:function(){return["COMPLETE"===e.activeName&&l(_,{groupStatus:"COMPLETE"},null)]}}),l(p,{label:"已取消",name:"CANCEL"},{default:function(){return["CANCEL"===e.activeName&&l(_,{groupStatus:"CANCEL"},null)]}})]}})])}}))}}}))}();
|