| 1 |
- import{P as n,C as o}from"./index.29a17ea4.js";import{r}from"./index.b0469f01.js";import{I as u}from"./index.a5d8b1f9.js";import{d as i,c as t,F as p,a4 as d,a5 as e,f as m,a as g,q as h,t as l}from"./vendor.e6623967.js";import"./icon_teacher.c6352c6e.js";const c="_liveClass_kwizm_1";var f={liveClass:c},s=i({name:"list",props:{groupStatus:{type:String,default:""}},data(){return{pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},list:[],loading:!1,dataShow:!1}},mounted(){this.getList()},methods:{async getList(){this.loading=!0;try{const{data:a}=await r.post("/api-website/courseGroup/queryPageCourseGroup",{data:{groupStatus:this.groupStatus,page:this.pageInfo.page,rows:this.pageInfo.limit}});this.list=a.rows||[],this.pageInfo.total=a.total,a.total<=0&&(this.dataShow=!0)}catch{}this.dataShow?this.loading=!1:setTimeout(()=>{this.loading=!1},500)}},render(){return t(p,null,[t("div",{class:"flex flex-wrap px-10"},[t(d,{loading:this.loading,animated:!0,class:"flex",count:3},{default:()=>[this.list.map(a=>t("div",{class:"w-1/3 pt-8"},[t(u,{class:"cursor-pointer",item:a},null)]))],template:()=>t("div",{class:"w-1/3"},[t("div",{class:"flex flex-col pt-8 w-[262px] m-auto"},[t(e,{variant:"image",style:{width:"100%",height:"175px"}},null),t("div",{class:"mx-2.5 py-3.5 border-b border-b-[#F2F2F2]"},[t("div",{class:"text-lg leading-none font-medium whitespace-nowrap overflow-hidden text-ellipsis"},[t(e,{variant:"h3"},null)]),t("div",{class:"text-sm text-[#999] pt-2.5"},[t(e,{variant:"p",style:{width:"50%"}},null)])]),t("div",{class:"mx-2.5 py-4 flex items-center"},[t(e,{variant:"circle",style:{width:"22px",height:"22px",marginRight:"5px"}},null),t(e,{variant:"p",style:{width:"20%"}},null),t("p",{style:{width:"45%"}},null),t(e,{variant:"p",style:{width:"20%"}},null)])])])})]),t(n,{total:this.pageInfo.total,page:this.pageInfo.page,"onUpdate:page":a=>this.pageInfo.page=a,limit:this.pageInfo.limit,pageSizes:this.pageInfo.page_size,pagination:this.getList},null),this.dataShow&&t(o,null,null)])}}),S=i({name:"live-class",data(){return{activeName:"ING"}},methods:{getList(){}},render(){return t("div",{class:[f.liveClass,"relative"]},[t(m,{round:!0,type:"primary",class:"absolute right-11 top-4"},{default:()=>[g("\u65B0\u5EFA\u76F4\u64AD\u8BFE")]}),t(h,{modelValue:this.activeName,"onUpdate:modelValue":a=>this.activeName=a},{default:()=>[t(l,{label:"\u8FDB\u884C\u4E2D",name:"ING"},{default:()=>[this.activeName==="ING"&&t(s,{groupStatus:"ING"},null)]}),t(l,{label:"\u672A\u4E0A\u67B6",name:"NOT_SALE"},{default:()=>[this.activeName==="NOT_SALE"&&t(s,{groupStatus:"NOT_SALE"},null)]}),t(l,{label:"\u9500\u552E\u4E2D",name:"APPLY"},{default:()=>[this.activeName==="APPLY"&&t(s,{groupStatus:"APPLY"},null)]}),t(l,{label:"\u5DF2\u5B8C\u6210",name:"COMPLETE"},{default:()=>[this.activeName==="COMPLETE"&&t(s,{groupStatus:"COMPLETE"},null)]}),t(l,{label:"\u5DF2\u53D6\u6D88",name:"CANCEL"},{default:()=>[this.activeName==="CANCEL"&&t(s,{groupStatus:"CANCEL"},null)]})]})])}});export{S as default};
|