1 |
- import{B as P,T as x}from"./index.b406ba8b.js";import{T as q}from"./index.0a1eba8a.js";import{T as K}from"./index.c3d356e5.js";import{T as I,G as O,a as T}from"./index.62d4df56.js";import{T as h,r as y}from"./request.a37dab06.js";import{d as m,Q as H,y as F,c as t,S as W,_ as E,b as p,r as M,a as j,w as X,n as k,o as Z,F as $,u as tt}from"./index.40c79699.js";import{c as _,m as D,t as V,b as z,n as et,w as U,L as G,I as R}from"./_commonjsHelpers.b6651b10.js";import{T as st,a as Q}from"./index.11e9e2d0.js";import"./index.cbd7ab60.js";import{I as S}from"./index.cc210914.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"./use-tab-status.418f3702.js";const[J,nt]=_("row"),Y=Symbol(J),ot={tag:D("div"),wrap:V,align:String,gutter:z(0),justify:String};var lt=m({name:J,props:ot,setup(e,{slots:i}){const{children:o,linkChildren:l}=H(Y),d=F(()=>{const r=[[]];let c=0;return o.forEach((u,a)=>{c+=Number(u.span),c>24?(r.push([a]),c-=24):r[r.length-1].push(a)}),r}),n=F(()=>{const r=Number(e.gutter),c=[];return r&&d.value.forEach(u=>{const a=r*(u.length-1)/u.length;u.forEach((g,w)=>{if(w===0)c.push({right:a});else{const v=r-c[g-1].right,f=a-v;c.push({left:v,right:f})}})}),c});return l({spaces:n}),()=>{const{tag:r,wrap:c,align:u,justify:a}=e;return t(r,{class:nt({[`align-${u}`]:u,[`justify-${a}`]:a,nowrap:!c})},{default:()=>{var g;return[(g=i.default)==null?void 0:g.call(i)]}})}}});const[ct,it]=_("col"),rt={tag:D("div"),span:z(0),offset:et};var dt=m({name:ct,props:rt,setup(e,{slots:i}){const{parent:o,index:l}=W(Y),d=F(()=>{if(!o)return;const{spaces:n}=o;if(n&&n.value&&n.value[l.value]){const{left:r,right:c}=n.value[l.value];return{paddingLeft:r?`${r}px`:null,paddingRight:c?`${c}px`:null}}});return()=>{const{tag:n,span:r,offset:c}=e;return t(n,{style:d.value,class:it({[r]:r,[`offset-${c}`]:c})},{default:()=>{var u;return[(u=i.default)==null?void 0:u.call(i)]}})}}});const B=U(dt),[ut,At]=_("divider"),pt={dashed:Boolean,hairline:V,contentPosition:D("center")};var mt=m({name:ut,props:pt,setup(e,{slots:i}){return()=>{var o;return t("div",{role:"separator",class:At({dashed:e.dashed,hairline:e.hairline,[`content-${e.contentPosition}`]:!!i.default})},[(o=i.default)==null?void 0:o.call(i)])}}});const b=U(mt),N=U(lt);const gt="_sticky_1hfts_1",ft="_bgImg_1hfts_6",ht="_videoDetail_1hfts_15",vt="_pic_1hfts_15",wt="_content_1hfts_20",yt="_wrap_1hfts_26",Ct="_wrapItem_1hfts_35",It="_detailInfo_1hfts_38",Ft="_tags_1hfts_44",Bt="_tag_1hfts_44",_t="_col_1hfts_57",Dt="_des_1hfts_65",Ut="_teacher_1hfts_72",St="_teacherContent_1hfts_76",Lt="_name_1hfts_79",Gt="_num_1hfts_85",Rt="_classWrap_1hfts_103",Qt="_classItem_1hfts_109",xt="_img_1hfts_113",Et="_classContent_1hfts_121",Mt="_classTitle_1hfts_124",Vt="_classDes_1hfts_130",s={sticky:gt,bgImg:ft,videoDetail:ht,pic:vt,content:wt,wrap:yt,wrapItem:Ct,detailInfo:It,tags:Ft,tag:Bt,col:_t,des:Dt,teacher:Ut,teacherContent:St,name:Lt,num:Gt,classWrap:Rt,classItem:Qt,img:xt,classContent:Et,classTitle:Mt,classDes:Vt};const zt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAtZJREFUWEftmD9oU1EUxn8nqRZtKYpVxEGH6iBOoiIKSi4OFifFKSAVy3tVHBzqPxyKUh0EpaNKXlpEizq4CEodJMnkIiIqCIo4SEUU/Au1WNscefnTJE1e89qUNsO748t33vned869ud8R6nxJnfMjIFhrhcoVTMQ2IXIIYSvQgjLhmUT5R4hhkMdo212MGScZX49oN8o+YC1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Junq6RzDPmoLHSOmg416iGWbxqO2hYLnAmFwpzDC1IG6o2VDlOhma9B1JtFyULQOqd9NR0RJ30zm1RJz29FzhzU/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=",Pt=""+new URL("single.2d7d7186.jpg",import.meta.url).href;function qt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!E(e)}const Kt=m({name:"videoList",props:{list:{type:Array,default:()=>[]}},emits:["play"],setup(e,{emit:i}){return()=>{let o;return t("div",{class:C.videoList},[t(N,{gutter:10},qt(o=e.list.map(l=>t(B,{span:12},{default:()=>[t("div",{class:C.item,onClick:()=>i("play",l)},[t(I,{src:Pt},null),t(S,{class:C.playIcon,src:Nt},null)])]})))?o:{default:()=>[o]})])}}}),Ot="_theMusicGrid_1waic_1",Tt="_item_1waic_12",Ht="_title_1waic_19",Wt="_des_1waic_28",jt="_imgWrap_1waic_35",Xt="_model_1waic_39",kt="_classNum_1waic_53",Zt="_num_1waic_56",$t="_itemContent_1waic_59",A={theMusicGrid:Ot,item:Tt,title:Ht,des:Wt,imgWrap:jt,model:Xt,classNum:kt,num:Zt,itemContent:$t};function te(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!E(e)}const ee=m({name:"TheVideoGrid",props:{list:{type:Array,default:()=>[]}},emits:["goto"],setup(e,{emit:i}){const o={loading:()=>t(G,{size:20},null),error:()=>t(G,{size:20},null)};return()=>{let l;return t("div",{class:A.theMusicGrid},[t(O,{border:!1,columnNum:1},te(l=e.list.map(d=>t(T,null,{default:()=>[t("div",{class:A.item,onClick:()=>i("goto",d)},[t("div",{class:A.imgWrap},[t(S,{width:"100%",height:"100%",src:d.lessonCoverUrl},o),t("div",{class:A.model},[t("span",{class:A.classNum},[d.lessonCount,p("\u8BFE\u65F6")]),t("div",{class:A.num},[t("span",{class:A.dot},null),d.countStudent,p("\u4EBA\u5728\u5B66")])])]),t("div",{class:A.itemContent},[t("div",{class:A.title},[d.lessonName,p(" "),d.lessonDesc]),t("div",{class:A.des},[t("span",null,[d.username]),t("span",null,[d.lessonSubjectName])])])])]})))?l:{default:()=>[l]})])}}}),se=m({name:"detailInfo",props:{videoList:{type:Array,default:()=>[]},teacher:{type:Object,default:()=>{}},lessonGroup:{type:Object,default:()=>{}}},setup(e){const i=j(),o=M();return()=>{var l,d;return t("div",{class:s.detailInfo},[t("h2",null,[e.lessonGroup.lessonName]),t("div",{class:s.tags},[(d=(l=e.lessonGroup)==null?void 0:l.lessonSubjectName)==null?void 0:d.split(",").map(n=>t("span",{class:s.tag},[n]))]),t(N,{justify:"space-between"},{default:()=>[t(B,{class:s.col,style:{color:"#FF6422"}},{default:()=>[t(R,{name:Jt,size:16},null),t("span",null,[p("\u5171"),e.lessonGroup.lessonCount,p("\u8BFE\u65F6")])]}),t(B,{class:s.col},{default:()=>[t(R,{name:zt,size:16},null),t("span",null,[e.lessonGroup.countStudent,p(" \u4EBA\u5728\u5B66")])]})]}),t(h,{title:"\u8BFE\u7A0B\u4ECB\u7ECD",isMore:!1},null),t("div",{class:s.des},[e.lessonGroup.lessonDesc]),t(b,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,[p("\u7C89\u4E1D\u6570")]),t("span",null,[e.teacher.fansNum])])]),t(P,{round:!0,type:"primary",icon:"plus",onClick:()=>{var n;return(n=o.value)==null?void 0:n.toggle()}},{default:()=>[p("\u5173\u6CE8")]})]),t(h,{title:"\u8001\u5E08\u4ECB\u7ECD",isMore:!1},null),t("div",{class:s.des},[e.teacher.introduction]),t(h,{title:"\u8001\u5E08\u98CE\u91C7",isMore:!1},null),t(Kt,{list:e.teacher.styleVideo,onPlay:()=>{var n;return(n=o.value)==null?void 0:n.toggle()}},null),t(h,{title:"\u5176\u4ED6\u8BFE\u7A0B",isMore:!1},null),t(ee,{list:e.videoList,onGoto:n=>i.push({path:"/videoDetail",query:{id:n.teacherId,groupId:n.id}})},null),t(x,{ref:o},null)])}}}),ve=m({name:"videoDetail",setup(){const e=tt();X(e,()=>{history.go(0)});const{groupId:i,id:o}=e.query,l=k({detailList:[],lessonGroup:{},teacher:{},otherList:[]}),d=async()=>{try{const{data:a}=await y.get(`/api-website/open/videoLessonGroup/selectVideoLesson?groupId=${i}`);l.lessonGroup=a.lessonGroup,l.detailList=a.detailList}catch{}},n=async()=>{try{const{data:a}=await y.get(`api-website/open/teacher/detail/${o}`);l.teacher=a}catch{}},r=async()=>{try{const{data:a}=await y.post("/api-website/open/videoLessonGroup/otherLesson",{data:{videoLessonGroupId:i}});l.otherList=a}catch{}},c=()=>{d(),n(),r()};Z(()=>{c()});const u=M();return()=>{const{lessonGroup:a,otherList:g,teacher:w,detailList:v}=l;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},[v.map(f=>t($,null,[t("div",{class:s.classItem,onClick:()=>{var L;return(L=u.value)==null?void 0:L.toggle()}},[t("div",{class:s.img},[t(I,{src:f.coverUrl},null)]),t("div",{class:s.classContent},[t("div",{class:[s.classTitle,"van-ellipsis"]},[f.videoTitle]),t("div",{class:[s.classDes,"van-multi-ellipsis--l2"]},[f.videoContent])])]),t(b,null,null)]))])]})]})])]),t(q,null,null),t(x,{ref:u},null)])}}});export{ve as default};
|