index.d28dd30e.js 1.3 KB

1
  1. import{T as p,r as u}from"./request.5a75edf6.js";import{T as m}from"./index.08f7a400.js";import{B as c}from"./index.27458b42.js";import{T as f}from"./index.b5508b7d.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.641e320a.js";import"./index.ab3fe1a3.js";import{L as V}from"./index.020f5339.js";import"./icon-title.a92d08bc.js";import"./_commonjsHelpers.c10bf6cb.js";import"./index.f1217f31.js";import"./index.8f23e61e.js";import"./index.0ddc9cec.js";import"./logo-1.1c5bc018.js";import"./index.2ba670b7.js";import"./use-tab-status.d5a54b07.js";const w="_indexVideo_z9lik_1",y={indexVideo:w},F=g({name:"indexVideo",setup(){const l=T(),[a,i]=v(!1),r=n(!1),s=h({albumStatus:"PASS",page:1,rows:10}),t=n([]),d=async()=>{if(!a.value){i(!0);try{const e=await u.post("/api-website/open/videoLessonGroup/page",{data:s});e.data&&Array.isArray(e.data.rows)&&(t.value=[].concat(t.value,e.data.rows),e.data.rows.length?s.page=e.data.pageNo+1:r.value=!0)}catch{}x(()=>{i(!1)})}};return()=>o("div",{class:y.indexVideo},[o(c,null,null),o(p,{title:"\u7CBE\u54C1\u89C6\u9891\u8BFE",isMore:!1},null),o(V,{loading:a.value,finished:r.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{F as default};