mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 05:46:43 +08:00
课程学习页面调整
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
</span>
|
||||
</span>
|
||||
<div style="margin-top:10px" class="newcote-time" v-if="note.playTime"
|
||||
@click="onPlayVideo(note.playTime)">
|
||||
@click="onPlayVideo(note.contentId,note.playTime)">
|
||||
<img src="../../../public/images/coteplay.png" alt="">
|
||||
{{formatSeconds(note.playTime)}}
|
||||
</div>
|
||||
@@ -82,7 +82,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="newcote-bottom" v-if="notetab == 1 || isEdit">
|
||||
<span style="cursor: pointer;" @click="videoLocation"> <img src="../../../public/images/playtime.png"
|
||||
<span v-if="btnPlayTime" style="cursor: pointer;" @click="videoLocation"> <img src="../../../public/images/playtime.png"
|
||||
alt=""> 视频位置</span>
|
||||
<el-radio v-model="mynoteData.openType" :label="9">公开</el-radio>
|
||||
<el-radio v-model="mynoteData.openType" :label="1">私密</el-radio>
|
||||
@@ -120,13 +120,14 @@ export default {
|
||||
isEdit:false,
|
||||
courseId:'',
|
||||
inAnimation: false,
|
||||
btnPlayTime:false,//是否显示添加视频时间
|
||||
radio: '1',
|
||||
notetab: 1,
|
||||
autoSave: null,
|
||||
mynoteData: {
|
||||
type: 1, //我发布的是1 我导入的是2
|
||||
content: '',
|
||||
playTime: '',
|
||||
playTime: 0,
|
||||
courseId: '',// 课程id
|
||||
contentId: '',//课程内容id
|
||||
courseName: '',// 课程名称
|
||||
@@ -155,13 +156,14 @@ export default {
|
||||
// this.mynoteData.contentId = this.data.id;
|
||||
}
|
||||
},
|
||||
intTimeNote(val) {
|
||||
this.mynoteData.playTime = val;
|
||||
}
|
||||
// intTimeNote(val) {
|
||||
// this.mynoteData.playTime = val;
|
||||
// }
|
||||
},
|
||||
methods: {
|
||||
onPlayVideo(time) {
|
||||
this.$emit('onPlayVideo', time);
|
||||
onPlayVideo(conId,time) {
|
||||
//这里应该加上内容的id
|
||||
this.$emit('onPlayVideo',conId,time);
|
||||
},
|
||||
formatSeconds(value) {
|
||||
let result = parseInt(value)
|
||||
@@ -177,6 +179,14 @@ export default {
|
||||
}
|
||||
return res;
|
||||
},
|
||||
showVideoTimeBtn(showOrHidden){
|
||||
this.btnPlayTime=showOrHidden;
|
||||
},
|
||||
//设置音视频的时间,引用页面调用
|
||||
setVideoTime(contentId,time){
|
||||
this.mynoteData.contentId=contentId;//内容id
|
||||
this.mynoteData.playTime=time;//秒
|
||||
},
|
||||
timeDel() {
|
||||
this.mynoteData.playTime = 0;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user