1 |
- import{d as m,c as e,q as a}from"./index.1c621181.js";const i="_content_ag9h2_1",_="_wrap_ag9h2_4",l="_icon_ag9h2_19",v="_item_ag9h2_41",u="_cover_ag9h2_46",d="_model_ag9h2_53",g="_coverNum_ag9h2_72",p="_coverImg_ag9h2_89",N="_name_ag9h2_118";var o={content:i,wrap:_,icon:l,item:v,cover:u,model:d,coverNum:g,coverImg:p,name:N},I=m({name:"CourseItem",props:{list:{type:Array,default:()=>[]},term:{type:String,defaut:0}},emits:["itemClick"],setup(s,{emit:r}){const n={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D"};return()=>e("div",{class:o.content},[e("div",{class:o.wrap},[e("div",{class:o.icon},[e("div",null,[a("\u7B2C"),n[s.term],a("\u5B66\u671F")])]),s.list.map((c,h)=>e("div",{class:o.item,onClick:()=>r("itemClick",c)},[e("div",{class:o.cover},[e("div",{class:o.coverImg},[e("img",{src:c.coverImg,onLoad:t=>{t.target&&(t.target.style.opacity=1)}},null)]),e("div",{class:o.coverNum},[c.courseNumName?c.courseNumName:`\u5171${c.courseNum}\u8BFE`])]),e("div",{class:[o.name,"van-ellipsis"]},[c.name])]))])])}});export{I as C};
|