|
-var p=(_,l,e)=>new Promise((i,n)=>{var a=s=>{try{t(e.next(s))}catch(c){n(c)}},u=s=>{try{t(e.throw(s))}catch(c){n(c)}},t=s=>s.done?i(s.value):Promise.resolve(s.value).then(a,u);t((e=e.apply(_,l)).next())});import{B as b}from"./index-B_yfJhWm.js";import{b as g}from"./bottom-Vb-0DLDr.js";import{d as v,a as x,m as B,k,o as m,c as d,f,e as o,F as h,s as y,t as r,_ as L}from"./index-B44dBTj2.js";import{l as I}from"./kecheng-Bt4lzOTi.js";import"./code-BL6zcpLW.js";import"./request-DlYpkY1d.js";const w={class:"videobox"},C={class:"box"},E=["onClick"],$=["src"],F={class:"minbox"},G={class:"bottom"},J={class:"title"},N={class:"small"},P=v({__name:"index",setup(_){const l=x();B(()=>p(this,null,function*(){try{const{data:a}=yield I({});i.list=a.data}catch(a){}}));const i=k({banneImageList:[{imgUrl:"https://img1.baidu.com/it/u=1964831979,2551193402&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=357",isBtn:!0,btnText:"点我,了解详情"},{imgUrl:"https://img1.baidu.com/it/u=3821883389,2247186365&fm=253&fmt=auto&app=138&f=JPEG?w=798&h=500",isBtn:!1}],list:[]}),n=a=>{l.push({name:"course",query:{id:a}})};return(a,u)=>(m(),d(h,null,[f(b,{banneImageList:i.banneImageList},null,8,["banneImageList"]),o("div",w,[o("div",C,[(m(!0),d(h,null,y(i.list,(t,s)=>(m(),d("div",{onClick:c=>n(t.id),class:"item",key:s},[o("img",{class:"image",src:t.image,alt:""},null,8,$),o("div",F,r(t.duration_num),1),o("div",G,[o("div",J,r(t.title),1),o("div",N,[o("div",null,"共"+r(t.video_num)+"节课",1),o("div",null,r(t.study_num)+"人学习",1)])])],8,E))),128))])]),f(g)],64))}}),T=L(P,[["__scopeId","data-v-b449904e"]]);export{T as default};
|
|
|