import{s as r}from"./index.module.c446644f.js";import{h as u}from"./scrollbar.min.88239d43.js";import{s as m}from"./index.fe35ea43.js";import{p as B}from"./player.ee188b71.js";import{d as g,r as v,w as x,u as L,c as t,a as d,F as S,e as w,o as I,b}from"./index.2bf82915.js";import{P as p}from"./index.7d07a41f.js";import{C as _}from"./index.222e7b2f.js";import{b as h}from"./index.4c3cdc50.js";import"./moreArrow.ca552872.js";import"./index2.ec9f8409.js";import"./index2.1af0183f.js";const D="_isFull_5ul2x_1",F="_itemWrap_5ul2x_1",T="_detaile_5ul2x_7",W="_masker_5ul2x_16",j="_itemBottom_5ul2x_24",C="_detaileWrap_5ul2x_40",U="_showPaly_5ul2x_1",q="_infoBottom_5ul2x_88",P="_course_5ul2x_95",k="_infoBottomL_5ul2x_100",H="_itemHead_5ul2x_105",R="_itemTitle_5ul2x_112",V="_itemBottomL_5ul2x_130",E="_line_5ul2x_147",N="_detaileStudy_5ul2x_153",z="_detaileDot_5ul2x_161",a={isFull:D,itemWrap:F,detaile:T,masker:W,itemBottom:j,detaileWrap:C,showPaly:U,infoBottom:q,course:P,infoBottomL:k,itemHead:H,itemTitle:R,itemBottomL:V,line:E,detaileStudy:N,detaileDot:z},A=""+new URL("detaile.98813a45.png",import.meta.url).href,G=""+new URL("icon.c76ae863.png",import.meta.url).href,f=g({name:"albumItem",emits:["getDetail"],props:{detail:{type:Object,default:{auditStatus:"",endTime:"",lessonSubject:"",order:"",orderNo:"",page:0,rows:0,search:"",sort:"",startTime:"",userId:0,videoLessonGroupId:0}},isFull:{type:Boolean,default:!1}},setup(i,c){const e=v({detail:i.detail,isFull:i.isFull});x(()=>i.detail,n=>{e.detail=n});const o=L(),l=()=>{e.isFull&&c.emit("getDetail",e.detail.id),o.push({path:"/videoDetail",query:{id:e.detail.id}})};return()=>t(S,null,[t("div",{class:[a.itemWrap,e.isFull?a.isFull:""],onClick:l},[t("div",{class:a.detaileWrap},[t("div",{class:a.masker},[t("img",{src:B,alt:""},null)]),t("img",{src:e.detail.lessonCoverUrl?e.detail.lessonCoverUrl:A,alt:"",class:a.detaile},null)]),t("div",{class:a.infoBottom},[t("div",{class:a.infoBottomL},[t("img",{src:G,class:a.itemHead,alt:""},null),t("span",{class:a.itemTitle},[e.detail.username])]),t("span",{class:a.course},[e.detail.lessonCount,d("\u8BFE\u65F6")])]),t("div",{class:a.itemBottom},[t("div",{class:a.itemBottomL},[t("span",{class:a.itemTitle},[e.detail.lessonSubjectName])]),t("p",{class:a.detaileStudy},[t("span",{class:a.detaileDot},null),e.detail.countStudent,d("\u4EBA\u5728\u5B66")])])])])}}),se=g({name:"videoDetailList",props:{title:{type:String,default:""}},components:{banner:h,hotSearch:u,searchInput:m,videoDetailItem:f,pagination:p,ColEmpty:_},setup(i,c){const e=v({title:i.title,videoList:[],searchs:{search:"",lessonSubject:""},pageInfo:{limit:9,page:1,total:0,page_size:[9,18,36,45]},isshowData:!1}),o=w(),l=async()=>{console.log("\u8BF7\u6C42\u63A5\u53E3");try{const s=await b.post("/api-website/open/videoLessonGroup/page",{data:{...e.searchs,albumStatus:"PASS",page:e.pageInfo.page,rows:e.pageInfo.limit}});e.videoList=s.data.rows,e.pageInfo.total=s.data.total,e.pageInfo.total==0?e.isshowData=!0:e.isshowData=!1}catch(s){console.log(s)}},n=s=>{e.searchs={...e.searchs,lessonSubject:s.subject,search:s.search},l()},y=s=>{e.searchs.search=s,n(e.searchs)};return I(()=>{o.query.search&&(e.searchs.search=o.query.search),o.query.subject&&(e.searchs.lessonSubject=o.query.subject),l()}),()=>t(S,null,[t(h,null,null),t("div",null,[t("div",{class:r.w1200},[t("div",{class:r.section},[t(m,{isWhile:!0,searchVal:e.searchs,holder:"\u641C\u4E00\u641C\u4F60\u60F3\u770B\u7684\u89C6\u9891\u8BFE",onStartSearch:s=>{n(s)}},null),t("div",{class:r.hotSearchWrap},[t(u,{searchType:"COURSE",onHotTag:s=>{y(s)},type:"",isChiose:!0},null)])]),t("div",{class:r.videoList},[e.videoList.map(s=>t(f,{detail:s},null))]),e.isshowData&&t(_,null,null),t(p,{total:e.pageInfo.total,page:e.pageInfo.page,"onUpdate:page":s=>e.pageInfo.page=s,limit:e.pageInfo.limit,"onUpdate:limit":s=>e.pageInfo.limit=s,pageSizes:e.pageInfo.page_size,pagination:l},null)])])])}});export{se as default};
