index.0418c52a.js 4.4 KB

1
  1. var F=Object.defineProperty,T=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var h=(o,i,t)=>i in o?F(o,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[i]=t,d=(o,i)=>{for(var t in i||(i={}))C.call(i,t)&&h(o,t,i[t]);if(g)for(var t of g(i))E.call(i,t)&&h(o,t,i[t]);return o},m=(o,i)=>T(o,W(i));import{s as c}from"./index.module.c6652fd9.js";import{h as b}from"./scrollbar.min.4057caa3.js";import{s as v,u as q,S as P}from"./index.300b681a.js";import{p as V}from"./player.8b5ee2bb.js";import{d as j,r as S,a0 as k,g as H,c as e,a as x,F as y,u as N,o as U}from"./vendor.63aa8b19.js";import{c as z,r as A}from"./index.6fc5f983.js";import{P as I}from"./index.404471e8.js";import{C as B}from"./index.ba731085.js";import{b as L}from"./index.4cfcb41e.js";import"./moreArrow.9485fe74.js";const O="_isFull_5ul2x_1",R="_itemWrap_5ul2x_1",G="_detaile_5ul2x_7",$="_masker_5ul2x_16",M="_itemBottom_5ul2x_24",J="_detaileWrap_5ul2x_40",K="_showPaly_5ul2x_1",Q="_infoBottom_5ul2x_88",X="_course_5ul2x_95",Y="_infoBottomL_5ul2x_100",Z="_itemHead_5ul2x_105",ee="_itemTitle_5ul2x_112",te="_itemBottomL_5ul2x_130",se="_line_5ul2x_147",ae="_detaileStudy_5ul2x_153",oe="_detaileDot_5ul2x_161";var l={isFull:O,itemWrap:R,detaile:G,masker:$,itemBottom:M,detaileWrap:J,showPaly:K,infoBottom:Q,course:X,infoBottomL:Y,itemHead:Z,itemTitle:ee,itemBottomL:te,line:se,detaileStudy:ae,detaileDot:oe},ie="./assets/detaile.98813a45.png",le="./assets/icon.c76ae863.png",w=j({name:"albumItem",emits:["getDetail"],props:{detail:{type:Object,default:{auditStatus:"",endTime:"",lessonSubject:"",order:"",orderNo:"",page:0,rows:0,search:"",sort:"",startTime:"",userId:0,videoLessonGroupId:0}},isFull:{type:Boolean,default:!1}},setup(o,i){const t=S({detail:o.detail,isFull:o.isFull});k(()=>o.detail,s=>{t.detail=s});const n=H(),p=()=>{t.isFull&&i.emit("getDetail",t.detail.id),n.push({path:"/videoDetail",query:{id:t.detail.id}})};return()=>e(y,null,[e("div",{class:[l.itemWrap,t.isFull?l.isFull:""],onClick:p},[e("div",{class:l.detaileWrap},[e("div",{class:l.masker},[e("img",{src:V,alt:""},null)]),e("img",{src:t.detail.lessonCoverUrl?t.detail.lessonCoverUrl:ie,alt:"",class:l.detaile},null)]),e("div",{class:l.infoBottom},[e("div",{class:l.infoBottomL},[e("img",{src:le,class:l.itemHead,alt:""},null),e("span",{class:l.itemTitle},[t.detail.username])]),e("span",{class:l.course},[t.detail.lessonCount,x("\u8BFE\u65F6")])]),e("div",{class:l.itemBottom},[e("div",{class:l.itemBottomL},[e("span",{class:l.itemTitle},[t.detail.lessonSubjectName])]),e("p",{class:l.detaileStudy},[e("span",{class:l.detaileDot},null),t.detail.countStudent,x("\u4EBA\u5B66\u4E60")])])])])}}),be=j({name:"videoDetailList",props:{title:{type:String,default:""}},components:{banner:L,hotSearch:b,searchInput:v,videoDetailItem:w,pagination:I,ColEmpty:B},setup(o,i){var f;let t=0;const n=((f=z.user.data)==null?void 0:f.subjectId)||"";n&&(t=Number(n.split(",")[0])),t=q(P.VIDEO).id||t;const s=S({title:o.title,videoList:[],searchs:{search:"",lessonSubject:t},pageInfo:{limit:9,page:1,total:0,page_size:[9,18,36,45]},isshowData:!1}),r=N(),u=async()=>{console.log("\u8BF7\u6C42\u63A5\u53E3");try{const a=await A.post("/api-website/open/videoLessonGroup/page",{data:m(d({},s.searchs),{albumStatus:"PASS",page:s.pageInfo.page,rows:s.pageInfo.limit})});s.videoList=a.data.rows,s.pageInfo.total=a.data.total,s.pageInfo.total==0?s.isshowData=!0:s.isshowData=!1}catch(a){console.log(a)}},_=a=>{s.searchs=m(d({},s.searchs),{lessonSubject:a.subject,search:a.search}),u()},D=a=>{s.searchs.search=a,_(s.searchs)};return U(()=>{r.query.search&&(s.searchs.search=r.query.search),r.query.subject&&(s.searchs.lessonSubject=r.query.subject),u()}),()=>e(y,null,[e(L,null,null),e("div",null,[e("div",{class:c.w1200},[e("div",{class:c.section},[e(v,{isWhile:!0,searchVal:s.searchs,type:"video",holder:"\u641C\u4E00\u641C\u4F60\u60F3\u770B\u7684\u89C6\u9891\u8BFE",onStartSearch:a=>{_(a)}},null),e("div",{class:c.hotSearchWrap},[e(b,{searchType:"COURSE",onHotTag:a=>{D(a)},type:"",isChiose:!0},null)])]),e("div",{class:c.videoList},[s.videoList.map(a=>e(w,{detail:a},null))]),s.isshowData&&e(B,null,null),e(I,{total:s.pageInfo.total,page:s.pageInfo.page,"onUpdate:page":a=>s.pageInfo.page=a,limit:s.pageInfo.limit,"onUpdate:limit":a=>s.pageInfo.limit=a,pageSizes:s.pageInfo.page_size,pagination:u},null)])])])}});export{be as default};