提交个人中心,我的笔记编辑跳转课程学习页面

This commit is contained in:
daihh
2022-10-19 20:11:48 +08:00
parent af4281f978
commit a87a68dac6
2 changed files with 12 additions and 5 deletions

View File

@@ -8,8 +8,8 @@
</div>
<div class="edit-content">
<div class="note-tit">
<h3> {{ editdata.courseName }} </h3>
<div v-if="editdata.playTime != ''"><img :src="`${webBaseUrl}/images/coteplay.png`" alt="">8:40</div>
<h3 @click="toCoursePage()" :style="{cursor:editdata.type==1? 'pointer':''}"> {{ editdata.courseName }} </h3>
<div @click="toCoursePage()" v-if="editdata.playTime != ''" :style="{cursor:editdata.type==1? 'pointer':''}"><img :src="`${webBaseUrl}/images/coteplay.png`" alt="">8:40</div>
</div>
<div class="note-text" v-if="editdata.contentType != 3">
<!-- <input style="vertical-align:top;outline:none;" type="textarea" :rows="4" v-model="editdata.content"> -->
@@ -64,13 +64,15 @@ export default {
data () {
return {
imgContent:[],
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
isShowList:false,
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
isShowList:false,
isShowTip:'',
radio: '1',
editdata:{
content:'',
isAuto:false,
type:0,
courseId:''
},
histId:'',
histdata:[],
@@ -86,6 +88,11 @@ export default {
},30000);
},
methods:{
toCoursePage(){
if(this.editdata.type==1){
this.$router.push('/course/detail?id='+this.editdata.courseId);
}
},
imgDel(index) {
this.imgContent.splice(index,1);
},