index.a177d001.js 3.8 KB

1
  1. import{d as n,j as A,A as t,N as o}from"./ResizeObserver.es.39b48a47.js";import{C as l}from"./index.db115763.js";import{I as s}from"./index.fcbcb027.js";import{T as a}from"./index.34ac729a.js";import{b as u}from"./bars.4f1962a6.js";import{i as r}from"./icon_album_active.cb923735.js";import{i as d}from"./icon_music_active.f55820b3.js";const m="_videoSection_1nu4r_1",c="_videoImg_1nu4r_4",v="_videoStop_1nu4r_16",p="_videoTitle_1nu4r_26",I="_videoTitleText_1nu4r_34",f="_active_1nu4r_40",_="_videoTitleContent_1nu4r_43",b="_living_1nu4r_48",g="_animation_1nu4r_64",C="_CourseVideoItem_1nu4r_68",T="_infoVideo_1nu4r_71",V="_song_1nu4r_98",S="_albumInfo_1nu4r_102",y="_musicInfo_1nu4r_106";var e={videoSection:m,videoImg:c,videoStop:v,videoTitle:p,videoTitleText:I,active:f,videoTitleContent:_,living:b,animation:g,CourseVideoItem:C,infoVideo:T,song:V,albumInfo:S,musicInfo:y},B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA2CAMAAAC/bkrSAAAAAXNSR0IArs4c6QAAAYlQTFRFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQUFDg4OEBAQGRkZHR0dHx8fJSUlKSkpLCwsOzs7Pj4+QEBAVFRUVVVVXl5ea2trbW1teXl5e3t7fX19f39/gYGBkJCQk5OTpKSkp6enp6ensLCwsLCwtra2tra2w8PDxsbGxsbGzs7Oz8/P0NDQ0tLS0tLS09PT29vb29vb4uLi5eXl5ubm5ubm7Ozs7e3t7e3t8PDw8PDw8PDw8fHx8/Pz9vb29/f3+vr6+vr6/f39/f39/v7+/////v7+////////J7wfagAAAIJ0Uk5TAAECAwQFBwgJDQ8VFxkaGyAhIiQqKy4vMDIzNDU3ODk7PT4/QUJDREdJTU5RUlNUVVZXWFpbXV5fYGFkZWZnaGlqa21ucHJydHV1ent8g4SHjI2Sk5OVlp6eqaqrsbK1tr/AwcfIysrNzdPU297e3+bm5+nq6+zu8vL3+Pv8/f3+/h4twksAAAIJSURBVBgZrcEHV9pQAAbQT4SIgKIiigMX7lUVZ7CQzy67996tHa97T631/fI6EPNeEojn9F64qYknu/uGhvq6k/Ea+BLrmbZYYk33xFBBsHWWDrOtQXgLpEy6MlMBeKjP0lO2Hm6qOi2WYXVWwSE0ygpGQ9CEp1jRVBgKY4Y+zBiwqR6nL+PVOJChTxmUJOhbAkWGSd9MA3syVKw+WLt3gl4y2BWxaLf6WUr57Ro9WBHs6Kfivtyx9ewM3fVjWzhPxQu55+dtusqHAbRQJeS+1+fppgXAJFVClvy+u0KnScCwqBLS5t1FOlgGmqgR0m790XHqmtBFjZCqT1eo6cIINUJq/j49RcUIstQI6fDlLO2yWKJGSKfntFvCUWqEdPpKu2UUqBHS6Q3tCshRI6TDnxu0y2GBGiF1369TsYAj1Aip2nxykqpJDFIjpOLjZeoG0UaNkDbrD4/RoQ111Ah54O0FuqhDYJkqIff9urNCF8sBYJiql7Lo1Tm6GgbQQNVjuevHLXpoABBYpOLShpRya+00PSwGsC1F1c0PG++v0lMKO0ImD8EMYVczD6EZRRP0bQL7Ijn6lIugJEGfErDpoC8dUPTSh15o0qwoDYdknmXlk3ARnWMZc1G4Cqbz9JBPB+ElMlCgi8JABOXUpuepmU/XoqJY+5jJInOsPQa/jGi8sTEeNfD//AORQWsF93/GiwAAAABJRU5ErkJggg==",h=n({name:"CourseVideoItem",props:{detail:{type:Object,required:!0},musicAlbumInfos:{type:Array,default:()=>[]},border:{type:Boolean,default:!1},onPlay:{type:Function,default:()=>{}},onMusicAlbumDetail:{type:Function,default:()=>{}},playId:{type:Number,default:0}},render(){return A("div",{class:e.CourseVideoItem},[A(l,{class:e.videoSection,border:this.border,onClick:()=>this.onPlay(this.detail)},{icon:()=>A("div",{class:e.videoImg},[A(s,{src:this.detail.imgUrl,fit:"cover"},null),this.detail.id===this.playId?A("div",{class:e.living},[A(s,{src:u,class:e.animation},null),A("span",null,[t("\u64AD\u653E\u4E2D")])]):A(o,{class:e.videoStop,name:B,size:26},null)]),title:()=>A("div",{class:[e.videoTitle,"videoSmall"]},[A("p",{class:[e.videoTitleText,"van-ellipsis",this.detail.id===this.playId&&e.active]},[this.detail.title]),A("p",{class:[e.videoTitleContent,"van-multi-ellipsis--l2"]},[this.detail.content])])}),this.musicAlbumInfos.map(i=>A("div",{class:[e.infoVideo,i.relationMusicAlbum==="ALBUM"?e.albumInfo:e.musicInfo],onClick:()=>this.onMusicAlbumDetail(i)},[A("div",null,[A("img",{src:i.relationMusicAlbum==="ALBUM"?r:d},null),i.relationMusicAlbum==="ALBUM"?A("span",null,[t("\u4E13\u8F91\uFF1A"),i.musicAlbumName]):A("span",null,[t("\u66F2\u76EE\uFF1A"),i.musicAlbumName])]),A("div",null,[i.useRelationType==="GIFT"&&A(a,{type:"primary",class:e.song},{default:()=>[t("\u8D60\u9001")]}),A(o,{name:"arrow"},null)])]))])}});export{h as C};