测试一下3

This commit is contained in:
joshen
2025-03-06 20:00:08 +08:00
parent c05c69a544
commit fd2c4f5096

View File

@@ -23,12 +23,12 @@
<div class="course-player" ref="coursePlayer" id="id_course_player"> <div class="course-player" ref="coursePlayer" id="id_course_player">
<div> <div>
<div v-if="resType == null || resType == 0"> <div v-if="resType == null || resType == 0">
{{resType}} <p>{{resType}}</p>
<!--先显示视频图片--> <!--先显示视频图片-->
<course-image v-if="courseInfo.id != ''" :course="courseInfo"></course-image> <course-image v-if="courseInfo.id != ''" :course="courseInfo"></course-image>
</div> </div>
<div v-if="resType == 10" style="position: relative;"> <div v-if="resType == 10" style="position: relative;">
{{resType}} <p>{{resType}}</p>
<videoPlayer ref="myVideoPlayer" id="myVideoPlayer" @progress="progress" :src="blobUrl" :blobId="blobId" @onPlayerPlaying="onPlayerPlaying" <videoPlayer ref="myVideoPlayer" id="myVideoPlayer" @progress="progress" :src="blobUrl" :blobId="blobId" @onPlayerPlaying="onPlayerPlaying"
:initTime="contentData.lastStudyTime" :notePlay="notePlay" @onPlayerPlay="onPlayerPlay" :initTime="contentData.lastStudyTime" :notePlay="notePlay" @onPlayerPlay="onPlayerPlay"
:isDrag="curriculumData.isDrag" @onFullscreen="onFullscreen" @onPlayerPause="onPlayerPause" :isDrag="curriculumData.isDrag" @onFullscreen="onFullscreen" @onPlayerPause="onPlayerPause"
@@ -66,7 +66,7 @@
</div> </div>
</div> </div>
<div v-if="resType == 20"> <div v-if="resType == 20">
{{resType}} <p>{{resType}}</p>
<div class="con-audio"> <div class="con-audio">
<div class="con-audio-title">{{ contentData.contentName }}</div> <div class="con-audio-title">{{ contentData.contentName }}</div>
<div class="con-audio-player"> <div class="con-audio-player">
@@ -76,7 +76,7 @@
</div> </div>
</div> </div>
<div v-if="resType == 40"> <div v-if="resType == 40">
{{resType}} <p>{{resType}}</p>
<div style="padding: 10px;color: #ed0000; " v-if="curCFile.converStatus < 2 && !contentData.content"> <div style="padding: 10px;color: #ed0000; " v-if="curCFile.converStatus < 2 && !contentData.content">
<div>此课程内容无法预览请联系管理员</div> <div>此课程内容无法预览请联系管理员</div>
</div> </div>
@@ -87,15 +87,15 @@
</pdfPreview> </pdfPreview>
</div> </div>
<div v-if="resType == 41"> <div v-if="resType == 41">
{{resType}} <p>{{resType}}</p>
<div style="padding: 20px;" v-html="contentData.content"></div> <div style="padding: 20px;" v-html="contentData.content"></div>
</div> </div>
<div v-if="resType == 50" style="min-height: 500px;"> <div v-if="resType == 50" style="min-height: 500px;">
{{resType}} <p>{{resType}}</p>
<iframe v-if="scormUrl" :src="scormUrl" frameborder="0" border="0px" style="width:100%;height:500px;border:0px;"></iframe> <iframe v-if="scormUrl" :src="scormUrl" frameborder="0" border="0px" style="width:100%;height:500px;border:0px;"></iframe>
</div> </div>
<div v-if="resType == 52"> <div v-if="resType == 52">
{{resType}} <p>{{resType}}</p>
<div v-if="contentData.content != ''"> <div v-if="contentData.content != ''">
<div class="hyper-link" v-if="conLink.openType == 2"> <div class="hyper-link" v-if="conLink.openType == 2">
<div class="hyper-link-row">{{ contentData.contentName }}</div> <div class="hyper-link-row">{{ contentData.contentName }}</div>
@@ -106,15 +106,15 @@
</div> </div>
</div> </div>
<div v-if="resType == 60"> <div v-if="resType == 60">
{{resType}} <p>{{resType}}</p>
<homework @submit="homeWorkSubmit" v-if="resType == 60 && studyId != ''" :studyId="studyId" :content="contentData"></homework> <homework @submit="homeWorkSubmit" v-if="resType == 60 && studyId != ''" :studyId="studyId" :content="contentData"></homework>
</div> </div>
<div v-if="resType == 61"> <div v-if="resType == 61">
{{resType}} <p>{{resType}}</p>
<exam @startTest="startTest" v-if="resType == 61 && studyId != '' " :studyId="studyId" :content="contentData"></exam> <exam @startTest="startTest" v-if="resType == 61 && studyId != '' " :studyId="studyId" :content="contentData"></exam>
</div> </div>
<div v-if="resType == 62" style="padding:5px"> <div v-if="resType == 62" style="padding:5px">
{{resType}} <p>{{resType}}</p>
<assess v-if="resType == 62 && studyId != '' && contentData.id" :studyId="studyId" :content="contentData"> <assess v-if="resType == 62 && studyId != '' && contentData.id" :studyId="studyId" :content="contentData">
</assess> </assess>
</div> </div>