index.6b3e269d.js 4.4 KB

1
  1. var F=Object.defineProperty,T=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var g=(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)&&g(o,t,i[t]);if(h)for(var t of h(i))q.call(i,t)&&g(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.aade0215.js";import{s as v,u as E,S as P}from"./index.e3fa5e0b.js";import{p as V}from"./player.8b5ee2bb.js";import{d as S,r as j,S as k,f as H,c as e,a as x,F as y,u as N,o as U}from"./vendor.1514baa4.js";import{c as z,r as A}from"./index.ec43d267.js";import{P as I}from"./index.7f33cffd.js";import{C as B}from"./index.0e15f1fd.js";import{b as L}from"./index.ebe36c35.js";import"./moreArrow.76b537ec.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=S({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=j({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\u5728\u5B66")])])])])}}),be=S({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=E(P.VIDEO).id||t;const s=j({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};