index.7c87773b.js 1.2 KB

1
  1. import{T as u,r as p}from"./request.a37dab06.js";import{T as c}from"./index.2a62eeee.js";import{B as f}from"./index.fae99573.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.40c79699.js";import"./_commonjsHelpers.b6651b10.js";import{L as x}from"./index.166c7dbc.js";import"./index.62d4df56.js";import"./index.cc210914.js";import"./index.cbd7ab60.js";import"./use-tab-status.418f3702.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};