index.cb170df6.js 14 KB

1
  1. import{B as P,T as x}from"./index.e03f08ff.js";import{T as q}from"./index.b591d515.js";import{T as K}from"./index.e6572137.js";import{T as I,G as O,a as T}from"./index.ef83260a.js";import{T as h,r as y}from"./request.a45d1be5.js";import{d as p,R as H,y as F,c as t,U as W,_ as V,b as m,r as E,F as B,a as j,w as X,n as Z,o as $,u as tt}from"./index.3718c0a8.js";import{c as b,m as D,t as M,b as k,n as et,w as U,C as S,L as R,I as G}from"./index.2b675c4f.js";import{T as st,a as Q}from"./index.1c8a9e51.js";import"./index.7077e759.js";import{i as at}from"./icon_teacher.279658ad.js";import"./logo-1.1c5bc018.js";import"./utils.e748d7c8.js";import"./icon-search.f54aed7d.js";import"./vue3-lottie.es.e34f7e89.js";import"./use-tab-status.a6d8936e.js";const[z,nt]=b("row"),J=Symbol(z),lt={tag:D("div"),wrap:M,align:String,gutter:k(0),justify:String};var ot=p({name:z,props:lt,setup(e,{slots:c}){const{children:l,linkChildren:o}=H(J),u=F(()=>{const r=[[]];let i=0;return l.forEach((d,a)=>{i+=Number(d.span),i>24?(r.push([a]),i-=24):r[r.length-1].push(a)}),r}),n=F(()=>{const r=Number(e.gutter),i=[];return r&&u.value.forEach(d=>{const a=r*(d.length-1)/d.length;d.forEach((g,w)=>{if(w===0)i.push({right:a});else{const f=r-i[g-1].right,v=a-f;i.push({left:f,right:v})}})}),i});return o({spaces:n}),()=>{const{tag:r,wrap:i,align:d,justify:a}=e;return t(r,{class:nt({[`align-${d}`]:d,[`justify-${a}`]:a,nowrap:!i})},{default:()=>{var g;return[(g=c.default)==null?void 0:g.call(c)]}})}}});const[it,ct]=b("col"),rt={tag:D("div"),span:k(0),offset:et};var ut=p({name:it,props:rt,setup(e,{slots:c}){const{parent:l,index:o}=W(J),u=F(()=>{if(!l)return;const{spaces:n}=l;if(n&&n.value&&n.value[o.value]){const{left:r,right:i}=n.value[o.value];return{paddingLeft:r?`${r}px`:null,paddingRight:i?`${i}px`:null}}});return()=>{const{tag:n,span:r,offset:i}=e;return t(n,{style:u.value,class:ct({[r]:r,[`offset-${i}`]:i})},{default:()=>{var d;return[(d=c.default)==null?void 0:d.call(c)]}})}}});const _=U(ut),[dt,At]=b("divider"),mt={dashed:Boolean,hairline:M,contentPosition:D("center")};var pt=p({name:dt,props:mt,setup(e,{slots:c}){return()=>{var l;return t("div",{role:"separator",class:At({dashed:e.dashed,hairline:e.hairline,[`content-${e.contentPosition}`]:!!c.default})},[(l=c.default)==null?void 0:l.call(c)])}}});const Y=U(pt),N=U(ot);const gt="_sticky_ivkbm_1",vt="_bgImg_ivkbm_6",ht="_videoDetail_ivkbm_15",ft="_pic_ivkbm_15",wt="_content_ivkbm_20",yt="_wrap_ivkbm_26",Ct="_wrapItem_ivkbm_35",It="_detailInfo_ivkbm_38",Ft="_tags_ivkbm_44",Bt="_tag_ivkbm_44",_t="_col_ivkbm_57",bt="_des_ivkbm_70",Dt="_teacher_ivkbm_77",Ut="_teacherContent_ivkbm_81",St="_name_ivkbm_84",Lt="_num_ivkbm_90",Rt="_classWrap_ivkbm_108",Gt="_classItem_ivkbm_114",Qt="_img_ivkbm_118",xt="_classContent_ivkbm_126",Vt="_classTitle_ivkbm_129",Et="_classDes_ivkbm_135",s={sticky:gt,bgImg:vt,videoDetail:ht,pic:ft,content:wt,wrap:yt,wrapItem:Ct,detailInfo:It,tags:Ft,tag:Bt,col:_t,des:bt,teacher:Dt,teacherContent:Ut,name:St,num:Lt,classWrap:Rt,classItem:Gt,img:Qt,classContent:xt,classTitle:Vt,classDes:Et};const Mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAtZJREFUWEftmD9oU1EUxn8nqRZtKYpVxEGH6iBOoiIKSi4OFifFKSAVy3tVHBzqPxyKUh0EpaNKXlpEizq4CEodJMnkIiIqCIo4SEUU/Au1WNscefnTJE1e89qUNsO748t33vned869ud8R6nxJnfMjIFhrhcoVTMQ2IXIIYSvQ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aqp+f7lnvQTzTONcCkFnz9JsGhqdNTbJunq6RzDPmoLHSOmg416iGWbxqO2hYLnAmFwpzDC1IG6o2VDlOhma9B1JtFyULQOqd9NR0RJ30zm1RJz29FzhzU/3a689xZB431VuKI9zQW25dN1XLBQ4dtU+w6+jvajpqf69UYaCgp+VMp/kdtS0AGorSeaiCV08eZ/lCDFVgQciDdcTPaMGCdVgA1G47D1cTHwjhwtVYEPT1izxgU+MghA/Y5LVpjMlDljUOQLSQZZYL1LMtD9oXHYTGgvZZEPRJkjxsZXgQGg9b6VuK8sCt4QGIJ3Cr5QL138lDFwcHId7QxRYEfScmD95dH4T4g3f7liL1Kc7D188NQvPC1/tA0Hdj8gccZoPQ/AccfCDo+zH5EyYfg5DcEyZVIOSP+EDyj/hULUf5M1YunrGq2pjzh9zqn45q5oglRE3+lGFE6scZIyh/zDMaCLFwgL/p/DnbcEDEDoBPipo/6BwAi6YA4Nug8yfN64DQVAAsN6h68ypgdxqisgSYlJpFY/2r9+hjtV69CFhHoGxNB8DHDWptsR3Y4yo8fgCKaHj5Q8BT1Q8tBCgbKUtiAPiA0DYvsVxxqatg4T5qqa3mCzrbgRf9sf0jUTRkocQBqDoxqUHwZcCVwOYEo7aoff4rwOPAM14k85C0iyW7UwCqwFCzt4uACjAKDMZ4T1H14N+BvwBHALXPfzcWCjZYSWoAqB6HDSi7Fljj+/rsq34aIn2x701jFYidAlQJrt8x4G3f95aIqKw+den/UahIW+v1JyEAAAAASUVORK5CYII=",Nt=""+new URL("single.2d7d7186.jpg",import.meta.url).href;function Pt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!V(e)}const qt=p({name:"videoList",props:{list:{type:Array,default:()=>[]}},emits:["play"],setup(e,{emit:c}){return()=>{let l;return t("div",{class:C.videoList},[t(N,{gutter:10},Pt(l=e.list.map(o=>t(_,{span:12},{default:()=>[t("div",{class:C.item,onClick:()=>c("play",o)},[t(I,{src:Nt},null),t(S,{class:C.playIcon,src:Yt},null)])]})))?l:{default:()=>[l]})])}}}),Kt="_theMusicGrid_1waic_1",Ot="_item_1waic_12",Tt="_title_1waic_19",Ht="_des_1waic_28",Wt="_imgWrap_1waic_35",jt="_model_1waic_39",Xt="_classNum_1waic_53",Zt="_num_1waic_56",$t="_itemContent_1waic_59",A={theMusicGrid:Kt,item:Ot,title:Tt,des:Ht,imgWrap:Wt,model:jt,classNum:Xt,num:Zt,itemContent:$t};function te(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!V(e)}const ee=p({name:"TheVideoGrid",props:{list:{type:Array,default:()=>[]}},emits:["goto"],setup(e,{emit:c}){const l={loading:()=>t(R,{size:20},null),error:()=>t(R,{size:20},null)};return()=>{let o;return t("div",{class:A.theMusicGrid},[t(O,{border:!1,columnNum:1},te(o=e.list.map(u=>t(T,null,{default:()=>[t("div",{class:A.item,onClick:()=>c("goto",u)},[t("div",{class:A.imgWrap},[t(S,{width:"100%",height:"100%",src:u.lessonCoverUrl},l),t("div",{class:A.model},[t("span",{class:A.classNum},[u.lessonCount,m("\u8BFE\u65F6")]),t("div",{class:A.num},[t("span",{class:A.dot},null),u.countStudent,m("\u4EBA\u5728\u5B66")])])]),t("div",{class:A.itemContent},[t("div",{class:A.title},[u.lessonName,m(" "),u.lessonDesc]),t("div",{class:A.des},[t("span",null,[u.username]),t("span",null,[u.lessonSubjectName])])])])]})))?o:{default:()=>[o]})])}}}),se=p({name:"detailInfo",props:{videoList:{type:Array,default:()=>[]},teacher:{type:Object,default:()=>{}},lessonGroup:{type:Object,default:()=>{}}},setup(e){const c=j(),l=E();return()=>{var o,u;return t("div",{class:s.detailInfo},[t("h2",null,[e.lessonGroup.lessonName]),t("div",{class:s.tags},[(u=(o=e.lessonGroup)==null?void 0:o.lessonSubjectName)==null?void 0:u.split(",").map(n=>t("span",{class:s.tag},[n]))]),t(N,{justify:"space-between"},{default:()=>[t(_,{class:s.col,style:{color:"#FF6422"}},{default:()=>[t(G,{name:kt,style:!0,size:16},null),t("span",null,[m("\u5171"),e.lessonGroup.lessonCount,m("\u8BFE\u65F6")])]}),t(_,{class:s.col},{default:()=>[t(G,{name:Mt,size:16},null),t("span",null,[e.lessonGroup.countStudent,m(" \u4EBA\u5728\u5B66")])]})]}),t(h,{title:"\u8BFE\u7A0B\u4ECB\u7ECD",isMore:!1},null),t("div",{class:s.des},[e.lessonGroup.lessonDesc]),t(Y,null,null),t(h,{title:"\u6559\u5B66\u8001\u5E08",isMore:!1},null),t("div",{class:s.teacher},[t(S,{width:68,height:68,fit:"cover",round:!0,src:e.teacher.heardUrl||at},null),t("div",{class:s.teacherContent},[t("div",{class:s.name},[e.teacher.username]),t("div",{class:s.num},[t("span",null,[m("\u7C89\u4E1D\u6570")]),t("span",null,[e.teacher.fansNum])])]),t(P,{round:!0,type:"primary",icon:"plus",onClick:()=>{var n;return(n=l.value)==null?void 0:n.toggle()}},{default:()=>[m("\u5173\u6CE8")]})]),e.teacher.introduction&&t(B,null,[t(h,{title:"\u8001\u5E08\u4ECB\u7ECD",isMore:!1},null),t("div",{class:s.des},[e.teacher.introduction])]),e.teacher.styleVideo&&e.teacher.styleVideo.length?t(B,null,[t(h,{title:"\u8001\u5E08\u98CE\u91C7",isMore:!1},null),t(qt,{list:e.teacher.styleVideo,onPlay:()=>{var n;return(n=l.value)==null?void 0:n.toggle()}},null)]):null,t(h,{title:"\u5176\u4ED6\u8BFE\u7A0B",isMore:!1},null),t(ee,{list:e.videoList,onGoto:n=>c.push({path:"/videoDetail",query:{id:n.teacherId,groupId:n.id}})},null),t(x,{ref:l},null)])}}}),fe=p({name:"videoDetail",setup(){const e=tt();X(e,()=>{history.go(0)});const{groupId:c,id:l}=e.query,o=Z({detailList:[],lessonGroup:{},teacher:{},otherList:[]}),u=async()=>{try{const{data:a}=await y.get(`/api-website/open/videoLessonGroup/selectVideoLesson?groupId=${c}`);o.lessonGroup=a.lessonGroup,o.detailList=a.detailList}catch{}},n=async()=>{try{const{data:a}=await y.get(`/api-website/open/teacher/detail/${l}`);o.teacher=a}catch{}},r=async()=>{try{const{data:a}=await y.post("/api-website/open/videoLessonGroup/otherLesson",{data:{videoLessonGroupId:c}});o.otherList=a}catch{}},i=()=>{u(),n(),r()};$(()=>{i()});const d=E();return()=>{const{lessonGroup:a,otherList:g,teacher:w,detailList:f}=o;return t("div",{class:s.videoDetail},[t("div",{class:s.sticky},[t("img",{class:s.bgImg,src:a.lessonCoverUrl},null),t(K,{theme:"dark"},null)]),t("div",{class:s.pic},[t(I,{src:a.lessonCoverUrl},null)]),t("div",{class:s.content},[t("div",{class:s.wrap},[t(st,{lineHeight:0,background:"#F7F8F7"},{default:()=>[t(Q,{title:"\u4FE1\u606F\u7B80\u4ECB"},{default:()=>[t("div",{class:s.wrapItem},[t(se,{lessonGroup:a,videoList:g,teacher:w},null)])]}),t(Q,{title:"\u8BFE\u7A0B\u5217\u8868"},{default:()=>[t("div",{class:s.classWrap},[f.map(v=>t(B,null,[t("div",{class:s.classItem,onClick:()=>{var L;return(L=d.value)==null?void 0:L.toggle()}},[t("div",{class:s.img},[t(I,{src:v.coverUrl},null)]),t("div",{class:s.classContent},[t("div",{class:[s.classTitle,"van-ellipsis"]},[v.videoTitle]),t("div",{class:[s.classDes,"van-multi-ellipsis--l2"]},[v.videoContent])])]),t(Y,null,null)]))])]})]})])]),t(q,null,null),t(x,{ref:d},null)])}}});export{fe as default};