import{T as u,r as p}from"./request.41580fd8.js";import{T as c}from"./index.ee97a227.js";import{B as f}from"./index.5b3e4165.js";import{d as m,e as g,r as n,n as v,c as a,a as h,J as V}from"./index.ce3b9611.js";import"./_commonjsHelpers.5bb79380.js";import{L as x}from"./index.25e32344.js";import"./index.a63a39cc.js";import"./index.f9919356.js";import"./index.2d008658.js";import"./use-tab-status.742d6f01.js";const T="_indexVideo_z9lik_1",w={indexVideo:T},I=m({name:"indexVideo",setup(){const d=h(),[t,s]=g(!1),i=n(!1),r=v({albumStatus:"PASS",page:1,rows:10}),o=n([]),l=async()=>{if(!t.value){s(!0);try{const e=await p.post("/api-website/open/videoLessonGroup/page",{data:r});e.data&&Array.isArray(e.data.rows)&&(o.value=[].concat(o.value,e.data.rows),e.data.rows.length?r.page=e.data.pageNo+1:i.value=!0)}catch{}V(()=>{s(!1)})}};return()=>a("div",{class:w.indexVideo},[a(f,null,null),a(u,{title:"\u7CBE\u54C1\u89C6\u9891\u8BFE",isMore:!1},null),a(x,{loading:t.value,finished:i.value,finishedText:"\u6CA1\u6709\u66F4\u591A\u4E86",onLoad:()=>l()},{default:()=>[a(c,{list:o.value,onGoto:e=>d.push({path:"/videoDetail",query:{id:e.teacherId,groupId:e.id}})},null)]})])}});export{I as default};
