mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 13:26:44 +08:00
课程评论回复
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
<div class="my-note">
|
||||
<div class="mynote">
|
||||
<div class="mynote-tab">
|
||||
<div @click="notetabType(1)" :class="notetab == 1 ? 'noteactive' : ' ' "> <a href="#">新增笔记</a> </div>
|
||||
<div @click="notetabType(2)" :class="notetab == 2 ? 'noteactive' : ' '"> <a href="#">我的笔记</a> </div>
|
||||
<div @click="notetabType(1)" :class="notetab == 1 ? 'noteactive' : ' ' "> <span>新增笔记</span> </div>
|
||||
<div @click="notetabType(2)" :class="notetab == 2 ? 'noteactive' : ' '"> <span>我的笔记</span> </div>
|
||||
</div>
|
||||
<!-- 新增笔记 -->
|
||||
<div class="newcote-content" v-if="notetab == 1">
|
||||
@@ -86,8 +86,8 @@ export default {
|
||||
default: () => { }
|
||||
},
|
||||
score: {
|
||||
type:String,
|
||||
default:''
|
||||
type:Number,
|
||||
default:0
|
||||
}
|
||||
},
|
||||
name: 'MyNote',
|
||||
@@ -114,8 +114,9 @@ export default {
|
||||
...mapGetters(['intTimeNote', 'userInfo']),
|
||||
},
|
||||
mounted() {
|
||||
this.mynoteData.courseId = this.data.courseId;
|
||||
this.mynoteData.contentId = this.data.id;
|
||||
console.log(this.data,'data111');
|
||||
// this.mynoteData.courseId = this.data.courseId;
|
||||
// this.mynoteData.contentId = this.data.id;
|
||||
// if(localStorage.getItem("NOTE_TEXT") !=''){
|
||||
// this.mynoteData.content = localStorage.getItem("NOTE_TEXT");
|
||||
// this.notetab = 1;
|
||||
@@ -125,6 +126,13 @@ export default {
|
||||
|
||||
},
|
||||
watch: {
|
||||
data(val){
|
||||
if(val.id) {
|
||||
console.log(val,'val');
|
||||
this.mynoteData.courseId = this.data.courseId;
|
||||
this.mynoteData.contentId = this.data.id;
|
||||
}
|
||||
},
|
||||
intTimeNote(val) {
|
||||
this.mynoteData.playTime = val;
|
||||
}
|
||||
@@ -405,7 +413,7 @@ export default {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.noteactive a {
|
||||
.noteactive span {
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
padding-bottom: 7px;
|
||||
|
||||
Reference in New Issue
Block a user