var S=Object.defineProperty,I=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var h=(o,s,e)=>s in o?S(o,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[s]=e,l=(o,s)=>{for(var e in s||(s={}))y.call(s,e)&&h(o,e,s[e]);if(d)for(var e of d(s))w.call(s,e)&&h(o,e,s[e]);return o},c=(o,s)=>I(o,b(s));import{s as r}from"./index.module.6982ae2c.js";import{h as u}from"./index.f5f8a26b.js";import{s as m}from"./index.b42569d6.js";import{v as f}from"./index.f34fadda.js";import{r as x}from"./index.2553a511.js";import{P as g}from"./index.1ced1a36.js";import{d as L,r as D,u as q,o as C,c as t,F as z}from"./vendor.925c905e.js";import{C as j}from"./index.83a2d91c.js";import"./index.ef6e00b3.js";import"./hot.5fc25a45.js";import"./arrow.15dbd454.js";import"./icon.6e6f91da.js";var N=L({name:"videoDetailList",props:{title:{type:String,default:""}},components:{hotSearch:u,searchInput:m,videoDetailItem:f,pagination:g,ColEmpty:j},setup(o,s){const e=D({title:o.title,videoList:[],searchs:{search:"",lessonSubject:""},pageInfo:{limit:9,page:1,total:0,page_size:[9,20,40,50]},isshowData:!1}),i=q(),n=async()=>{console.log("\u8BF7\u6C42\u63A5\u53E3");try{const a=await x.post("/api-website/open/videoLessonGroup/page",{data:c(l({},e.searchs),{albumStatus:"PASS",page:e.pageInfo.page,rows:e.pageInfo.limit})});e.videoList=a.data.rows,e.pageInfo.total=a.data.total,e.pageInfo.total==0?e.isshowData=!0:e.isshowData=!1}catch(a){console.log(a)}},p=a=>{e.searchs=c(l({},e.searchs),{lessonSubject:a.subject,search:a.search}),n()},v=a=>{e.searchs.search=a,p(e.searchs)};return C(()=>{i.query.search&&(e.searchs.search=i.query.search),i.query.subject&&(e.searchs.lessonSubject=i.query.subject),n()}),()=>t(z,null,[t("div",null,[t("div",{class:"wall",style:{height:"70px"}},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:a=>{p(a)}},null),t("div",{class:r.hotSearchWrap},[t(u,{searchType:"COURSE",onHotTag:a=>{v(a)},type:"",isChiose:!0},null)])]),t("div",{class:r.videoList},[e.videoList.map(a=>t(f,{detail:a},null))]),e.isshowData&&t(j,null,null),t(g,{total:e.pageInfo.total,page:e.pageInfo.page,"onUpdate:page":a=>e.pageInfo.page=a,limit:e.pageInfo.limit,"onUpdate:limit":a=>e.pageInfo.limit=a,pageSizes:e.pageInfo.page_size,pagination:n},null)])])])}});export{N as default};
