index.7cf8121e.js 3.0 KB

1
  1. import{E as o,a as e,C as n}from"./index.11ea10cd.js";import{P as r}from"./index.30eaa118.js";import{d as i,b as u,c as t,F as p,l as d,a as m,av as g,aw as l}from"./index.f06d32fc.js";import{I as h}from"./index.4575c1ae.js";import"./index2.b94ac0d9.js";import"./index2.d2718ad2.js";import"./icon_teacher.584214d2.js";const f="_liveClass_kwizm_1";var c={liveClass:f},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 u.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},200)}},render(){return t(p,null,[t("div",{class:"flex flex-wrap px-10"},[t(o,{loading:this.loading,animated:!0,class:"flex",count:3},{default:()=>[this.list.map(a=>t("div",{class:"w-1/3 pt-8"},[t(h,{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(r,{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(n,null,null)])}}),L=i({name:"live-class",data(){return{activeName:"ING"}},methods:{getList(){}},render(){return t("div",{class:[c.liveClass,"relative"]},[t(d,{round:!0,type:"primary",class:"absolute right-11 top-4"},{default:()=>[m("\u65B0\u5EFA\u76F4\u64AD\u8BFE")]}),t(g,{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{L as default};