index-2970316c.js 14 KB

1
  1. import{d as a,f as s,u as o,g as t,r as e,c as i,o as n,l,h as r,j as d,k as c,a as u,O as A,m as p,n as g,F as w,B as m,b as h,p as C,P as q,i as x,e as v,s as U,q as k,t as K,v as I}from"./index-a899b725.js";import{O as L}from"./index-838dc626.js";import{O as f}from"./index-1101828b.js";import{C as y}from"./index-f29c725f.js";import{C as E}from"./index-8aac80e4.js";import"./index-12988be1.js";const b="_baseBtn_q0xbs_121",M="_look_q0xbs_138",B=a({name:"courseList",setup(){const a=s(),B=o(),D=t(),N=e({titleOpacity:0,catchStatus:!1,catchItem:{},loading:!0,detail:{id:"",cover:"",name:"",des:"",useStatus:""},list:[],isDownloading:!1}),F=i((()=>"LOCK"===N.detail.useStatus&&"STUDENT"===U.platformType)),Q=(a=[])=>{const s=[];return a.forEach((a=>{a.materialList&&a.materialList.length>0&&s.push(...a.materialList||[]),a.children&&a.children.length>0&&s.push(...Q(a.children||[]))})),s};n((()=>{(async()=>{const s=await v.get("".concat(U.platformApi,"/lessonCourseware/getLessonCoursewareDetail/").concat(a.query.id));(null==s?void 0:s.data)&&(N.detail.id=s.data.id,N.detail.cover=s.data.coverImg,N.detail.name=s.data.name,N.detail.des=s.data.lessonTargetDesc,N.detail.useStatus=s.data.useStatus)})(),(async()=>{N.loading=!0;try{const s=await v.get(U.platformApi+"/lessonCourseware/getLessonCoursewareCourseList/"+a.query.id);if(Array.isArray(null==s?void 0:s.data)){N.list=s.data,s.data.forEach((a=>{const{knowledgePointList:s}=a;(s||[]).forEach((a=>{a.materialList=[...a.materialList||[],...Q(a.children||[])],a.children=null}))}));const a=await Y(s.data);N.list=D.isApp?s.data.map((s=>{const o=a.find((a=>a.lessonCoursewareDetailId==s.lessonCoursewareDetailId)),t={...s};return o&&(t.hasCache=o.hasCache),t})):s.data}}catch(s){}N.loading=!1})(),l("downloadCoursewareToCache",R)})),r((()=>{d("downloadCoursewareToCache",R)}));const W=a=>{N.catchStatus=!1,t().isApp?K({api:"openWebView",content:{url:"".concat(location.origin).concat(location.pathname,"#/coursewarePlay?id=").concat(a.coursewareDetailId,"&source=my-course"),orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0,showLoadingAnim:!0}}):B.push({path:"/coursewarePlay",query:{id:a.coursewareDetailId,source:"my-course"}})},Y=a=>t().isApp?new Promise((s=>{K({api:"checkCoursewareCache",content:{data:a}},(a=>{var o;if(!(null==(o=null==a?void 0:a.content)?void 0:o.data))return[];s(a.content.data)}))})):Promise.resolve(a),G=async a=>!D.isApp||(N.catchStatus=!1,N.isDownloading=!0,await K({api:"downloadCoursewareToCache",content:{data:a}})),R=a=>{var s;if(N.isDownloading&&(null==(s=null==a?void 0:a.content)?void 0:s.lessonCoursewareDetailId)){const{lessonCoursewareDetailId:s,downloadStatus:o,progress:t}=a.content,e=N.list.find((a=>a.lessonCoursewareDetailId==s));e&&(e.downloadStatus=o,e.progress=t,2==o&&(e.hasCache=1,e.progress=100,N.isDownloading=!1))}};return c("scroll",(()=>{const a=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;N.titleOpacity=a>100?1:a/100})),()=>{let s;return u("div",{"class":"_courseList_q0xbs_1"},[u(A,{border:!1,background:"rgba(255,255,255, ".concat(N.titleOpacity,")"),title:"教材详情"},null),u("div",{"class":"_periodContent_q0xbs_8"},[u("div",{"class":"_cover_q0xbs_12"},[u("img",{src:N.detail.cover,onLoad:a=>{a.target&&(a.target.style.opacity=1)}},null)]),u("div",null,[u("div",{"class":"_contentTitle_q0xbs_50"},[N.detail.name]),u("div",{"class":"_contentLabel_q0xbs_57"},[p("教学目标:"),N.detail.des])])]),u(g,{name:"van-fade"},{"default":()=>{return[!N.loading&&u(w,null,[u("div",{key:"periodTitle","class":"_periodTitle_q0xbs_63"},[u("img",{"class":"_pIcon_q0xbs_68",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAapJREFUWEftl7FKA0EQhv9NhAjhBHvLQBoj3L2DnaV2NhYWajqfwNo6PoGVptXCRxDcPVy1utIuTTAgEZSRExNi9Mxs5u488NJm5ua7b2d3bxQK/lMF50MJKF2h0uD/MdhsNr1avX4Yv/EzUScypufy9o1Go7boedsgWnHJ+xar1ONwMDiNougl/m/cgy3fvwKw/pnQQ6VyYG9uzrnFWr4fx25y42fEda0xW9OArwCqU4ndBWDfMGy2guAJRF4qgEoNrNZL04CU8HCWzTwMJgGOuH+1mUcPzgKMQXukVPtO67NUlpLxkMlNwgEc26wS7YZh2GfUEIXMCwgodWG13hBVZyTPDwj0rTHLjBqikPkBiTo2DNui6oxkZ0AChgo4ssYcA3hj1BCFOAEScE3Azr0xD6KqDsksQI61PzsHudbyuEmGAGoj+xxrkyuV+V286vsnCtiLi3KtfQHM+msm/vRaC4KPg/dW60vXHZp5DzpsrFxDy6FJqrs0WBqUGpDmj3swtXNMTJQ8F6c510oxf5iL05xrpXgJc3GxDRa+B6WrklV+eZNIzRbe4DtiDOop5126YAAAAABJRU5ErkJggg=="},null),u("div",{"class":"_pTitle_q0xbs_73"},[p("课程列表")]),u("div",{"class":"_pNum_q0xbs_79"},[p("共"),N.list.length,p("课")])]),u("div",{key:"list","class":"_periodList_q0xbs_84"},[u(y,{inset:!0},(o=s=N.list.map((s=>u(E,{border:!0,center:!0,title:s.coursewareDetailName,onClick:()=>(async s=>{if(s.knowledgePointList){if(!F.value)return s.hasCache?void W(s):1==s.downloadStatus?(K({api:"cancelDownloadCourseware"}),setTimeout((()=>{K({api:"cancelDownloadCourseware"}),s.downloadStatus=0,N.isDownloading=!1}),1e3),void I({message:"取消中...",forbidClick:!1,loadingType:"spinner",duration:1e3})):3==s.downloadStatus?void G(s):(N.catchStatus=!0,void(N.catchItem=s));C(a.query.id,"COURSE")}else k({message:"该课件暂无知识点"})})(s)},{icon:()=>u("div",{"class":"_periodItem_q0xbs_151"},[u("div",{"class":"_periodItemModel_q0xbs_174"},[u("img",{src:F.value?"data:image/png;base64,iVBORw0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HAHmGiYCKGD86h64uBQoSTeCt05lkoJJlxPhcQ8wDQ3z801yJq5A1B9PRVqxZpfMtb/NcYdnKc+cpUGYc0hvsKeTKqagbkWiVAhreaE+M3LYZwHnCYq1KJqTshl+XpDzAMDNTUdoUGJrLoVAMmMTYp6bIcKqXkyGYTYaNR2miLgHCVCMI/NgBPToEQUHBgHHCqEu1mDOifkuY6SIVEPX4YKujPMHT5PYyMR4o647FvQ43n+uaTTeJ0G8Zr5ZRfQg4kwMJpznAiBI2/FE/hxfIN/Ll4PBBwqBPXIZbg+Pj4cDuPnAgack0RILA21fIDh50KHCmlOeOuWAqM5aSIkl2FUzoPnOg5OOk2FcPk4HTEOQOduESFcPqpm5aTBoULgbNWjbgXOA0x7OxHCerSacZ52MoRL1VmPcro49CgvtL1mMQ5AwHCn69fvzc1PLC+knIj+XyidLsgNBiFA9rFwHqcD0PnzNIiti8+F9WDNwNAhWGJRYHI6nCFDkMSD/rt3nr149Xpian72+9paYzrdjs6PRE6IlM5RIX+empmductyQT5WlPgMf3Egv2EWBzKNQHGggBEsDhQ0KosDVRrFKckUTxruUy4eWVynxCOefVynQj5EuUwZPo25Smk1Pta5KqiK8HxImaeK8KBJ6afaxRMrpqTCxaMvxiz36AL9GRrj85uBYKWh5S+x1Npkdb5CXQAAAABJRU5ErkJggg=="},null),s.hasCache?u("img",{"class":"_iconCachePoint_q0xbs_177",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IArs4c6QAAA9BJREFUSEuFll9oXFUQxn+zXUxUEuxWLVofLBbJUwKuLYoUGi2+VLSwhtDVJPRVFFS0MQohyUObVElsm+yDUFQQfJDUSlsapNuN1CdN0UTUgtKKYqLEpgi22aTJGTn33Lt79+7d7YUL5/45852Zb76ZEW5xaa67FaMZDDtBW4AUasCwhOol4AIJJuXVT+fqmZJaHzXXk0Z1BKNPoYp32ytY+4+hb3kwvfLGZxfjbFYBaWEgyU+Xx4CXUE1g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CYII="},null):"",1===s.downloadStatus&&u("div",{"class":"_downloading_q0xbs_194"},["".concat(s.progress||0,"%")])])]),value:()=>u(w,null,[s.knowledgePointList?u(w,null,[F.value?u(m,{"class":[b,M,"_disable_q0xbs_135"]},{"default":()=>[p("未解锁")]}):s.hasCache?u(m,{"class":[b,M]},{"default":()=>[p("查看")]}):u(m,{"class":[b,"_down_q0xbs_141",1==s.downloadStatus?"_downing_q0xbs_144":""]},{"default":()=>[1===s.downloadStatus?"取消下载":"查看"]})]):""])}))),"function"==typeof o||"[object Object]"===Object.prototype.toString.call(o)&&!x(o)?s:{"default":()=>[s]}))])])];var o}}),N.loading&&u(L,null,null),!N.loading&&!N.list.length&&u(h,{tips:"暂无内容"},null),F.value&&u(f,{position:"bottom"},{"default":()=>[u("div",{"class":"_btnGroup_q0xbs_208"},[u(m,{round:!0,block:!0,type:"primary",onClick:()=>{C(a.query.id,"COURSE")}},{"default":()=>[p("开通会员即可查看所有课件")]})])]}),u(q,{show:N.catchStatus,"onUpdate:show":a=>N.catchStatus=a,round:!0,"class":"_courseDialog_q0xbs_163"},{"default":()=>[u("i",{"class":"_iconClose_q0xbs_220",onClick:()=>N.catchStatus=!1},null),u("div",{"class":"_title_q0xbs_230"},[p("下载提醒")]),u("div",{"class":"_content_q0xbs_50"},[p("您尚未下载课件内容,为了更加流畅的学习体验,推荐您下载后观看课件。")]),u("div",{"class":"_popupBtnGroup_q0xbs_245"},[u(m,{round:!0,onClick:()=>W(N.catchItem)},{"default":()=>[p("直接观看")]}),u(m,{round:!0,type:"primary",onClick:()=>G(N.catchItem)},{"default":()=>[p("下载课件")]})])]})])}}});export{B as default};