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

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

View File

@@ -124,7 +124,7 @@ module.exports = {
}, },
'/uboeApi': { '/uboeApi': {
// 目标代理服务器地址 // 目标代理服务器地址
target: 'http://u-pre.boe1.com', target: 'http://u-pre.boe.com',
changeOrigin: true, changeOrigin: true,
secure: false, secure: false,
pathRewrite: { pathRewrite: {