import{k as s,j as e,o as a,a as l,w as t,m as o,d as u,F as i,u as c,i as r,g as f,p as n,t as d,q as m,v as p}from"./index.35bb0716.js";import{a as g}from"./api.cd3647ee.js";import{_}from"./plugin-vue_export-helper.21dcd24c.js";var I=_({props:["tagIds"],data:()=>({cffpCourseInfos:[]}),name:"courselist",components:{},onLoad(){this.courseList()},methods:{goDetail(e){s({url:`/pages/courseDetail/courseDetail?fileId=${e.fileId}`})},courseList(){g.courseList().then((s=>{console.log(s),s.success?this.cffpCourseInfos=s.data.data:e({title:s.message,duration:2e3,icon:"none"})}))}},mounted(){this.courseList()}},[["render",function(s,e,g,_,I,h){const L=r,x=p;return a(),l(L,null,{default:t((()=>[I.cffpCourseInfos.length<=0?(a(),o("h4",{key:0,class:"noLists"},"暂无课程列表")):u("",!0),I.cffpCourseInfos.length>0?(a(),o("ul",{key:1},[(a(!0),o(i,null,c(I.cffpCourseInfos,(s=>(a(),o("li",{key:s.fileId,onClick:e=>h.goDetail(s)},[f(L,{class:"thumbnailBox"},{default:t((()=>[n("img",{src:s.displayImage,alt:""},null,8,["src"])])),_:2},1024),f(L,{class:"courseDetailBox"},{default:t((()=>[n("h4",null,d(s.fileTitle),1),f(L,{class:"summaryBox"},{default:t((()=>[f(x,null,{default:t((()=>[m(d(s.fileSynopsis),1)])),_:2},1024)])),_:2},1024),f(L,{class:"dataBox"},{default:t((()=>[n("strong",null,"￥"+d(s.coursePrice),1),f(x,null,{default:t((()=>[m(d(s.salesNumber)+"人购买",1)])),_:2},1024)])),_:2},1024),f(L,{class:"tagListBox"},{default:t((()=>[f(L,{class:"tagItem"},{default:t((()=>[m(d(s.fileLecturerName),1)])),_:2},1024),f(L,{class:"tagItem"},{default:t((()=>[m(d(s.fileLecturerRanks),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)],8,["onClick"])))),128))])):u("",!0)])),_:1})}],["__scopeId","data-v-ff21cfa8"]]);export{I as default};
