1 |
- import{T as u,r as p}from"./request.9370298e.js";import{T as m}from"./index.d2ab9f87.js";import{B as c}from"./index.77d42cdc.js";import{T as f}from"./index.9f46f6f4.js";import{d as g,X as v,r as n,k as h,c as o,W as T,E as x}from"./index.6538c8de.js";import"./index.3c94109c.js";import{L as V}from"./index.96191a82.js";import"./_commonjsHelpers.c10bf6cb.js";import"./index.a4e27540.js";import"./index.8ceee769.js";import"./index.6996203d.js";import"./logo-1.1c5bc018.js";import"./use-tab-status.2a1ec1f7.js";const w="_indexVideo_z9lik_1",y={indexVideo:w},D=g({name:"indexVideo",setup(){const l=T(),[a,i]=v(!1),s=n(!1),r=h({albumStatus:"PASS",page:1,rows:10}),t=n([]),d=async()=>{if(!a.value){i(!0);try{const e=await p.post("/api-website/open/videoLessonGroup/page",{data:r});e.data&&Array.isArray(e.data.rows)&&(t.value=[].concat(t.value,e.data.rows),e.data.rows.length?r.page=e.data.pageNo+1:s.value=!0)}catch{}x(()=>{i(!1)})}};return()=>o("div",{class:y.indexVideo},[o(c,null,null),o(u,{title:"\u7CBE\u54C1\u89C6\u9891\u8BFE",isMore:!1},null),o(V,{loading:a.value,finished:s.value,finishedText:"\u6CA1\u6709\u66F4\u591A\u4E86",onLoad:()=>d()},{default:()=>[o(m,{list:t.value,onGoto:e=>l.push({path:"/videoDetail",query:{id:e.teacherId,groupId:e.id}})},null)]}),o(f,null,null)])}});export{D as default};
|